7

Joomla 3.0 DS does not work. It has been removed. 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 Generating Errors

Community
  • 1
  • 1
Techie
  • 44,706
  • 42
  • 157
  • 243

2 Answers2

26

Add the below line

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

From the docs.

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

Also there is a plugin to fix this issue.

You can find the full list here.

Potential backward compatibility issues in Joomla 3 and Joomla Platform 12.2

Techie
  • 44,706
  • 42
  • 157
  • 243
2

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

András
  • 3,395
  • 1
  • 21
  • 27