PHP 7.2 error

Phoca Download - download manager
dannette
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Apr 2017, 21:28

PHP 7.2 error

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PHP 7.2 error

Post 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
If you find Phoca extensions useful, please support the project
dannette
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Apr 2017, 21:28

Re: PHP 7.2 error

Post by dannette »

Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PHP 7.2 error

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PHP 7.2 error

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply