Phoca Gallery Plugin crashes with undefined constant DS

Phoca Gallery - image gallery extension
wurzelsepp
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 21 Mar 2023, 09:32

Phoca Gallery Plugin crashes with undefined constant DS

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9094
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca Gallery Plugin crashes with undefined constant DS

Post 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
wurzelsepp
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 21 Mar 2023, 09:32

Re: Phoca Gallery Plugin crashes with undefined constant DS

Post 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!?
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9094
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca Gallery Plugin crashes with undefined constant DS

Post 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
wurzelsepp
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 21 Mar 2023, 09:32

Re: Phoca Gallery Plugin crashes with undefined constant DS

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9094
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca Gallery Plugin crashes with undefined constant DS

Post 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
Post Reply