PHP5 Upgrade: Common Issues & Resolutions
Overview
This article provides an overview of common resolvable issues that clients have experienced with common applications after our upgrade to PHP5.
OSCommerce
When trying to access your admin panel, you may see an error similar to this:
"Fatal error: Cannot re-assign $this in /path/to/upload.php"
This is caused by the way in which the code attempts to clear the $this variable. The method used was never officially supported, and no longer works in PHP5. To resolve this, you need to edit the admin/upload.php file. Around 30 lines in, change this section:
// self destruct
$this = null;
to this:
// self destruct
// $this = null;
unset($this);