Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cant access ADMIN. Fatal error: Cannot re-assign $this in xxx/admin/includes/classes/upload.php on line 31


dca

Recommended Posts

Hello all,

 

I cacnot access the ADMIN section of my site so am badly stuck !!

 

It gives a fatal error message as below :

 

Fatal error: Cannot re-assign $this in xxx/admin/includes/classes/upload.php on line 31

 

The CATALOG section seems OK as the site is LIVE and running

 

I have checked the upload.php file and see that there have been no changes made at all. In fact, the file is the same as it was when installed over a year ago.

 

Can anyone pls let me know if they have any ideas on this . I am desperately stuck right now.

 

Thanks in advance to anyone who may be of any help.

 

dca

Link to comment
Share on other sites

Sudden Cannot re-assign $this means your server has been upgraded to php5

 

admin/includes/classes/upload.php on line 31

 

edit:

 

$this = null;

 

to this:

 

unset($this);

 

Plus update your version with the required php5/mysql5 code snippets

 

http://www.oscommerce.com/community/contributions,4654

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Sudden Cannot re-assign $this means your server has been upgraded to php5

 

admin/includes/classes/upload.php on line 31

 

edit:

 

$this = null;

 

to this:

 

unset($this);

 

Plus update your version with the required php5/mysql5 code snippets

 

http://www.oscommerce.com/community/contributions,4654

 

Spooks,

 

Many thanks.

 

You are right.

 

Thank You VERY much for your quick response.

 

dca

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...