Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP error


torrent

Recommended Posts

Posted

Hey everybody, I recently had a problem loading the catalog of my site. The home page and the admin page would load fine but when trying to load the catalog i would get a "no data sent" error on google chrome. I hadent touched the site any time recently so I called my hosting service. They told me they didnt see any recent changes on the site but told me it was because i was using php4 and not 5...? (I do not know much about PHP) They apparently fixed this by adding the code

addhandler x-httpd-php5 .php

to the top of my root .htaccess file.

 

Well, this made the catalog begin to work, which is great, but now i am recieving a PHP error when loading the admin panel.

Fatal error: Cannot re-assign $this in /home/content/b/1/8/b18ctrb/html/catalog/deni/includes/classes/upload.php on line 30

Does this mean my site is somehow incompatible with PHP 5? If so why would all of the site work except the admin?

If anyone could translate this error into english for me I would greatly appreciate it!

Posted

Yes, that is what it means. There are upgrade instructions available. The best are in a contribbution. But for this problem, in the admin/includes/classes/upload.php file, remove this line

$this = null;

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Yes, that is what it means. There are upgrade instructions available. The best are in a contribbution. But for this problem, in the admin/includes/classes/upload.php file, remove this line

$this = null;

 

Thanks. I gave up and just bit the bullet and upgraded to 2.3.1 last night. Man it is so much nicer!

Archived

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

×
×
  • Create New...