Zen Cart 1.5.6c, with define pages 2,3,4 all turned off.
DB patch level 1.5.6
PHP 7.3.6-1
In my debug logs, I found
Line 33 in the more_information.php sidebox is# cat logs/myDEBUG-20190725-001038-086304.log
[25-Jul-2019 00:10:38 Asia/Tokyo] Request URI: /shop/index.php?main_page=time_out, IP address: 192.168.0.3
#1 sizeof() called at [***/shop/includes/modules/sideboxes/more_information.php:33]
#2 require(***/shop/includes/modules/sideboxes/more_information.php) called at [***/shop/includes/modules/column_left.php:31]
#3 require(***/shop/includes/modules/column_left.php) called at [***/shop/includes/templates/gernotshop/common/tpl_main_page.php:136]
#4 require(***/shop/includes/templates/gernotshop/common/tpl_main_page.php) called at [***/shop/index.php:97]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in ***/shop/includes/modules/sideboxes/more_information.php on line 33.
and to solve the issue of $more_information being entirely unset (all the define pages used to populate it are turned off), I change it toif (sizeof($more_information) > 0) {
following the advice in:if (!empty($more_information)) {
https://www.zen-cart.com/showthread....mplate-(stock)
Bookmarks