osCommerce error ‘Cannot reassign this’

The error appears because your OS Commerce is based on PHP4 rather than PHP5. To resolve the error message, you should follow the instructions below:

1. Go to your cPanel. Refer to SiteGround cPanel access guide.

2. Click on the File Manager icon.

3. Click on the folder icon next to public_html folder name.

4. Click on the folder icon next to the folder in which your osCommerce is installed

5. Find ../catalog/admin/includes/classes/upload.php file and click on it

6. In the upper right corner you will see several management options for upload.php file. Click on Edit File

7. Open the file and find the line (about 30 lines down) that says:

// self destruct
$this = null;

And change it to:

// self destruct
// $this = null;
unset($this);

This should solve your problem.

If you find modifying the code yourself difficult, ask your host for assistance. SiteGround provides the best osCommerce hosting and such issues are resolved in minutes.

You need help with a shopping cart? hostlantern is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to setup osCommerce to use SMTP

osCommerce could be setup to use the SMTP functionality inside its back-end, but there are some...

How To Secure OsCommerce

In order to secure OsCommerce please follow these steps: 1. Download all your OsCommerce files...

OsCommerce Security Check

If you have any doubts that your OsCommerce security has been compromised please follow these...

OsCommerce Admin Login Problems

If you cannot log into your OsCommerce admin area try the following: 1. Open your OsCommerce...

How to optimize osCommerce for better performance?

osCommerce is one of the most popular free shopping cart applications currently available. Here...

Powered by WHMCompleteSolution