Page 1 of 1

PHP 7.2 error

Posted: 04 Apr 2018, 23:12
by dannette
I inadvertently had Developer error reporting turned on so I saw this error:

Code: Select all

Warning: count(): Parameter must be an array or an object that implements Countable in /home/xxxx/public_html/components/com_phocadownload/views/category/tmpl/default.php on line 105
I turned off error reporting and it went away but wanted you to be aware. When I searched the error I came across this thread if it helps:
https://forum.joomla.org/viewtopic.php?t=959426

Re: PHP 7.2 error

Posted: 08 Apr 2018, 14:31
by Jan
Hi, thank you for the info, yes hiding the errors is the solution for now.

You can do a quick fix on line 105

FROM:

Code: Select all

if (count($this->category[0])) {

TO:

Code: Select all

if (count($this->files)) {
Will be fixed in next version.

Jan

Re: PHP 7.2 error

Posted: 09 Apr 2018, 16:40
by dannette
Thanks!

Re: PHP 7.2 error

Posted: 16 Apr 2018, 11:54
by Jan
Ok

Re: PHP 7.2 error

Posted: 20 Jan 2019, 01:05
by Jan