Issue when using PHP 7.2.9

Phoca Download - download manager
downunder
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 16 Sep 2009, 09:19

Issue when using PHP 7.2.9

Post by downunder »

The following appears at the base of the file list...

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

Rolling back to 7.1 fixes the issue.

For info Jan.

error in.....front end...components/com_phocadownload/views/category/tmpl/default.php on line 98

this line on 3.1.4
components/com_phocadownload/views/category/tmpl/default.php on line 105

temp fix.... don't know if its right

if (count($this->category)) {
echo $this->loadTemplate('pagination');
}
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Issue when using PHP 7.2.9

Post by Jan »

Hi, thank you for the info, this will be solved in next version. For now you can just solve it with disabling php errors (it is only warning for developers which does not influence the code)

or hot fix it in code directly:
viewtopic.php?f=31&t=59012&p=152033#p152021

So the same way like you suggest.

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