Jump to content

Archived

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

jgeoff

Server Error / Error Log incl.

Recommended Posts

Hi - I'm hoping someone can help. I installed osC 9 years ago for a client but haven't been involved with it much since so haven't been intimate with the code.

 

Version 2.2 RC 2a, running on PHP 5.4.45  (I see in my sig the last time I posted it was version 5.2 -- issue there?)

 

Client today said product pages weren't loading. When I checked, the home page loaded fine, but clicking on a product I just get a white screen stating Error 500, then all subsequent screens are totally blank (Chrome and Firefox).  Contacted web host who said there were no problems on their end. 

 

No files have changed from a working site in years.  Here are some lines from the Error Log -- I hope someone recognizes the issue. 

 

Thanks!

 

JG

 

----------------------

 

[24-Oct-2016 05:56:06 America/Detroit] PHP Warning: imagejpeg(): Filename cannot be empty in /home/smenatur/public_html/nature/product_thumb.php on line 278
[24-Oct-2016 05:56:15 America/Detroit] PHP Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 05:56:15 America/Detroit] PHP Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 05:56:15 America/Detroit] PHP Fatal error: require(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/php54/lib/php') in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 06:41:13 America/Detroit] PHP Warning: imagejpeg(): Filename cannot be empty in /home/smenatur/public_html/nature/product_thumb.php on line 278
[24-Oct-2016 06:41:14 America/Detroit] PHP Warning: imagejpeg(): Filename cannot be empty in /home/smenatur/public_html/nature/product_thumb.php on line 278
[24-Oct-2016 07:00:59 America/Detroit] PHP Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 07:00:59 America/Detroit] PHP Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 07:00:59 America/Detroit] PHP Fatal error: require(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/php54/lib/php') in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 07:03:25 America/Detroit] PHP Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 07:03:25 America/Detroit] PHP Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 07:03:25 America/Detroit] PHP Fatal error: require(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/php54/lib/php') in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 07:44:39 America/Detroit] PHP Warning: imagejpeg(): Filename cannot be empty in /home/smenatur/public_html/nature/product_thumb.php on line 278
[24-Oct-2016 07:44:40 America/Detroit] PHP Warning: imagejpeg(): Filename cannot be empty in /home/smenatur/public_html/nature/product_thumb.php on line 278
[24-Oct-2016 07:44:40 America/Detroit] PHP Warning: imagejpeg(): Filename cannot be empty in /home/smenatur/public_html/nature/product_thumb.php on line 278
[24-Oct-2016 11:22:40 America/Detroit] PHP Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 11:22:40 America/Detroit] PHP Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 11:22:40 America/Detroit] PHP Fatal error: require(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/php54/lib/php') in /home/smenatur/public_html/nature/includes/application_top.php on line 324
[24-Oct-2016 17:05:00 America/Detroit] PHP Notice: Undefined index: w in /home/smenatur/public_html/nature/product_thumb.php on line 268
[24-Oct-2016 17:05:00 America/Detroit] PHP Notice: Undefined index: w in /home/smenatur/public_html/nature/product_thumb.php on line 268
[24-Oct-2016 17:05:00 America/Detroit] PHP Notice: Undefined index: h in /home/smenatur/public_html/nature/product_thumb.php on line 268
[24-Oct-2016 17:05:00 America/Detroit] PHP Notice: Undefined index: h in /home/smenatur/public_html/nature/product_thumb.php on line 268
[24-Oct-2016 17:05:00 America/Detroit] PHP Notice: Undefined index: w in /home/smenatur/public_html/nature/product_thumb.php on line 268
[24-Oct-2016 17:05:00 America/Detroit] PHP Notice: Undefined index: h in /home/smenatur/public_html/nature/product_thumb.php on line 268
[24-Oct-2016 17:05:00 America/Detroit] PHP Notice: Undefined index: w in /home/smenatur/public_html/nature/product_thumb.php on line 268
[24-Oct-2016 17:05:00 America/Detroit] PHP Notice: Undefined index: h in /home/smenatur/public_html/nature/product_thumb.php on line 268
[24-Oct-2016 17:05:00 America/Detroit] PHP Notice: Undefined index: w in /home/smenatur/public_html/nature/product_thumb.php on line 306
[24-Oct-2016 17:05:00 America/Detroit] PHP Notice: Undefined index: h in /home/smenatur/public_html/nature/product_thumb.php on line 306
[24-Oct-2016 17:05:00 America/Detroit] PHP Warning: imagecreatetruecolor(): Invalid image dimensions in /home/smenatur/public_html/nature/product_thumb.php on line 306
[24-Oct-2016 17:05:00 America/Detroit] PHP Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /home/smenatur/public_html/nature/product_thumb.php on line 313
[24-Oct-2016 17:05:00 America/Detroit] PHP Warning: imagefill() expects parameter 1 to be resource, boolean given in /home/smenatur/public_html/nature/product_thumb.php on line 315
[24-Oct-2016 17:05:00 America/Detroit] PHP Warning: imagecolortransparent() expects parameter 1 to be resource, boolean given in /home/smenatur/public_html/nature/product_thumb.php on line 316


osC v2.2 RC2a w/ no special templates

PHP Version 5.2.14 / MySQL 5.0.91-community

Share this post


Link to post
Share on other sites

Your signature says:

 

 


osC v2.2 RC2a w/ no special templates
PHP Version 5.2.14 / MySQL 5.0.91-community

 

First thing you should do is check the PHP version right now...as it is most likely been upgraded by your host.

And this has caused errors to show in the ancient osC that your client is running.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

I'm betting from your errors the server just changed to php version 5.4.*.  Session bug compat was removed in 5.4 and that site is sufferiong from it.  Read more at the link below.

http://php.net/manual/en/session.configuration.php#ini.session.bug-compat-42

 

Bottom line is this site needs to be upgaded because current supported version of php is 5.6, so 5.4 is old. 


I'm not really a dog.

Share this post


Link to post
Share on other sites

You've got a lot of /includes/language/.php errors. There have been some updates over the years to properly set the $language variable (to "english", for example), as PHP was updated. You might be able to glom some code (in application_top.php?) from a current version to patch that for the time being. I'm not sure if this is "session" related, but session handling is something that has been fixed in recent versions.

 

As for the other, image-related errors, I don't know. It may well be a change to a PHP library that has broken this old code. They seem to be in product_thumb.php, which sounds like an add-on or custom code. Anyway, that's where to start looking.

 

Regardless of whether you can patch the store to keep running (other errors may well show up once these are swatted), the store is living on borrowed time. osC 2.2 is positively ancient and you should be installing and customizing osC 2.3.4BS Edge (the current version), and migrating over the database. You definitely have a non-vanilla installation right now, so it will require some research on your part to see if there are built-in ways to do these things, or add-ons available, or add-ons that will need to be updated, or custom code is needed. Don't delay!

Share this post


Link to post
Share on other sites

Guys, thanks so much for your time and suggestions!  Not sure if it was a coincidence or not, but, using cPanel's PHP Selector, I changed it from 5.4 to 5.2 (options are 5.2, 5.3, 5.4 (default), 5.5, 5.6, 7.0).  That did not work immediately, but when I checked after a few hours, the site seems to be working okay now! 

 

Again, not sure if that's what did it, or something else server-side, but I'm relieved I won't have to panic tomorrow.  I still will take your advice into consideration and try to reduce the other server errors -- and also think about the direction to take in the future. 

 

Thanks again!

 

JG


osC v2.2 RC2a w/ no special templates

PHP Version 5.2.14 / MySQL 5.0.91-community

Share this post


Link to post
Share on other sites

@@jgeoff

You're lucky in that you have this option at this time.  5.2 is very old and no longer supported by PHP, so if a security flaw is exposed that allows hackers to penetrate your site, it will not be fixed.  Look at the BS versions available and read some threads here.  There are many advantages to going with it.


I'm not really a dog.

Share this post


Link to post
Share on other sites

Yes, use the breathing space gained (by using PHP 5.2) to upgrade to osC 2.3.4BS Edge. Then you can use a current and supported PHP (preferably 5.6) and not have to worry so much about being hacked, as well as having the comfort of being up to date on the store installation.

Share this post


Link to post
Share on other sites

×