+ Reply to Thread
Results 1 to 11 of 11

Thread: CSS Patches and PHP Upgrade Problems

  1. #1
    Client
    Join Date
    Dec 2004
    Location
    Phoenix, AZ
    Posts
    337
    Squirrelcart version
    v3.3.2

    Unhappy CSS Patches and PHP Upgrade Problems

    See my comments at the end of this thread also please: http://www.ldev.com/forums/showthrea...9975#post19975

    I'm in the process of developing a 3.x SC theme that I can deploy, but it's not ready for release. An audit of my server showed that I needed to do some upgrades to pass PCI testing. As a result, I added the latest CSS patches for my current install of SC 2.6.3. I also moved my site to a new server that is running the latest PHP (5.3.2 for Windows) and the latest MySQL. It seems that PHP 5.3.x deprecated several functions, and maybe changed others??? Ever since this upgrade and move I've had some problems I can't track down.

    The first issue I noticed is described in the post I linked above. The "static" pages I have no longer work, I just get a 500 error. I went through the logs on my IIS and can't find anything helpful there at all. I'm at a loss...

    I tried to use the built in UPS "Rates and Services" calculator from the SC control panel today and that does the same thing. When I enter the information and push the button to get the numbers, it "thinks" for a few seconds and then returns a 500 error. The URL at the top is:

    https://www.itpdiesel.com/squirrelcart/index.php

    Help Please! Is anyone aware of what might have changed in the latest PHP that is causing this...and a temporary work around until I get my 3.x site up?

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,719
    Squirrelcart version
    v3.3.7
    An internal server error could be due to just about anything under the sun. Squirrelcart works fine in PHP 5.3.2. However, its possible for a host to introduce issues (in general, not just with Squirrelcart) by altering PHP and web server settings. Only your web host can tell you for sure why any given page is triggering an internal server error.

    If you open a helpdesk ticket and provide access to the installation, we can try to guess as to what the cause is. We may or may not be able to find the trigger.

  3. #3
    Client
    Join Date
    Dec 2004
    Location
    Phoenix, AZ
    Posts
    337
    Squirrelcart version
    v3.3.2
    Jamie,

    It's not on a "host", it's on my own server. I can change ANY setting necessary. This was a TOTALLY FRESH install of PHP, are there settings that you recommend I change from "default" for sure, something that might be affecting this? I can post a copy of the PHP.INI file here if it would help.

    THANKS!!!!!!

  4. #4
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,719
    Squirrelcart version
    v3.3.7
    Default settings should work fine. Something like this is normally handled by the person managing the web server. I'm not an expert in managing web servers so I can't say for sure if I could find the cause of the problem. However, the only way I can troubleshoot something like this is with access to the server. Looking at the php.ini file without knowing even what is triggering the error won't help.

  5. #5
    Client
    Join Date
    Dec 2004
    Location
    Phoenix, AZ
    Posts
    337
    Squirrelcart version
    v3.3.2
    Do you just need an "admin" login to the cart, or FTP access to files? There are NO extra accounts on that box right now, so I'll have to set something up.

  6. #6
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,719
    Squirrelcart version
    v3.3.7
    I'd most likely need both. File access is needed more than cart admin access.

  7. #7
    Client
    Join Date
    Dec 2004
    Location
    Phoenix, AZ
    Posts
    337
    Squirrelcart version
    v3.3.2
    Ticket Created

  8. #8
    Client
    Join Date
    Dec 2004
    Location
    Phoenix, AZ
    Posts
    337
    Squirrelcart version
    v3.3.2
    OK, its late but I'm making some progress. I've got the static page issue resolved, just need to make a minor change to all of them tomorrow. Apparently they are getting more stringent about the register_globals stuff or something. I'm "php stupid", but google and some more detailed error messages got me this far! Here is what I have to change to make it work:

    Change line 2 of each static file from :
    Code:
    if (!$_GET['page']) {
    to

    Code:
    if (!isset($_GET['page'])) {
    On the UPS Rates and Services, when I turn off "friendly" errors, this is what I see. I didn't modify this file during the upgrade, so this might be related to above or might be related to some other 5.3.x change in PHP. Too tired to work on it now...

    PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 617 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 618 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 619 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 617 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 618 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 619 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 617 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 618 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 619 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 617 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 618 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 619 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 617 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 618 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 619 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 617 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 618 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 619 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 617 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 618 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 619 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 617 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 618 PHP Warning: number_format() expects parameter 1 to be double, string given in c:\server\squirrelcart\functions\storefront\shippi ng\ups_online_tools.func.php on line 619
    Hopefully Jamie will get this part figured out in short order while I'm editing a bunch of static pages!

  9. #9
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,719
    Squirrelcart version
    v3.3.7
    The reason you had to change that if statement is because when you have error_reporting set higher than normal it reports an error/warning every time you try to reference a variable that is not set.

    Setting error_reporting in your php.ini to 2039 will cause those strict warnings to go away. Or...you can change the code as you've done.

  10. #10
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,719
    Squirrelcart version
    v3.3.7
    For the UPS problem, see this post:
    http://www.ldev.com/forums/showthread.php?p=19993

  11. #11
    Client
    Join Date
    Dec 2004
    Location
    Phoenix, AZ
    Posts
    337
    Squirrelcart version
    v3.3.2
    Works again...thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts