Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default FedEx Module Version 1.5.4, PHP Warning and Deprecated error in logs

    I am receiving PHP Warning and Deprecated error logs in a vanilla Zen Cart 1.5.7 installation (PHP Version: 7.3.20) with FedEx Web Services Shipping Version 1.5.4

    [12-Aug-2020 17:10:26 UTC] Request URI: /zen-cart-v1.5.7/index.php?main_page=shopping_cart, IP address: 00.000.000.000
    #1 fedexwebservices->build_request() called at [/public_html/zen-cart-v1.5.7/includes/modules/shipping/fedexwebservices.php:470]
    #2 fedexwebservices->quote() called at [/public_html/zen-cart-v1.5.7/includes/classes/shipping.php:174]
    #3 shipping->quote() called at [/public_html/zen-cart-v1.5.7/includes/modules/shipping_estimator.php:156]
    #4 require(/public_html/zen-cart-v1.5.7/includes/modules/shipping_estimator.php) called at [/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php:200]
    #5 require(/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php) called at [/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/common/tpl_main_page.php:177]
    #6 require(/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/public_html/zen-cart-v1.5.7/index.php:94]
    --> PHP Warning: Use of undefined constant MODULE_SHIPPING_BOXES_MANAGER_STATUS - assumed 'MODULE_SHIPPING_BOXES_MANAGER_STATUS' (this will throw an Error in a future version of PHP) in /public_html/zen-cart-v1.5.7/includes/modules/shipping/fedexwebservices.php on line 85.


    [12-Aug-2020 17:10:26 UTC] Request URI: /zen-cart-v1.5.7/index.php?main_page=shopping_cart, IP address: 00.000.000.000
    #1 fedexwebservices->build_request() called at [/public_html/zen-cart-v1.5.7/includes/modules/shipping/fedexwebservices.php:470]
    #2 fedexwebservices->quote() called at [/public_html/zen-cart-v1.5.7/includes/classes/shipping.php:174]
    #3 shipping->quote() called at [/public_html/zen-cart-v1.5.7/includes/modules/shipping_estimator.php:156]
    #4 require(/public_html/zen-cart-v1.5.7/includes/modules/shipping_estimator.php) called at [/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php:200]
    #5 require(/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php) called at [/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/common/tpl_main_page.php:177]
    #6 require(/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/public_html/zen-cart-v1.5.7/index.php:94]
    --> PHP Warning: Use of undefined constant MODULE_SHIPPING_BOXES_MANAGER_STATUS - assumed 'MODULE_SHIPPING_BOXES_MANAGER_STATUS' (this will throw an Error in a future version of PHP) in /public_html/zen-cart-v1.5.7/includes/modules/shipping/fedexwebservices.php on line 277.

    and

    [12-Aug-2020 17:10:26 UTC] Request URI: /zen-cart-v1.5.7/index.php?main_page=shopping_cart, IP address: 00.000.000.000
    #1 include_once() called at [/public_html/zen-cart-v1.5.7/includes/classes/shipping.php:67]
    #2 shipping->__construct() called at [/public_html/zen-cart-v1.5.7/includes/modules/shipping_estimator.php:153]
    #3 require(/public_html/zen-cart-v1.5.7/includes/modules/shipping_estimator.php) called at [/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php:200]
    #4 require(/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php) called at [/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/common/tpl_main_page.php:177]
    #5 require(/public_html/zen-cart-v1.5.7/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/public_html/zen-cart-v1.5.7/index.php:94]
    --> PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; fedexwebservices has a deprecated constructor in /public_html/zen-cart-v1.5.7/includes/modules/shipping/fedexwebservices.php on line 2.


    Thanks for your time!

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

    Default Re: FedEx Module Version 1.5.4, PHP Warning and Deprecated error in logs

    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
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: FedEx Module Version 1.5.4, PHP Warning and Deprecated error in logs

    Thanks swguy!
    I searched through the forum but didn't think of checking the docs page.

    For anyone else that needs this fix, edit:
    includes/modules/shipping/fedexwebservices.php

    Change Line 6:
    function fedexwebservices() {
    to
    function __construct()

    Change Line 85:
    if (MODULE_SHIPPING_BOXES_MANAGER_STATUS == 'true') {
    to
    if (defined('MODULE_SHIPPING_BOXES_MANAGER_STATUS') && MODULE_SHIPPING_BOXES_MANAGER_STATUS == 'true') {

    Change Line 277:
    if (MODULE_SHIPPING_BOXES_MANAGER_STATUS == 'true' && is_array($packed_boxes) && sizeof($packed_boxes) > 0) {
    to
    if (defined(‘MODULE_SHIPPING_BOXES_MANAGER_STATUS') && MODULE_SHIPPING_BOXES_MANAGER_STATUS == 'true' && is_array($packed_boxes) && sizeof($packed_boxes) > 0) {

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

    Default Re: FedEx Module Version 1.5.4, PHP Warning and Deprecated error in logs

    Quote Originally Posted by Mattie C View Post
    Thanks swguy!
    I searched through the forum but didn't think of checking the docs page.
    You wouldn't have found it - I just created it! :)
    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.

 

 

Similar Threads

  1. v155 PHP Warning: MySQL Headers and client library minor version mismatch
    By MikeyG in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 9 May 2017, 10:54 PM
  2. v151 "Warning: An error occurred" and no debug logs
    By emiLy in forum General Questions
    Replies: 13
    Last Post: 2 Apr 2014, 07:37 PM
  3. Replies: 3
    Last Post: 13 Jun 2012, 01:43 PM
  4. Replies: 2
    Last Post: 21 Aug 2010, 09:13 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