Error message : Warning: count(): Parameter must be an array

User avatar
michoupotvin
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 02 Aug 2018, 17:19

Error message : Warning: count(): Parameter must be an array

Post by michoupotvin » 02 Aug 2018, 17:33

Hello,
I get this error message when adding menu link to phocadownload categories, and if I try to link to only one file only nothing is displayed except for Powered by Phoca Download

Warning: count(): Parameter must be an array or an object that implements Countable in /home/webgraf/public_html/webgrafdev.com/ftp2018/reijq/components/com_phocadownload/views/category/tmpl/default.php on line 105
http://webgrafdev.com/webgrafdev.com/ft ... gory/5-psi

Thank you for your cooperation


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

Re: Error message : Warning: count(): Parameter must be an array

Post by Jan » 07 Aug 2018, 13:58

Hi, which version of Phoca Download do you use?

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

avoida
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 09 Aug 2018, 20:14

Re: Error message : Warning: count(): Parameter must be an array

Post by avoida » 09 Aug 2018, 20:17

I have same problem, my version of Phoca Download is 3.1.4, PHP version on server is 7.2 / when change version PHP to 7.1, the warning message is out, but cant download files.

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

Re: Error message : Warning: count(): Parameter must be an array

Post by Jan » 11 Aug 2018, 16:40

Hi, thank you for info, there warning is not a fatal error, it should not have any influence on downloading the items :idea:

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

avoida
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 09 Aug 2018, 20:14

Re: Error message : Warning: count(): Parameter must be an array

Post by avoida » 11 Aug 2018, 19:41

yes, the message is not fatal and the component works well, but the site owner wants to NO have this message.

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

Re: Error message : Warning: count(): Parameter must be an array

Post by christine » 11 Aug 2018, 20:12

Hi,
then go to: System > Global Configuration > Server > Error Reporting > None

Kind regards
Christine

avoida
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 09 Aug 2018, 20:14

Re: Error message : Warning: count(): Parameter must be an array

Post by avoida » 11 Aug 2018, 20:47

Thank you.

Post Reply