Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Oct 2015
    Location
    Memphis, TN
    Posts
    16
    Plugin Contributions
    0

    Default Re: Shipping Estimator on PHP 7.3

    You are correct. The code did fix the error for includes/classes/shipping.php. I was so tired at the end of the day I didn't realize that after the code, only one error was popping up instead of the original 2. I'm still getting the following error for non-logged in customers on PHP 7.2.15 and 7.3.2 for the module template.
    Code:
    Request URI: /index.php?main_page=popup_shipping_estimator
    #1 sizeof() called at [/includes/templates/template_default/templates/tpl_modules_shipping_estimator.php:134]
    #2 require(/includes/templates/template_default/templates/tpl_modules_shipping_estimator.php) called at [/includes/modules/shipping_estimator.php:256]
    #3 require(/includes/modules/shipping_estimator.php) called at [/includes/templates/template_default/popup_shipping_estimator/tpl_main_page.php:16]
    #4 require(/includes/templates/template_default/popup_shipping_estimator/tpl_main_page.php) called at [/index.php:97]
    --> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /includes/templates/template_default/templates/tpl_modules_shipping_estimator.php on line 134.
    I've been proudly using Zen Cart for over 10 years. ZC has taught me almost everything I know about PHP, Javascript, HTML and CSS. I just want to help in making it better.

    With 1.5.6a, I decided to go as basic as I could with minimal plug-ins, replaced all of the files on my server and re-built my template and database, mainly because I had so many errors after upgrading from 1.5.5e and PHP from 5.5 to 7.3. Probably should not have done them both at the same time. It has been a long couple of weeks.

    Anyway, I've switched my system back to PHP 7.3.2 since this is really the only error I'm still getting.

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

    Default Re: Shipping Estimator on PHP 7.3

    Quote Originally Posted by badplanetkevin View Post
    You are correct. The code did fix the error for includes/classes/shipping.php. I was so tired at the end of the day I didn't realize that after the code, only one error was popping up instead of the original 2. I'm still getting the following error for non-logged in customers on PHP 7.2.15 and 7.3.2 for the module template.
    Code:
    Request URI: /index.php?main_page=popup_shipping_estimator
    #1 sizeof() called at [/includes/templates/template_default/templates/tpl_modules_shipping_estimator.php:134]
    #2 require(/includes/templates/template_default/templates/tpl_modules_shipping_estimator.php) called at [/includes/modules/shipping_estimator.php:256]
    #3 require(/includes/modules/shipping_estimator.php) called at [/includes/templates/template_default/popup_shipping_estimator/tpl_main_page.php:16]
    #4 require(/includes/templates/template_default/popup_shipping_estimator/tpl_main_page.php) called at [/index.php:97]
    --> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /includes/templates/template_default/templates/tpl_modules_shipping_estimator.php on line 134.
    I've been proudly using Zen Cart for over 10 years. ZC has taught me almost everything I know about PHP, Javascript, HTML and CSS. I just want to help in making it better.

    With 1.5.6a, I decided to go as basic as I could with minimal plug-ins, replaced all of the files on my server and re-built my template and database, mainly because I had so many errors after upgrading from 1.5.5e and PHP from 5.5 to 7.3. Probably should not have done them both at the same time. It has been a long couple of weeks.

    Anyway, I've switched my system back to PHP 7.3.2 since this is really the only error I'm still getting.
    Looking at the code in this area, the *WARNING* that you are getting is "expected" considering the result(s) returned by the shipping method. I say expected because the code considers that either one method or multiple methods are returned. In the case where no method has yet been provided, the code in the associated template file does not properly or perhaps better said, does not sufficiently, handle the situation.

    Certainly requires a change to avoid logging of that issue.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #13
    Join Date
    Oct 2015
    Location
    Memphis, TN
    Posts
    16
    Plugin Contributions
    0

    Default Re: Shipping Estimator on PHP 7.3

    Quote Originally Posted by mc12345678 View Post
    Looking at the code in this area, the *WARNING* that you are getting is "expected" considering the result(s) returned by the shipping method. I say expected because the code considers that either one method or multiple methods are returned. In the case where no method has yet been provided, the code in the associated template file does not properly or perhaps better said, does not sufficiently, handle the situation.

    Certainly requires a change to avoid logging of that issue.
    I very much appreciate your explanations! I'll be watching for any new warnings while I poke around on my fresh install.

  4. #14
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Shipping Estimator on PHP 7.3

    Quote Originally Posted by badplanetkevin View Post
    I very much appreciate your explanations! I'll be watching for any new warnings while I poke around on my fresh install.
    Submitted a Pull Request for this: https://github.com/zencart/zencart/pull/2165/files
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Hide Available Shipping Methods table until Shipping Estimator runs
    By DivaVocals in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 13 Apr 2023, 12:59 PM
  2. v151 Shipping Estimator Sidebox gives PHP warnings and just act strange...
    By dysfunctional in forum Addon Sideboxes
    Replies: 0
    Last Post: 16 Jul 2014, 05:45 AM
  3. v151 Shipping Estimator Sidebox PHP Fatal error: Cannot redeclare class order on 1.5.1
    By explorer1979 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Apr 2014, 08:29 AM
  4. Shipping Estimator: USPS shipping and mixed download/physical products
    By lat9 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 23 Nov 2009, 03:04 PM
  5. How do I show usps, ups, fed/ex shipping estimates in shipping estimator?
    By hlorenzolaw in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 13 Nov 2009, 07:11 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