IndianWebPortal.com

Something Different In Linux

Home » PHP » osCommerce error ‘Cannot reassign this’

osCommerce error ‘Cannot reassign this’

Posted by Rishikesh Vispute Categories: PHP

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);


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...