Page 1 of 1

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

Posted: 01 Nov 2018, 16:53
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

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

Posted: 01 Nov 2018, 17:14
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);
}

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

Posted: 06 Nov 2018, 14:47
by Jan
Ok

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

Posted: 28 Jan 2019, 16:07
by Jan
Hi, should be OK in version 4.3.11
https://www.phoca.cz/news/1003-phoca-ga ... 1-released

Jan