Guest Posted November 12, 2008 Share Posted November 12, 2008 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 More sharing options...
Guest Posted November 12, 2008 Share Posted November 12, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.