How to fix "The function split() is deprecated in
PHP 5.3" on FreeBSD
After installing a new shiny
Joomla 1.5 and trying to make
the Joomla work with
YouBizz
template , an error displayed on the joomla page in my
browser:
Deprecated: Function split() is deprecated in
/usr/local/www/websitedomain/templates/youbizz/html/modules.php on
line 78
In order to fix that, the file which spits the error message, in my
case
modules.php needs to be modified and the
split
php function has to be substituted with
explode on every
occuring place.
I experienced this error on FreeBSD 7_2 with php version 5.3.5
installed from ports.
Obviously it seems new version of php are starting to depreciate
some old functions ;)
Happily this simple fix works fine for me.