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.
PHP 7.2 error
-
- Phoca Hero
- Posts: 2857
- Joined: 28 Nov 2010, 17:20
Re: PHP 7.2 error
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
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
-
- Phoca Newbie
- Posts: 1
- Joined: 02 Jul 2018, 06:42
Re: PHP 7.2 error
Hello
The solution is in changing the instruction
if (count($this->category[0])) {
for this
if (count($this->category)) {
Bye
Fabio Clavijo
The solution is in changing the instruction
if (count($this->category[0])) {
for this
if (count($this->category)) {
Bye
Fabio Clavijo
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: PHP 7.2 error
Hi, thank you for the info, I will fix it in next version.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 23
- Joined: 15 Aug 2012, 20:55
Re: PHP 7.2 error
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
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
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: PHP 7.2 error
Hi,
.../components/com_phocadownload/views/category/tmpl/default.php on line 98
or just follow the error messge you get on your server.
Jan
.../components/com_phocadownload/views/category/tmpl/default.php on line 98
or just follow the error messge you get on your server.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 23
- Joined: 15 Aug 2012, 20:55
Re: PHP 7.2 error
thank you very much
I had a big cold and my mind was not very clear
Problem fixed
I had a big cold and my mind was not very clear
Problem fixed
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: PHP 7.2 error
Ok, great to hear it.
Jan
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: PHP 7.2 error
Should be Ok in 3.1.6
https://www.phoca.cz/download/category/ ... -component
https://www.phoca.cz/download/category/ ... -component
If you find Phoca extensions useful, please support the project