Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error when loging to admin


Guest

Recommended Posts

When i try to login to my admin part i get this error, it use work fine

 

 

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

 

Please help me.

Link to comment
Share on other sites

You really need to upgrade your osc. This will fix your immediate problem.

Cannot re-assign $this

http://www.oscommerce.com/community/bugs,1650



Problem:


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



Solution:


Lines 27-34 in catalog/admin/includes/classes/upload.php must be changed from:



if ( ($this->parse() == true) && ($this->save() == true) ) {

 return true;

} else {

// self destruct

 $this = null;



 return false;

}



to:



if ( ($this->parse() == true) && ($this->save() == true) ) {

 return true;

} else {

 return false;

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...