Search  
   
Browse by Category
 
Netfirms 24/7 Support .: ERROR MESSAGES .: How do I fix a Fatal Error referencing upload.php when clicking the admin link in my Netfirms Commerce Pro Admin panel?

How do I fix a Fatal Error referencing upload.php when clicking the admin link in my Netfirms Commerce Pro Admin panel?

The following similar "Fatal error" displays when clicking the Commerce Pro Admin panel from the Netfirms Control Panel if you have configured your account for 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

The error is caused because Netfirms Commerce Pro is based on PHP4 rather than PHP5. To resolve the error message, please follow the instructions below: 
 
1. Using an FTP tool (eg. Filezilla) download a copy of ../catalog/admin/includes/classes/upload.php
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 to the the server in ../catalog/admin/includes/classes/

How helpful was this article to you?


.: Powered by Lore 1.5.6
Visit Netfirms.com Web Hosting | Copyright © 1998 - 2009 Netfirms, Inc. All Rights Reserved.