Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
That was a fun one to track down...
Looks like I spoke too soon. Shipping estimator displayed but DEBUG files generated now.
Code:
[12-Jan-2019 11:10:25 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 2600:100f:b00c:f38a:cced:4ebf:d2d2:9228
#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:171]
#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.
[12-Jan-2019 11:10:25 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 2600:100f:b00c:f38a:cced:4ebf:d2d2:9228
#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:171]
#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.
Not sure where it is getting the ProductID but this DEBUG file also is present a few times. Different product_id. Using phone instead of desktop.
Code:
[12-Jan-2019 11:13:09 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart&product_id=651%3A5058ffcbfc8164c194b4a2ac6cb718c6, IP address: 2600:100f:b00c:f38a:cced:4ebf:d2d2:9228
#1 require(/home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php) called at [/home/chaisinf/public_html/156/index.php:36]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php on line 9.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
RixStix
Looks like I spoke too soon. Shipping estimator displayed but DEBUG files generated now.
Not sure where it is getting the ProductID but this DEBUG file also is present a few times. Different product_id. Using phone instead of desktop.
This file is generated when items in the cart are removed from the cart using the trashcan icon. If one item is in the cart and trashed, one file is generated. If two items are in the cart and both trashed individually, only one file is generated.
Same whether using Galaxy S4 on VZW network or my desktop.
Code:
[12-Jan-2019 11:13:09 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart&product_id=651%3A5058ffcbfc8164c194b4a2ac6cb718c6, IP address: 2600:100f:b00c:f38a:cced:4ebf:d2d2:9228
#1 require(/home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php) called at [/home/chaisinf/public_html/156/index.php:36]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php on line 9.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
RixStix
Not sure where it is getting the ProductID but this DEBUG file also is present a few times. Different product_id. Using phone instead of desktop.
This file is generated when items in the cart are removed from the cart using the trashcan icon. If one item is in the cart and trashed, one file is generated. If two items are in the cart and both trashed individually, only one file is generated.
Same whether using Galaxy S4 on VZW network or my desktop.
Code:
[12-Jan-2019 11:13:09 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart&product_id=651%3A5058ffcbfc8164c194b4a2ac6cb718c6, IP address: 2600:100f:b00c:f38a:cced:4ebf:d2d2:9228
#1 require(/home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php) called at [/home/chaisinf/public_html/156/index.php:36]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php on line 9.
fix:
https://github.com/zcadditions/ZCA-B....0a/issues/147
Re: ZCA Bootstrap 4 Template [Support Thread]
Version 2.0.0a was uploaded some time ago but not approved yet.
Code:
Version 2.0.0a 10 January 2019:
1.) Removes Optional-OPC-Template-Overrides
Note: Once this is updated for 1.5.6 I will provide a separate GitHub repository which will provide Bootstrap compatibility.
https://github.com/zcadditions/ZCA-OPC-for-1.5.6
Files changed in 2.0.0a
1 - includes/templates/bootstrap/templates/tpl_checkout_success_default.php
2 - includes/languages/english/bootstrap/button_names.php
3 - includes/modules/order_total/ot_coupon.php
4 - includes/templates/bootstrap/templates/tpl_checkout_payment_default.php
5 - includes/templates/bootstrap/templates/tpl_ajax_checkout_confirmation_default.php
6 - includes/classes/ajax/zcAjaxPayment.php
Files deleted in 2.0.0a
1 - All Optional-OPC-Template-Overrides file
Version 2.0.0b will follow shortly after - still waiting on input regarding issues found
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
Yes, thank you.
Shipping estimator DEBUG still being generated.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
RixStix
Yes, thank you.
Shipping estimator DEBUG still being generated.
Rick,
can you uninstall the - remove the fedex module and report back
I am no longer getting any debug files on my end
Re: ZCA Bootstrap 4 Template [Support Thread]
I'll do that tomorrow. I figured I needed to get back to a known starting point so that I didn't have you chasing your tail due to something I did incorrectly.
I was just able to eliminate the DEBUG file generated by the Numinix fedex warning by inserting into
includes/languages/english.php
Code:
// to remove PHP Warning: Use of undefined constant MODULE_SHIPPING_BOXES_MANAGER_STATUS generated by Numinix Fedex Module v1.7.6
define('MODULE_SHIPPING_BOXES_MANAGER_STATUS', '');
Re: ZCA Bootstrap 4 Template [Support Thread]
So the issue with the shipping estimator failing has been fixed. see post 107
The debug files being generated by 3rd party shipping modules is NOT template related no is it CORE code related. I will continue to troubleshoot this but all findings will be here.
Re: ZCA Bootstrap 4 Template [Support Thread]
table cell alignment of cart totals in shopping cart confirmation
In ZCA 2.00 includes\templates\bootstrap\templates\tpl_modules_order_totals.php the cart totals eg sub-total, tax, total are not aligned with the item totals in the lines above
line 21 is <td colspan="2" class="text-right bg-white">
and should be <td colspan="3" class="text-right bg-white">
Environment: Win10; ZC156a; Wamp 3.1.6; Apache 2.4.33; PHP 7.1.16; MySQl 5.7.21
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
I just did a vanilla install and same is generated by the responsive_classic so I'm thinking it's something related to the core code while it loops through the installed modules.
I need to give my eyes a rest today, everything is starting to look the same. Lol
i think part of it is fixed here:
https://github.com/zencart/zencart/pull/2078
best.