Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with installation on localhost


stanleyz

Recommended Posts

Hi

I tried to install os on the localhost (my laptop and php sofeware is WAMP5). The installation went well. I can see the page "127.0.0.1/catalog". However, I cannot have access to the administration page by typing "127.0.0.1/catalog/admin" in the browser. It shows the error as following:

"Fatal error: Cannot re-assign $this in c:\wamp\www\catalog\admin\includes\classes\upload.php on line 31"

How can fix the problem?

Also, how can I transfer files to localhost and change chomod property of files using cuteftp just as if to the real server?

Thanks in advance.

Link to comment
Share on other sites

Not sure how or why you would need to set permissions on your local machine... i thought it worked without that so can't help you there but had you done a search for "Cannot re-assign $this" you would have found

 

php5 compatibility problem:

 

\catalog\admin\includes\classes\upload.php on line 31

 

edit this:

 

$this = null;

 

to this:

 

unset($this);

 

Thanks to Vger :)

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Not sure how or why you would need to set permissions on your local machine... i thought it worked without that so can't help you there but had you done a search for "Cannot re-assign $this" you would have found

 

php5 compatibility problem:

 

\catalog\admin\includes\classes\upload.php on line 31

 

edit this:

 

$this = null;

 

to this:

 

unset($this);

 

Thanks to Vger :)

yes, it works perfectly. Thanks a lot. Can I ask why it should be in this way?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...