Joomla 3.0 DS not working (using undefined constant DS)

Joomla 3.0 DS does not work. He is deleted. I get

Notice: Use of undefined constant DS - assumed 'DS' in 

How can i fix this?

Similar question

Migrating from Joomla 2.5 to 3x Creating Errors

+6
source share
2 answers

Add line below

 if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR); 

From docs .

The DS constant has been removed. If you really need it, you can use DIRECTORY_SEPARATOR.

There is also a plugin to fix this problem.

Here you can find the complete list.

Potential backward compatibility issue in Joomla 3 and Joomla Platform 12.2

+22
source

Sometimes you need it: if(!defined('DS')) define('DS', '/');

+2
source

Source: https://habr.com/ru/post/952710/


All Articles