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.
Bookmarks