Error Message for Joomla Deprecated Functions

Joomla logo


The one I seem to see most often as of late is the split() function. If you see the following message:

Deprecated: Function split() is deprecated in /home/xx/xx/xxxxxx.php on line 60

This means that split is no longer being used and will need to be replaced with a function that is.

If you know a little about PHP you can do one of two things:

1) Replace the split() function with the new function preg_split. Be careful though, the expression following will need to be correctly formatted for this to work.

2) Replace the split() function with explode(). This is probably the easiest of the two methods and tends to work just fine as a replacement.

If you don’t know an expression from a hole in the ground I would recommend getting a developer to give you a hand.
Update, upgrade and be happy…
As I stated before, most of these errors can be avoided all-together if you keep the latest version of Joomla on your site as well as keeping your extensions updated.