Zen Cart Logo
Forums / Bug Reports / myDEBUG file created from responsive classic template (stock)

myDEBUG file created from responsive classic template (stock)

Views: 489

Results 1 to 3 of 3
22 Apr 2019, 5:27 PM
#1
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

myDEBUG file created from responsive classic template (stock)

Zen Cart 1.5.6a

Database Patch Level: 1.5.6

PHP Version: 7.2.17 (Zend: 3.2.0)

modules
backup_mysql
encrypted_master_password
keep_cart
numinix-google-analytics
remember me
usu-3.0

[22-Apr-2019 12:01:12 America/Chicago] Request URI: /XXX-p-5.html, IP address: 66.249.XX.XX
#1 sizeof() called at [/home/shrimps/public_html/includes/templates/responsive_classic/templates/tpl_modules_mobile_menu.php:129]
#2 require(/home/shrimps/public_html/includes/templates/responsive_classic/templates/tpl_modules_mobile_menu.php) called at [/home/shrimps/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:258]
#3 require(/home/shrimps/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/shrimps/public_html/index.php:97]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/shrimps/public_html/includes/templates/responsive_classic/templates/tpl_modules_mobile_menu.php on line 129.

Thank you!

22 Apr 2019, 5:35 PM
#2
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: myDEBUG file created from responsive classic template (stock)

change line 129 of /home/shrimps/public_html/includes/templates/responsive_classic/templates/tpl_modules_mobile_menu.php to ```php
if (!empty($var_linksList)) {


ps, I made a PR on github to fix this
<https://github.com/zencart/zencart/pull/2285>
22 Apr 2019, 6:03 PM
#3
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: myDEBUG file created from responsive classic template (stock)

Thank you!