Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Cannot re-assign $this...


Anders Pamdal

Recommended Posts

Posted

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

 

This is what happend when I try to enter the admin area direct efter the install? how do I fix this?

 

Best regards...

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

 

This is what happend when I try to enter the admin area direct efter the install? how do I fix this?

 

Best regards...

How long ago did you download the version you're installing?

 

This has been fixed in the latest version along with lots of other things. If you're starting now it would be wise to scrap what you've already done and start again with:

 

osCommerce 2.2 Milestone 2 Update 051113

http://www.oscommerce.com/solutions/downloads

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

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

 

This is what happend when I try to enter the admin area direct efter the install? how do I fix this?

 

Best regards...

 

This is a very common error.

 

on line 31 of admin\includes\classes\upload.php change

 

$this = null;

 

to

 

unset( $this );

 

 

This is caused by a php 5 incompatibility problem. You should probalby download the patch that fixes that problem amoung others you can read about it HERE

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

Thanx for the info... Well I've been following a few threads in here for awhile and I would like to know (if possible) if this script is still being in development? If so, will the ms3 be released in January as said before?

 

Thanks in advance

Posted
Thanx for the info... Well I've been following a few threads in here for awhile and I would like to know (if possible) if this script is still being in development? If so, will the ms3 be released in January as said before?

 

Thanks in advance

 

 

I you are thinking about using osC for a store go ahead and use the version already pointed out to you, waiting for the next version is not really an option.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Archived

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

×
×
  • Create New...