Problems in PHP 7.2.5

Before you ask see the Phoca Gallery User Manual
tekfix
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 27 Feb 2014, 10:38

Problems in PHP 7.2.5

Post by tekfix » 13 Jun 2018, 08:33

Joomla 3.8.8 and Phoca Gallery 4.3.10. My webhotel operator updated the server to PHP 7.2.5 and now the categories view show nothing at all. When I enable maximum error reporting I get a long list of warnings:

Warning: count(): Parameter must be an array or an object that implements Countable in /home/en/www/administrator/components/com_phocagallery/libraries/phocagallery/image/imagefront.php on line 474

How can I fix this?


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

Re: Problems in PHP 7.2.5

Post by Jan » 13 Jun 2018, 15:52

Hi, try to open this file:
administrator\components\com_phocagallery\libraries\phocagallery\image\imagefront.php

and on line cca 470 change
FROM:

Code: Select all

if ($rightDisplay == 0) {
			$images = 0;
		}
TO:

Code: Select all

if ($rightDisplay == 0) {
			$images = array(0);
		}
and let me know if it works for you.

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

jobrusche
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 18 Apr 2012, 16:26

Re: Problems in PHP 7.2.5

Post by jobrusche » 04 Aug 2018, 18:16

Hi Jan,

Have the same warning on PHP 7.2 and switched PHP back to 7.1 on the host.
Can you give us a timetable for when this wil be fixed in an official release of PhocaGallery ?

Thanks in advance,
Johan.

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

Re: Problems in PHP 7.2.5

Post by Jan » 07 Aug 2018, 13:35

Hi, really hard to say, as they are some more tasks (for another extensions) in the stack, so really hard to say (the only one I can say is, it will be in next release) :-(

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

Post Reply