Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error - Please Help!! :(


Guest

Recommended Posts

I went to try to add some products to my catalog this morning. When I click on "admin interface", I get the following error...Can someone please help me fix it?

 

 

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

 

Thank you,

Sabrina

Link to comment
Share on other sites

Ok, I found someone at my hosting company that was able to help me. Apparently there was a glitch and this happened to several other people. So, I wanted to post the solution here in case anyone else in this forum has the same problem...

 

Around line 31 in the update.php you will find the if statement below except with a $this=null

 

My hosting company changed the code to the following and now I am able to get back into the admin interface.

 

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

return true;

} else {

// self destruct

unset($this);

 

return false;

 

Hope this can help someone else :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...