logo



Portal Home > Knowledgebase > osCommerce > Fatal error: Cannot re-assign $this in /home/cpanel user name/public_html/domain name/admin/includes/classes/upload.php on line 31


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




To fix this problem download and backup upload.php from /admin/includes/classes/

then on line 30 or 31 you see the below

// self destruct
          $this = null;

just pop to // on the start of the second line like this

// self destruct
//          $this = null;

save upload and overwrite, now go back to the admin which will now be working. 

If you are still having problems raise a support ticket here or call FREE UK 0800 756 5371 Int 0044 2476 970710

If you dont host with onlinehostes we can still help you at are hourly rate of £35.00 per hour.  Mail support@onlinehosters.com



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article


Powered by WHMCompleteSolution

Language: