Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installed but cannot go to admin


SM-sam

Recommended Posts

Posted

Hi

 

I just installed osCommerce on my own server, and it all went fine. The mysql database updated and installed succesfully, and the site is online. BUT...

 

When I try to go to the admin area /admin/index.php nothing happens. The page is left blank like the .html file does.

 

I have PHP5 on my mashine and centOS.

 

Is this a known problem? What am I to do.. :)

 

More info: I run several websites on the mashine.

 

I would be happy to get some help.

 

Regards

Samuel

Posted

You probably have display_errors turned off in php.ini (look in /etc/php.ini). Turn it on and restart apache. Then go to your admin section. You should now be seeing a fatal error. Since you have PHP 5, it's probably going to say something like

 

Cannot reassign $this in .../upload.php on line 31.

 

If so, open upload.php and change line 31 from

 

$this = null;

 

to

 

unset( $this );

Contributions

 

Discount Coupon Codes

Donations

Posted
You probably have display_errors turned off in php.ini (look in /etc/php.ini). Turn it on and restart apache. Then go to your admin section. You should now be seeing a fatal error. Since you have PHP 5, it's probably going to say something like

 

Cannot reassign $this in .../upload.php on line 31.

 

If so, open upload.php and change line 31 from

 

$this = null;

 

to

 

unset( $this );

Thanx. It worked perfectly.

Do you know any other errors with PHP5 that I should be aware of?

  • 2 weeks later...
Posted
You probably have display_errors turned off in php.ini (look in /etc/php.ini). Turn it on and restart apache. Then go to your admin section. You should now be seeing a fatal error. Since you have PHP 5, it's probably going to say something like

 

Cannot reassign $this in .../upload.php on line 31.

 

If so, open upload.php and change line 31 from

 

$this = null;

 

to

 

unset( $this );

 

 

2: Change in catalog/admin/includes/classes/upload.php

on line 31 change

 

$this = null;

 

to

 

//$this = null;

 

Okay what is the more correct way or doesn't it matter??

 

unset( $this ); or //$this = null;

Archived

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

×
×
  • Create New...