Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default myDEBUG: USPS quote errors

    Upgraded Aug 3 from v1.3.9H to v1.5.3

    All has been functioning error free until Aug 17 when php was upgraded from 5.3.28 to 5.4.31. PHP settings is beyond my paygrade. DrByte said that php upgrade to any stable version should not cause any problems.

    It's probably safe to assume that the error is php version related.

    [19-Aug-2014 12:08:29 America/Los_Angeles] #1 usps->quote() called at [/home/chainwea/public_html/includes/classes/shipping.php:140]
    #2 shipping->quote() called at [/home/chainwea/public_html/includes/modules/pages/checkout_shipping/header_php.php:188]
    #3 require(/home/chainwea/public_html/includes/modules/pages/checkout_shipping/header_php.php) called at [/home/chainwea/public_html/index.php:36]

    [19-Aug-2014 12:08:29 America/Los_Angeles] PHP Warning: Illegal string offset 'ServiceName' in /home/chainwea/public_html/includes/modules/shipping/usps.php on line 437
    [19-Aug-2014 12:08:29 America/Los_Angeles] #1 usps->quote() called at [/home/chainwea/public_html/includes/classes/shipping.php:140]
    #2 shipping->quote() called at [/home/chainwea/public_html/includes/modules/pages/checkout_shipping/header_php.php:188]
    #3 require(/home/chainwea/public_html/includes/modules/pages/checkout_shipping/header_php.php) called at [/home/chainwea/public_html/index.php:36]

    [19-Aug-2014 12:08:29 America/Los_Angeles] PHP Warning: Illegal string offset 'ServiceName' in /home/chainwea/public_html/includes/modules/shipping/usps.php on line 437
    [19-Aug-2014 12:08:29 America/Los_Angeles] #1 usps->quote() called at [/home/chainwea/public_html/includes/classes/shipping.php:140]
    #2 shipping->quote() called at [/home/chainwea/public_html/includes/modules/pages/checkout_shipping/header_php.php:188]
    #3 require(/home/chainwea/public_html/includes/modules/pages/checkout_shipping/header_php.php) called at [/home/chainwea/public_html/index.php:36]

    [19-Aug-2014 12:08:29 America/Los_Angeles] PHP Warning: Illegal string offset 'ServiceName' in /home/chainwea/public_html/includes/modules/shipping/usps.php on line 440
    [19-Aug-2014 12:08:29 America/Los_Angeles] #1 usps->quote() called at [/home/chainwea/public_html/includes/classes/shipping.php:140]
    #2 shipping->quote() called at [/home/chainwea/public_html/includes/modules/pages/checkout_shipping/header_php.php:188]
    #3 require(/home/chainwea/public_html/includes/modules/pages/checkout_shipping/header_php.php) called at [/home/chainwea/public_html/index.php:36]
    and repeats for a total of 900 lines in the myDEBUG file

    In a separate myDEBUG file:
    [19-Aug-2014 12:08:09 America/Los_Angeles] #1 usps->quote() called at [/home/chainwea/public_html/includes/classes/shipping.php:140]
    #2 shipping->quote() called at [/home/chainwea/public_html/includes/modules/shipping_estimator.php:140]
    #3 require(/home/chainwea/public_html/includes/modules/shipping_estimator.php) called at [/home/chainwea/public_html/includes/templates/westminster_new/templates/tpl_shopping_cart_default.php:197]
    #4 require(/home/chainwea/public_html/includes/templates/westminster_new/templates/tpl_shopping_cart_default.php) called at [/home/chainwea/public_html/includes/templates/westminster_new/common/tpl_main_page.php:253]
    #5 require(/home/chainwea/public_html/includes/templates/westminster_new/common/tpl_main_page.php) called at [/home/chainwea/public_html/index.php:97]

    [19-Aug-2014 12:08:09 America/Los_Angeles] PHP Warning: Illegal string offset 'ServiceName' in /home/chainwea/public_html/includes/modules/shipping/usps.php on line 437
    [19-Aug-2014 12:08:09 America/Los_Angeles] #1 usps->quote() called at [/home/chainwea/public_html/includes/classes/shipping.php:140]
    #2 shipping->quote() called at [/home/chainwea/public_html/includes/modules/shipping_estimator.php:140]
    #3 require(/home/chainwea/public_html/includes/modules/shipping_estimator.php) called at [/home/chainwea/public_html/includes/templates/westminster_new/templates/tpl_shopping_cart_default.php:197]
    #4 require(/home/chainwea/public_html/includes/templates/westminster_new/templates/tpl_shopping_cart_default.php) called at [/home/chainwea/public_html/includes/templates/westminster_new/common/tpl_main_page.php:253]
    #5 require(/home/chainwea/public_html/includes/templates/westminster_new/common/tpl_main_page.php) called at [/home/chainwea/public_html/index.php:97]
    repeated for a total of 1260 lines

    & there are multiple instances of the same myDEBUG files
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: myDEBUG: USPS quote errors

    Quote Originally Posted by RixStix View Post
    Upgraded Aug 3 from v1.3.9H to v1.5.3

    All has been functioning error free until Aug 17 when php was upgraded from 5.3.28 to 5.4.31. PHP settings is beyond my paygrade. DrByte said that php upgrade to any stable version should not cause any problems.

    It's probably safe to assume that the error is php version related.



    and repeats for a total of 900 lines in the myDEBUG file

    In a separate myDEBUG file:

    repeated for a total of 1260 lines

    & there are multiple instances of the same myDEBUG files
    Typical question(s), what version of usps is installed? I think the way typically to identify is to use admin-tools-developer's toolkit, lower left corner box, type in usps.php, then drop down of catalog/admin, then search.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: myDEBUG: USPS quote errors

    USPS Version Date
    2014-03-07
    Last edited by RixStix; 19 Aug 2014 at 11:55 PM. Reason: removed unnecessary comments
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: myDEBUG: USPS quote errors

    For the USPS issue with php 5.4.30+ (pretty sure that is the version is started with), make the following changes to the usps shipping module:
    /includes/modules/shipping/usps.php

    around line 397:
    Code:
                if (isset($Package['SpecialServices']['SpecialService']['ServiceName']) && !isset($Package['SpecialServices']['SpecialService'][0])) {
    //              $Package['SpecialServices']['SpecialService'][] = $Package['SpecialServices']['SpecialService'];
                  $Package['SpecialServices']['SpecialService'] = array($Package['SpecialServices']['SpecialService']);
                }
    and around line 434:
    Code:
                if (isset($Package['ExtraServices']['ExtraService']['ServiceName']) && !isset($Package['ExtraServices']['ExtraService'][0])) {
    //              $Package['ExtraServices']['ExtraService'][] = $Package['ExtraServices']['ExtraService'];
                  $Package['ExtraServices']['ExtraService'] = array($Package['ExtraServices']['ExtraService']);
                }
    See if that corrects the USPS issue ...

    This "fix" would be compatible with all PHP 5.x versions.

    Be sure to test both Domestic and International shipping ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: myDEBUG: USPS quote errors

    Thanks Linda,

    Change made and we'll watch it for a bit. I'm not sure what triggers the myDEBUG.

    Is this something new or did I miss a post or not search well enough for the answer?
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: myDEBUG: USPS quote errors

    Try doing a shipping estimate/checkout and see if they trigger any more ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: myDEBUG: USPS quote errors

    Quote Originally Posted by RixStix View Post
    Thanks Linda,

    Change made and we'll watch it for a bit. I'm not sure what triggers the myDEBUG.

    Is this something new or did I miss a post or not search well enough for the answer?
    This is kinda new and kinda not ...

    I ran into it last month but had yet to hear anyone say anything about it so I have held off on the fix in light of the upcoming changes needed for September ...

    Right now the usps test server is not working right and I do not have any time table on when the changes will be needed/required for users ...

    Most users who will be caught out on these latest changes are those who use old versions of USPS and get away with it because of their shipping methods ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: myDEBUG: USPS quote errors

    That was interesting. Just as I clicked to get the shipping estimate

    Bolt of lightning, instant crack of thunder, power goes off, comes back on in 4 seconds and the shipping estimate is on-screen (I luv my UPS).

    Login as a customer, different zipcode, get shipping address, no thunder/lightning, checkout.

    No myDEBUG logs generated.

    Seems to be working just fine.

    Thank you again.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: myDEBUG: USPS quote errors

    Thanks for the update that this fix worked for you on the USPS March 7, 2014 K3 and php 5.4.30+ version ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v153 Multiple myDEBUG files, similar errors
    By RixStix in forum Bug Reports
    Replies: 26
    Last Post: 21 Aug 2014, 08:22 AM
  2. v153 MyDEBUG: help w QueryFactory errors
    By RixStix in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 11 Aug 2014, 07:27 PM
  3. Replies: 4
    Last Post: 19 Jan 2013, 05:47 AM
  4. USPS does not work for me "We are unable to find a USPS shipping quote suitable..."
    By 01011010 in forum Built-in Shipping and Payment Modules
    Replies: 108
    Last Post: 19 Oct 2012, 05:35 PM
  5. So frustrated...USPS We are unable to find a USPS shipping quote suitable for your ..
    By teqmedia in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 6 Aug 2008, 01:54 PM

Posting Permissions

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