Page 1 of 1

PHP 7.2 error

Posted: 01 Jul 2018, 20:22
by SylDer
Hello,
Since i upgraded to PHP 7.2 i found this warning on the web page:

Warning: count(): Parameter must be an array or an object that implements Countable in
.../components/com_phocadownload/views/category/tmpl/default.php on line 98

Is there a simple way to fix it ?

Thank you.

Re: PHP 7.2 error

Posted: 01 Jul 2018, 22:17
by christine
Hi,

see similar thread here please: viewtopic.php?f=31&t=58787
as lines may be different, current version is: 3.1.4

Kind regards
Christine

Re: PHP 7.2 error

Posted: 02 Jul 2018, 06:50
by fabio_clavijo
Hello

The solution is in changing the instruction

if (count($this->category[0])) {

for this

if (count($this->category)) {

Bye

Fabio Clavijo

Re: PHP 7.2 error

Posted: 02 Jul 2018, 21:51
by SylDer
Thank you very much.

Re: PHP 7.2 error

Posted: 05 Jul 2018, 13:04
by Jan
Hi, thank you for the info, I will fix it in next version.

Jan

Re: PHP 7.2 error

Posted: 10 Oct 2018, 19:01
by leonleon
Sorry
I have the same error php 7.2
using phocadownload 3.1.4
may be I am stupid
but I can't find where is the line to change.
Could you tell me the name and location of file to edit

Thank you very much

Re: PHP 7.2 error

Posted: 10 Oct 2018, 23:50
by Jan
Hi,
.../components/com_phocadownload/views/category/tmpl/default.php on line 98

or just follow the error messge you get on your server.

Jan

Re: PHP 7.2 error

Posted: 12 Oct 2018, 18:24
by leonleon
thank you very much
I had a big cold and my mind was not very clear
Problem fixed

Re: PHP 7.2 error

Posted: 12 Oct 2018, 20:45
by Jan
Ok, great to hear it.

Jan

Re: PHP 7.2 error

Posted: 20 Jan 2019, 01:04
by Jan