Totally Zenned
- Join Date:
- Feb 2010
- Posts:
- 2,159
- Plugin Contributions:
- 10
ZCA Bootstrap 4 Template [Support Thread]
RixStix:
I understand other paying jobs should take priority over other issues.
zca_bootstrap
Shipping estimator does not function if customer is not logged in.
Customer logs in and shipping estimator is functional.Switch to classic responsive
shipping estimator functions as expected and no debug files generated
regardless of customer login status.The debug file changes after running the zca_mySQL.
The first debug references bootstrap shipping/shipping estimator
The second debug references FedexSwitch back to zca_bootstrap
zca_bootstrap DEBUG with the mySQL script to runprior to running the mySQL, the error file generated is
[11-Jan-2019 07:20:31 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
#1 sizeof() called at [/home/cPanelID/public_html/156/includes/classes/shipping.php:186]
#2 shipping->cheapest() called at [/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php:210]
#3 require(/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#4 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#5 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/cPanelID/public_html/156/index.php:97]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/cPanelID/public_html/156/includes/classes/shipping.php on line 186.
[11-Jan-2019 07:20:31 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
#1 sizeof() called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_modules_shipping_estimator.php:153]
#2 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_modules_shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php:256]
#3 require(/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#4 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#5 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/cPanelID/public_html/156/index.php:97]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_modules_shipping_estimator.php on line 153.
>
> After running the zca_bootstrap mySQL, the logfile changes to
> ```
[11-Jan-2019 07:26:39 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
#1 fedexwebservices->build_request() called at [/home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php:540]
#2 fedexwebservices->quote() called at [/home/cPanelID/public_html/156/includes/classes/shipping.php:169]
#3 shipping->quote() called at [/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php:124]
#4 require(/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#5 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#6 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/cPanelID/public_html/156/index.php:97]
--> 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 /home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php on line 106.
[11-Jan-2019 07:26:40 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
#1 fedexwebservices->build_request() called at [/home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php:540]
#2 fedexwebservices->quote() called at [/home/cPanelID/public_html/156/includes/classes/shipping.php:169]
#3 shipping->quote() called at [/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php:124]
#4 require(/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#5 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#6 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/cPanelID/public_html/156/index.php:97]
--> 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 /home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php on line 324.
[11-Jan-2019 07:26:40 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
#1 fedexwebservices->build_request() called at [/home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php:540]
#2 fedexwebservices->quote() called at [/home/cPanelID/public_html/156/includes/classes/shipping.php:169]
#3 shipping->quote() called at [/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php:124]
#4 require(/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#5 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#6 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/cPanelID/public_html/156/index.php:97]
--> 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 /home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php on line 329.
Rick,
I'll take a look at the shipping estimator with the fedex module. I have tested UPS and works fine with the exception of......
The second debug file generated with the missing (undefined) constants is something I am running into on every upgrade and new install for all shipping modules, they seem to generate once upon module installation ONLY. This seems to be a core issue. Not a template issue. But I could be wrong.