Page 1 of 1

Phoca Gallery Search Plugin error

Posted: 13 Oct 2019, 13:22
by sapo
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

Re: Phoca Gallery Search Plugin error

Posted: 13 Oct 2019, 18:55
by christine
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

Re: Phoca Gallery Search Plugin error

Posted: 13 Oct 2019, 19:27
by sapo
Thanks
set error reporting to none

Re: Phoca Gallery Search Plugin error

Posted: 13 Oct 2019, 19:45
by Jan
Hi, thank you for the information about the warnings, I will fix them in next version.

Thank you, Jan