sbdblyss Posted October 19, 2010 Posted October 19, 2010 Hello, I recently had my server migrated to CentOS from Redhat. After the migration, I am not able to access the admin area of my osCommerce site. The error I receive is: Fatal error: Cannot re-assign $this in /usr/local/apache2/htdocs/admin/includes/classes/upload.php on line 31 This error occurs right away. I don't have the opportunity to enter my username or password. Any ideas? Could it be a permissions issue? Thank you for your time. Jake
MrPhil Posted October 19, 2010 Posted October 19, 2010 Your PHP was upgraded in the process, probably to version 5. It will not permit assignments to $this of the form $this = some value;. You must be running a quite old version of osC for this error to occur. Have you thought about upgrading to the final release (2.2 RC2a)? If you can't or won't, about the best you'll be able to do is grab a copy of 2.2 RC2a and compare code, and implement the appropriate changes to your code.
sbdblyss Posted October 20, 2010 Author Posted October 20, 2010 Your PHP was upgraded in the process, probably to version 5. It will not permit assignments to $this of the form $this = some value;. You must be running a quite old version of osC for this error to occur. Have you thought about upgrading to the final release (2.2 RC2a)? If you can't or won't, about the best you'll be able to do is grab a copy of 2.2 RC2a and compare code, and implement the appropriate changes to your code. My install is currently at 2.2 RC2a. The PHP change makes sense. My host has been terrible to work with so I am switching everything over to a new host. I can't get into the admin area to backup the database. Since I am moving everything to a new server, do you have any suggestions? Thanks Jake
MrPhil Posted October 21, 2010 Posted October 21, 2010 Were you on 2.2 RC2a on the old host/server, and moved that over? Its usage of $this should be up to date, unless you have a code modification (such as an add-on) that inserted old style code. Copy and paste your upload.php file here, between [ code ] and [ /code ] tags (remove spaces). You don't have to use the admin area on the old site to back up the database. You can do it via phpMyAdmin. Or do you have a backup, and can't restore it on the new site? Your posts are ambiguous. Again, you can do it via phpMyAdmin, but you should try to fix the $this problem first.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.