Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error: Cannot Re-assign $this In /home/de-signs/public_html/store/catalog/admin/includes/classes/upload.php On Line 31


jazzcatt

Recommended Posts

Posted

Hi Folks, brand new to osCommerce. I have a site hosted by IPowerweb, and chose to install osCommerce from their control panel. I get a verification of successful installation, and upon clicking to open the admin pages, get this error:

 

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

 

I spent 50 minutes on the phone with their tech support, and they couldn't figure out what the problem was. They told me they could log in successfully, but didn't know why I couldn't. They suggested the Commnunity Support Forums, so here I am. Thanks in advance for any help...

 

Sincerely,

 

Jack Ciarniello

Posted

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;

}

Posted

Thank you so much.....I had the same problem that appeared overnight. My site was working perfectly until two days ago when I started getting this error.

The fix you provided solved the problem but I'd love to know why the error only just started happening??

 

Thanks again!!

Posted

Great, I found it. The same problem I am having also loaded from Ipower.net. I will try this out. Thanks. :rolleyes:

Archived

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

×
×
  • Create New...