Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2008
    Posts
    192
    Plugin Contributions
    0

    Default undefined constant in usps module

    Not sure if this belongs here or in the shipping module section.

    Running 1.56b, received this warning/error:

    HTML Code:
    [12-Aug-2019 10:44:32 America/New_York] Request URI: /index.php?main_page=checkout_shipping, IP address: xxxx
    #1  usps->quote() called at [/usr/www/users/xxx/includes/classes/shipping.php:169]
    #2  shipping->quote() called at [/usr/www/users/xxx/includes/modules/pages/checkout_shipping/header_php.php:187]
    #3  require(/usr/www/users/xxx/includes/modules/pages/checkout_shipping/header_php.php) called at [/usr/www/users/xxx/index.php:36]
    --> PHP Warning: Use of undefined constant MODULE_SHIPPING_USPS_REGULATIONS - assumed 'MODULE_SHIPPING_USPS_REGULATIONS' (this will throw an Error in a future version of PHP) in /usr/www/users/xxx/includes/modules/shipping/usps.php on line 351.
    thanks,
    Ed

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,690
    Plugin Contributions
    123

    Default Re: undefined constant in usps module

    Hopefully this will be properly fixed in the next version of the USPS module, but for now change includes/modules/shipping/usps.php line 351 from

    if (MODULE_SHIPPING_USPS_REGULATIONS == 'True') {

    to

    if (defined('MODULE_SHIPPING_USPS_REGULATIONS') && MODULE_SHIPPING_USPS_REGULATIONS == 'True') {
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Nov 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: undefined constant in usps module

    Thank you for the fast response. Fix applied.

 

 

Similar Threads

  1. v156 Undefined Constant Errors
    By shrimp-gumbo-mmmhhh in forum Bug Reports
    Replies: 3
    Last Post: 25 Apr 2019, 06:30 PM
  2. v156 Undefined constant MODULE_PAYMENT_AUTHORIZENET_AIM_CURRENCY
    By PanZC2020 in forum Bug Reports
    Replies: 1
    Last Post: 27 Feb 2019, 09:01 PM
  3. Undefined Notice: Use of undefined constant
    By TheOracle in forum Bug Reports
    Replies: 0
    Last Post: 6 May 2007, 06:33 PM

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