Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Cant access admin on localhost!


Recommended Posts



I have just installed a fresh copy of osCommerce 2.2 MS2 on localhost.

My machine has Windows XP Pro with Apache 2.0.52, PHP 5.0.3RC2-dev and mySQL 4.1.7.

Everything in the catalog-part works fine, but when im trying to access the admininistration i get this error-message:


Fatal error: Cannot re-assign $this in E:\apachefriends\xampp\htdocs\shop2\admin\includes\classes\upload.php on line 31


I havent changed a thing, and since i installed the shop by following the "web-install steps" i guess that the error are in the admin configuration.php


Does anyone have an idea of what i can do to fix this??

Link to comment
Share on other sites

Simple. Go to includes/classes/upload.php and on line 31 where it says $this, change it to //$this


That's all you need to do.


This is one of the most widely posted problems, and use of the Search facility would have saved you a lot of trouble.



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...