Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP5 Upgrade Issues


tacimala

Recommended Posts

Posted

First and foremost a thank you for anyone that takes the time to read this and offer any insight. Here's the issue summarized as best as possible:

 

- running a somewhat customized osCommerce website just fine for years without issues. I'm not even entirely sure what version the site is on, but the copyright dates in the comments of a lot of the files are 2003.

- Dreamhost (the web host the site is on) completes an upgrade from PHP4 to PHP5 and the custom PHP.ini previously in place is no longer valid

- Entire website then had the following error showing up "FATAL ERROR: register_globals is disabled in php.ini, please enable it!"

- I go through http://wiki.dreamhost.com/PHP.ini last night and add all those handy dandy files and get register_globals changed over in the php.ini file

- Now front end of the website works, but the admin area does not work and the following error is displayed:

 

Warning: include(includes/languages/english/) [function.include]: failed to open stream: No such file or directory in /home/username/domain.com/admin/includes/application_top.php on line 133

Warning: include() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/username/domain.com/admin/includes/application_top.php on line 133

Fatal error: Cannot re-assign $this in /home/username/domain.com/admin/includes/classes/upload.php on line 31

 

My guess is that it has something to do with something in the new php.ini file that was different in the old one, maybe specifically with the path to pear, but I am really not sure. In the old file, magic_quotes was on and in PHP5 it is off, but changing that had no effect, so once again, not sure.

 

I'll stop here and hope that someone can point me in the right direction and please let me know if I can provide any other info.

 

Thanks!

Posted

I should also add that I also did the following step:

 

http://www.oscommerce.com/forums/index.php?showtopic=307813

 

This removes the fatal error and allows the contents of the admin to be viewed, but only partially. It appears as though the variables are not coming through properly now and instead of the box on the left hand side saying Orders as normal, it says BOX_TITLE_ORDERS and all of the areas within the admin say the same thing. My guess is something with the language files not communicating properly?

 

Taking it a step further, if I go to click on an individual order it simply goes right back to the main order page and I'm not able to drill down any further.

Posted

Your warnign means that the language file cannot be found by the script, for your Fatal error see this post http://www.oscommerce.com/forums/topic/117655-fatal-error-cannot-re-assignuploadphp-on-line31/

 

 

 

 

Nic

 

Thank you for the response Nic - I just noticed your reply after posting my last one and the suggestions appeared to be to the same solution in the end.

 

While I can now get into the admin, the rest of the issues I pointed out are still occurring.

Posted

I like how most of the forum posts on here end up in the OP finding the solution and then passing it on. Funny how simply venting helps lead to the solution.

 

So along with register_globals being turned back on and the $this = null; part I also had to turn register_long_arrays to on in the php.ini as well.

Archived

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

×
×
  • Create New...