Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error trying to get into admin area


phrog

Recommended Posts

Posted

I've just installed OSCommerce and everything went well. The home page comes up with an error that it cannot write to the configuration.php file. When I try to get into the admin index.php I get a fatal error

Cannot re-assign $this in catalog\admin\includes\classes\upload.php

I have the feeling it is the same thing but when I try to change the permissions on the files the changes don't stick. I am running a local server (on my own machine) wamp collection of Apache 1.3.33 and PHP 5.0.4 and MySQL 4.1.7

 

Is there something I need to change in the aphache config file to allow me to change permissions on files as I think this is the overall problem.

 

Thanks

Posted

The problem is php5. Look below my name for the '$this in uploads.php' link and apply the fix.

 

Vger

Posted

Thank you for that, I was ust doing a search and found your article. That fixed the fatal error but it still doesn't fix the problem I have with being unable to set permissions on the configuartion.php file. Any ideas?

 

 

 

I've just installed OSCommerce and everything went well. The home page comes up with an error that it cannot write to the configuration.php file. When I try to get into the admin index.php I get a fatal error

Cannot re-assign $this in catalog\admin\includes\classes\upload.php

I have the feeling it is the same thing but when I try to change the permissions on the files the changes don't stick. I am running a local server (on my own machine) wamp collection of Apache 1.3.33 and PHP 5.0.4 and MySQL 4.1.7

 

Is there something I need to change in the aphache config file to allow me to change permissions on files as I think this is the overall problem.

 

Thanks

Posted

The error you get on the homepage is that you 'can' write to the configure.php file.

 

Edit - sorry just realised it's a local install. Just go to the file on your hard drive, right-click, select Properties and tick the box to make it Read Only.

 

Vger

Archived

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

×
×
  • Create New...