Phoca Gallery Search Plugin error

Phoca Gallery plugins - plugins for Phoca Gallery extension
sapo
Phoca Enthusiast
Phoca Enthusiast
Posts: 73
Joined: 13 Apr 2011, 16:28

Phoca Gallery Search Plugin error

Post by sapo » 13 Oct 2019, 13:22

The search Plugin reports a lot of error

Code: Select all

Warning: Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/natur-fotograf.ch/httpdocs/plugins/search/phocagallery/phocagallery.php on line 274 Warning: Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/natur-fotograf.ch/httpdocs/plugins/search/phocagallery/phocagallery.php on line
Version plg_search_phocagallery_v4.3.11.zip is installes
see https://www.natur-fotograf.ch/index.php ... Itemid=209
Thanks for helping

christine
Phoca Hero
Phoca Hero
Posts: 1970
Joined: 28 Nov 2010, 17:20

Re: Phoca Gallery Search Plugin error

Post by christine » 13 Oct 2019, 18:55

Hi sapo,

The cause of "Use of undefined constant DS - assumed 'DS'" is, that in previous versions of Joomla, there was a constant called DS (which stands for Directory Separator) that was set to the DIRECTORY_SEPARATOR PHP predefined constant. Joomla 3.x no longer defines this constant anywhere, and hence any extension using the DS Joomla constant will not work properly, because DS will be treated as the string "DS".

Temporary you could set either:
a) under System > Global Configuration > Server > Error Reporting to None or Simple.

or b)

Code: Select all

define('DS', DIRECTORY_SEPARATOR);
on the top of configruation.php (or index.php).

Thank you for your information. Will contact Jan about.

Kind regards
Christine

sapo
Phoca Enthusiast
Phoca Enthusiast
Posts: 73
Joined: 13 Apr 2011, 16:28

Re: Phoca Gallery Search Plugin error

Post by sapo » 13 Oct 2019, 19:27

Thanks
set error reporting to none

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

Re: Phoca Gallery Search Plugin error

Post by Jan » 13 Oct 2019, 19:45

Hi, thank you for the information about the warnings, I will fix them in next version.

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

Post Reply