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

Phoca Gallery - image gallery extension
Zotius
Phoca Member
Phoca Member
Posts: 16
Joined: 08 Feb 2012, 17:46
Location: Mosonmagyarovar, Hungary
Contact:

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

Post 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

Tags:
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

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

Post 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
Zotius
Phoca Member
Phoca Member
Posts: 16
Joined: 08 Feb 2012, 17:46
Location: Mosonmagyarovar, Hungary
Contact:

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

Post 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.
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

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

Post by christine »

Hi,

thanks for your feedback.

Kind regards
Christine
Post Reply