Page 1 of 1

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

Posted: 21 Nov 2019, 15:02
by Zotius
Hi,
My site uses php 7.2 version.
The Phoca Gallery component causes serial entries to be added to the error_log file:
[21-Nov-2019 13:48:00 Europe/Budapest] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /........./components/com_phocadownload/views/category/tmpl/default.php on line 98
Disabling alerts is not a good solution in the php.ini file, so please, do not recommend this.
Please modify the code according to php 7.2

Re: PHP Warning: count(): Parameter must be an array or an object that implements Countable

Posted: 21 Nov 2019, 17:12
by christine
Hi,

Phoca extensions are compatible with PHP 7.2/7.3. Are you using the latest Phoca Download? BTW also Joomla Version 3.9.13?
https://www.phoca.cz/download/category/ ... -component

Kind regards
Christine

Re: PHP Warning: count(): Parameter must be an array or an object that implements Countable

Posted: 21 Nov 2019, 17:36
by Zotius
Yes, my Joomla Version is 3.9.13.
The PD version was old... :(
I forgot to check the version. Now I updated it, so it's all right... Thank You.

Re: PHP Warning: count(): Parameter must be an array or an object that implements Countable

Posted: 21 Nov 2019, 18:41
by christine
Hi,

thanks for your feedback.

Kind regards
Christine