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

[3.7.0] Count / Countable bug in PHP 7.4+ #422

Closed
LuxLOL opened this issue Jun 26, 2020 · 2 comments
Closed

[3.7.0] Count / Countable bug in PHP 7.4+ #422

LuxLOL opened this issue Jun 26, 2020 · 2 comments

Comments

@LuxLOL
Copy link

LuxLOL commented Jun 26, 2020

Steps to reproduce the issue

Installing the WebLinks extension. And creating a Joomla menu to a Web Link.
https://downloads.joomla.org/extensions/weblinks
This happens also with the WebLinks Module.

Expected result

No errors in the HTTP Server log.

Actual result

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/clients/client1/web17/web/components/com_weblinks/models/categories.php on line 95
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/clients/client1/web17/web/modules/mod_weblinks/mod_weblinks.php on line 17

System information (as much as possible)

Joomla v3.9.19 with PHP v7.4 (fpm-fcgi) and MySQL v5.5.5

Additional comments

Forum Topic link: https://forum.joomla.org/viewtopic.php?f=715&t=980815

@LuxLOL LuxLOL changed the title WebLinks extension - Count / Countable bug in PHP 7.3+ Count / Countable bug in PHP 7.3+ Jun 26, 2020
@LuxLOL LuxLOL changed the title Count / Countable bug in PHP 7.3+ [3.7.0] Count / Countable bug in PHP 7.3+ Jun 26, 2020
@LuxLOL LuxLOL changed the title [3.7.0] Count / Countable bug in PHP 7.3+ [3.7.0] Count / Countable bug in PHP 7.4+ Jun 26, 2020
@ReLater
Copy link
Contributor

ReLater commented Mar 23, 2021

PR only for the module issue (confirmed with Joomla 3.9.x): #432

@joomdonation
Copy link
Contributor

Fixed in latest codebase and will be included in next release. So I'm closing this issue.

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

3 participants