Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error


tyrus

Recommended Posts

Hi

 

This is my first time that I have set up an OCCommerce store and thought that the installation went well, but when I try and access my admin page I get this error message:

 

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

 

The website works fine, but I cannot access the admin panel

 

Any advice??

Link to comment
Share on other sites

What version osC, PHP & SQL?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi I think its OSC 2.2

 

PHP is 5.2.5

 

and SQL 5.0.45-community

 

Like I said, Im new to this so havent got a clue what this means!!!

 

Thanks

 

 

osC 2.2 is in various varients, MS1, MS2, RC1, RC2 & RC2a, you need at least MS2 if using SQL5, but I think you may have a discrepency between your osC version & PHP5, not sure but I`m sure I`ve seen talk of this error here somewhere, you may have to search hard

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Just found this in another post and it fixed the problem !!!

 

 

locate /shop/osc/admin/includes/classes/upload.php

 

Find this code (about 30 lines down):

 

CODE

// self destruct

$this = null;

 

Alter it to say this:

 

CODE

// self destruct

// $this = null;

unset($this);

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...