No access to back-end with an error on a phocagallery file

Phoca Gallery - image gallery extension
slyv
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 01 Nov 2018, 16:47

No access to back-end with an error on a phocagallery file

Post by slyv »

Hi,

I can't access anymore on the backend of my website http://www.asnraincy.fr, with a "504 Gateway Time-out" error with Joomla 3.8, phocaGallery 4.3.10.

On the log, I can see the Following :
AH01071: Got error 'PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/asnraincy.fr/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/imagefront.php on line 474\nPHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/asnraincy.fr/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/imagefront.php on line 474\nPHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/asnraincy.fr/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/imagefront.php on line 474\n', referer: http://asnraincy.fr/index.php?option=co ... 21&lang=fr

How i can modify the file "imagefront.php" to remove this error ?

Thanks a lot

Regards

Sylvain
slyv
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 01 Nov 2018, 16:47

Re: No access to back-end with an error on a phocagallery file

Post by slyv »

I found how to remove this error on a other post replacing

Code: Select all

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

Code: Select all

if ($rightDisplay == 0) {
	$images = array(0);
}
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: No access to back-end with an error on a phocagallery file

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: No access to back-end with an error on a phocagallery file

Post by Jan »

Hi, should be OK in version 4.3.11
https://www.phoca.cz/news/1003-phoca-ga ... 1-released

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