After upgrading to the latest version of Download (3.1.7), this message is showing:
Warning: count(): Parameter must be an array or an object that implements Countable in /customers/..../components/com_phocadownload/views/category/tmpl/default.php on line 98
Any suggestions or a solution? Running Joomla 3.9.2 and PHP 7.1
Error after upgrading
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error after upgrading
Hi, are you sure, you run the version 3.1.7 and your files were not edited. There is no such function (count) on line 98 in category default.php file 
Jan

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 6
- Joined: 08 Oct 2018, 08:23
Re: Error after upgrading
Yes, I downloaded it fresh and installed it. And I never edit any files! Still I see this warning..
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error after upgrading
Does really the error message renders with:
"Warning: count(): Parameter must be an array or an object that implements Countable in /customers/..../components/com_phocadownload/views/category/tmpl/default.php on line 98"
On line 98 in default.php is:
No count function there ???
Can you paste here a screenshot of your line 98
(components/com_phocadownload/views/category/tmpl/default.php open in editor and make a screenshot of line 98)

Jan
"Warning: count(): Parameter must be an array or an object that implements Countable in /customers/..../components/com_phocadownload/views/category/tmpl/default.php on line 98"
On line 98 in default.php is:
Code: Select all
echo $this->loadTemplate('files');
Can you paste here a screenshot of your line 98
(components/com_phocadownload/views/category/tmpl/default.php open in editor and make a screenshot of line 98)

Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error after upgrading
If you find Phoca extensions useful, please support the project