Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 7.2 - Warning: count(): Parameter must be an array or an object that implements Countable #411

Closed
alebak opened this issue Jan 13, 2019 · 1 comment

Comments

@alebak
Copy link

alebak commented Jan 13, 2019

Hello,

Digicom has warning messages in PHP 7.2. Please check the extension where uses the count function.

Warning: count(): Parameter must be an array or an object that implements Countable in [joomla_directroy]/components/com_digicom/views/category/view.html.php on line 102

Warning: count(): Parameter must be an array or an object that implements Countable in [joomla_directroy]/administrator/modules/mod_digicom_menu/tmpl/default.php on line 26

@alebak
Copy link
Author

alebak commented Oct 1, 2019

I resolve it...

In /administrator/modules/mod_digicom_menu/tmpl/default.php on line 26:

if (count($menuItems->submenu) > 0) :

Add (array) inside count function:

if (count((array)$menuItems->submenu) > 0) :

Digicom is dead! 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant