Fatal error for Netfirms Commerce Pro running on PHP5

The below error will be displayed when clicking on Commerce Pro Admin panel from Netfirms Control Panel, if your website is configured to run on PHP5,

Fatal error: Cannot re-assign $this in /mnt/web_r/d42/s46/b024b537/www/test2/nfoscomm/catalog/admin/includes/classes/upload.php on line 31

This is because Netfirms Commerce Pro is based on PHP4, rather than PHP5. To resolve the problem, please follow the instructions as stated below,

1. Using an FTP tool download a copy of ../catalog/admin/includes/classes/upload.php from your website.
2. Using a text editor (eg. Notepad), open upload.php and locate the following line

$this = null;

3. Change the above line to:

//$this = null;

4. Save and upload the revised upload.php back onto the server, replacing the existing file inside ../catalog/admin/includes/classes/

Reference :

Add Feedback