Page 1 of 1

Phoca Gallery Plugin crashes with undefined constant DS

Posted: 21 Mar 2023, 09:59
by wurzelsepp
when enabling phoca gallery plugin the system crashes in front- and backend
with the error "Use of undefined constant DS - assumed 'DS' "

using Joomla 4 and Phoca Gallery 4.5.2

adding the line:
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);

to phocagalleryslideshow.php let's the system crash with error 500

Re: Phoca Gallery Plugin crashes with undefined constant DS

Posted: 21 Mar 2023, 12:10
by Benno
Hi,
1.) Which version of Phoca Gallery Plugin do you use?
2.) Try to enable Joomla! Debug mode to get a complete error message with file and line (Call Stack).

Kind regasrds,
Benno

Re: Phoca Gallery Plugin crashes with undefined constant DS

Posted: 21 Mar 2023, 13:51
by wurzelsepp
oh sorry, was my mistake, i used an older version of the plugin (3.2.0), this was working with Joomla 4,
but now i have updated the plugin to 4.4.0 and now the backend doesnt crash anymore when activating the
plugin, but slideshow in frontend is not apearing!?

Re: Phoca Gallery Plugin crashes with undefined constant DS

Posted: 21 Mar 2023, 14:13
by Benno
Hi,
i have updated the plugin to 4.4.0
Current version of Phoca Gallery Plugin for J4 is v4.5.4

Kind regards,
Benno

Re: Phoca Gallery Plugin crashes with undefined constant DS

Posted: 21 Mar 2023, 14:28
by wurzelsepp
sorry the phoca gallery plugin i installed is the 4.5.4
but phoca gallery slideshow plugin i installed is 4.4.0 and that causes the slideshow not to appear

Re: Phoca Gallery Plugin crashes with undefined constant DS

Posted: 21 Mar 2023, 14:35
by Benno
Hi,
see: https://www.phoca.cz/download/category/ ... how-plugin
There is no Phoca Gallery Slideshow Plugin available for J4 yet.

Kiund regards,
Benno