Page 14 of 15 FirstFirst ... 412131415 LastLast
Results 131 to 140 of 143
  1. #131
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS January 17 2016 K8 - Support Quirks

    Maker sure that works for both.

    If not, use:

    Code:
            if ($uspsQuote['Number'] == -2147219085) {
              $this->quotes = array('module' => $this->title,
                                    'error' => 'NO OPTIONS INSTALLED: ' . $uspsQuote['error']);
            } else {
    //          $this->quotes = array('module' => $this->title,
    //                                'error' => $uspsQuote['error']);
            }
            return $this->quotes;
    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: v1.5.5]
    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!

  2. #132
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    10,451
    Plugin Contributions
    78

    Default Re: USPS January 17 2016 K8 - Support Quirks

    What I'd done was:
    Code:
          if (isset($uspsQuote['error'])) {
            if ($uspsQuote['Number'] == -2147219085) {
              $this->quotes = array('module' => $this->title,
                                    'error' => 'NO OPTIONS INSTALLED: ' . $uspsQuote['error']);
    //-bof-20181121-lat9: Return no quotes on "incomplete" submission (i.e. no methods selected).
            } elseif ($uspsQuote['Number'] == -2147221202) {
                $this->quotes = array();
    //-eof-20181121-lat9
            } else {
              $this->quotes = array('module' => $this->title,
                                    'error' => $uspsQuote['error']);
            }

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

    Default Re: USPS January 17 2016 K8 - Support Quirks

    Thanks for the update ...
    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: v1.5.5]
    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!

  4. #134
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    10,451
    Plugin Contributions
    78

    Default Re: USPS January 17 2016 K8 - Support Quirks

    Is there a GitHub for the USPS shipping method? I've found a bunch of PHP Notices being generated on current versions of PHP.

  5. #135
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,159
    Plugin Contributions
    22

    Default Re: USPS January 17 2016 K8 - Support Quirks

    7.2 throwing all sorts of warnings, not errors, but think it's easily fixable. ups, usps, paypal - some in admin and others in checkout. All Use of undefined constant where apostrophes need adding. Been chasing down this for my template and for testimonials on this site. Are you seeing this on any other php version?
    The full-time Zen Cart Guru. WizTech4ZC.com

  6. #136
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    10,451
    Plugin Contributions
    78

    Default Re: USPS January 17 2016 K8 - Support Quirks

    Quote Originally Posted by delia View Post
    7.2 throwing all sorts of warnings, not errors, but think it's easily fixable. ups, usps, paypal - some in admin and others in checkout. All Use of undefined constant where apostrophes need adding. Been chasing down this for my template and for testimonials on this site. Are you seeing this on any other php version?
    I'm seeing various PHP notices on 7.1.4 on zc156c with Report All Errors set to enable those notices to be logged; these are from the checkout_shipping page, for instance:
    Code:
    [01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
    #1  usps->extra_service() called at [C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php:321]
    #2  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
    #3  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
    #4  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
    --> PHP Notice: Undefined variable: extraserviceinternational in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 2223.
    
    [01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
    #1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
    #2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
    #3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
    --> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 511.
    
    [01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
    #1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
    #2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
    #3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
    --> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 512.
    
    [01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
    #1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
    #2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
    #3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
    --> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 513.
    
    [01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
    #1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
    #2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
    #3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
    --> PHP Notice: Undefined variable: cnt_dump in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 655.
    
    [01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
    #1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
    #2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
    #3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
    --> PHP Notice: Undefined variable: cnt_dump in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 656.
    
    [01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
    #1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
    #2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
    #3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
    --> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 511.
    
    [01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
    #1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
    #2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
    #3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
    --> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 512.
    
    [01-Aug-2019 15:05:08 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
    #1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
    #2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
    #3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
    --> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 513.

  7. #137
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,159
    Plugin Contributions
    22

    Default Re: USPS January 17 2016 K8 - Support Quirks

    okay - that's worse! but here's an example I'm looking at
    PHP Code:
    [02-Aug-2019 12:19:08 UTCRequest URI: /products/index.php?main_page=checkout_shippingIP address172.101.3.191
    #1  paypalwpp->__construct() called at [/home/xxxx/public_html/products/includes/classes/payment.php:75]
    #2  payment->__construct() called at [/home/xxx/public_html/products/includes/modules/pages/checkout_shipping/header_php.php:228]
    #3  require(/home/xxx/public_html/products/includes/modules/pages/checkout_shipping/header_php.php) called at [/home/xxx/public_html/products/index.php:36]
    --> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALWPP_CHECKOUTSTYLE assumed 'MODULE_PAYMENT_PAYPALWPP_CHECKOUTSTYLE' (this will throw an Error in a future version of PHPin /home/matri14/public_html/products/includes/modules/payment/paypalwpp.php on line 185. 
    I didn't install this - it was 1.5.6a - updated files to 1.5.6c. No mods added. Shouldn't report all errors not be working here? Not lost just a bit bewildered.
    The full-time Zen Cart Guru. WizTech4ZC.com

  8. #138
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    10,451
    Plugin Contributions
    78

    Default Re: USPS January 17 2016 K8 - Support Quirks

    That's coming from the PayPal Express Checkout (/includes/modules/payment/paypalwpp.php), not the usps shipping method. Previously reported in this Zen Cart GitHub issue.

  9. #139
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,159
    Plugin Contributions
    22

    Default Re: USPS January 17 2016 K8 - Support Quirks

    Yeah, I stopped the USPS warning with my edits. So a known issue? I have good reason for not using 1.5.6 now.
    The full-time Zen Cart Guru. WizTech4ZC.com

  10. #140
    Join Date
    Aug 2005
    Location
    San Juan, Puerto Rico
    Posts
    1,478
    Plugin Contributions
    9

    Default Re: USPS January 17 2016 K8 - Support Quirks

    So USPS module doesn't work with 1.5.6?
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!
    My contributions: SophyBlue / Sophy Blue-Grey / Mistik / The Bookshelf / Dynamic Sideboxes

 

 
Page 14 of 15 FirstFirst ... 412131415 LastLast

Similar Threads

  1. USPS January 17, 2016 K8 BETA TEST SERVER ONLY
    By Ajeh in forum Addon Shipping Modules
    Replies: 67
    Last Post: 17 Jan 2016, 06:08 PM
  2. v154 USPS January 17 2016 rate increase
    By azzenner in forum Addon Shipping Modules
    Replies: 8
    Last Post: 17 Jan 2016, 06:06 PM
  3. USPS RateV4 Intl RateV2 - Jan 17, 2016 Version K8
    By Ajeh in forum Zen Cart Release Announcements
    Replies: 1
    Last Post: 17 Jan 2016, 06:04 PM
  4. Replies: 14
    Last Post: 24 Jan 2014, 06:51 PM
  5. v139h USPS January 22, 2012
    By joejoejoe in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 24 Jan 2012, 04:25 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR