Page 1 of 1

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

Posted: 02 Aug 2018, 17:33
by michoupotvin
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

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

Posted: 07 Aug 2018, 13:58
by Jan
Hi, which version of Phoca Download do you use?

Jan

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

Posted: 09 Aug 2018, 20:17
by avoida
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.

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

Posted: 11 Aug 2018, 16:40
by Jan
Hi, thank you for info, there warning is not a fatal error, it should not have any influence on downloading the items :idea:

Jan

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

Posted: 11 Aug 2018, 19:41
by avoida
yes, the message is not fatal and the component works well, but the site owner wants to NO have this message.

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

Posted: 11 Aug 2018, 20:12
by christine
Hi,
then go to: System > Global Configuration > Server > Error Reporting > None

Kind regards
Christine

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

Posted: 11 Aug 2018, 20:47
by avoida
Thank you.