Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error: Cannot re-assign $this in


Babysweet

Recommended Posts

Posted

Hey

 

I have years working with oscommerce and this problem has never happened to me and I am stumped.

 

This is all the error message I get.

 

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

 

I don't know why the sasbeari is not sasbearing like is should be. Its not set that way in the config file.

 

From the best I can tell the error stems from the program's inability to change the CHMOD.

 

by the way, this is in the Admin section of the website and its password protected.

 

I have not made any changes in the upload file.

 

All I was trying to do is move a fully functional website from one webhost to another. So the only changes I made were in the config files.

 

your assistance would be greatly appriciated.

 

thanks

joe

Sincerely,

Joseph Seabert

Posted

Forget it. It ws a bad idea.

 

I removed my comments.

Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!!

 

Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience.

 

The quickest way to learn is to forget to BACKUP!

Posted
Hey

 

I have years working with oscommerce and this problem has never happened to me and I am stumped.

 

This is all the error message I get.

 

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

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;

 

}

Posted

Thanks, I was thinking it was something I did wrong. didn't even occur to me to check the bug list.

 

Thanks again.

Sincerely,

Joseph Seabert

Archived

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

×
×
  • Create New...