Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't access to admin page


dr.FeelGood

Recommended Posts

Hi all!

This is my first post, so please forgive if in wrong area. I installed oscommerce on my server, and it works great. The only issue is when I try to access to the admin page, it says error. "Fatal error: Cannot re-assign $this in /home/public_html/admin/includes/classes/upload.php on line 31", which line 31 is $this = null;

Any help would be greatly appreciated.

Thanks.

Link to comment
Share on other sites

In "/admin/includes/classes/upload.php"

 

Find this:

 

// self destruct
$this = null;

 

Alter it to this:

 

// self destruct
// $this = null;
unset($this);

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Log into your admin.

 

Click on "Configuration" --> "My Store"

 

On that page change the "Store Name" (this will be the default title).

 

Save it.

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...