Error: Deprecated functionality: Function split()

Hello, I had an error and looked it up online and followed this advice: "edit your php.ini file to enable pdo_mysql extension" I got my webhost to change that for me and now I have this error, what do I need to do?:

Deprecated functionality: Function split() is deprecated in /home/xxxx/public_html/app/code/local/JoomlArt/JmSlideshow/Block/List.php on line 327

Trace:
#0 [internal function]: mageCoreErrorHandler(8192, ‘Function split(…’, ‘/home/xxxxxxx/…’, 327, Array)
#1 /home/xxxxxxx/public_html/app/code/local/JoomlArt/JmSlideshow/Block/List.php(327): split()
#2 [internal function]: JoomlArt_JmSlideshow_Block_List->set(Object(Mage_Core_Model_Layout_Element))
#3 /home/xxxxxxx/public_html/app/code/core/Mage/Core/Model/Layout.php(350): call_user_func_array(Array, Array)
#4 /home/xxxxxxx/public_html/app/code/core/Mage/Core/Model/Layout.php(216): Mage_Core_Model_Layout->_generateAction(Object(Mage_Core_Model_Layout_Ele ment), Object(Mage_Core_Model_Layout_Element))
#5 /home/xxxxxxx/public_html/app/code/core/Mage/Core/Model/Layout.php(208): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Elem ent))
#6 /home/xxxxxxx/public_html/app/code/core/Mage/Core/Model/Layout.php(208): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Elem ent))
#7 /home/xxxxxxx/public_html/app/code/core/Mage/Core/Model/Layout.php(208): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Elem ent))
#8 /home/xxxxxxx/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(343): Mage_Core_Model_Layout->generateBlocks()
#9 /home/xxxxxxx/public_html/app/code/core/Mage/Cms/Helper/Page.php(106): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#10 /home/xxxxxxx/public_html/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), ‘home’)
#11 /home/xxxxxxx/public_html/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), ‘home’)
#12 /home/xxxxxxx/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
#13 /home/xxxxxxx/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch(‘index’)
#14 /home/xxxxxxx/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(177): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http) )
#15 /home/xxxxxxx/public_html/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
#16 /home/xxxxxxx/public_html/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#17 /home/xxxxxxx/public_html/index.php(78): Mage::run(”, ‘store’)
#18 {main}

4 answers

Profile photo of Phill Luckhurst 0.00 $tone June 29, 2011
Public

Please get your host to turn off "Display Errors" in the php.ini file.

The function had been used and still works in the current version of PHP you have and that is just a warning to say to the coders that they should change to use the new syntax. It will not display when you set the above.

I will however raise a bug replort for you so that future releases will use the new syntax.

#1
Profile photo of John Brett 0.00 $tone June 29, 2011
Public

Some WebHosts with cPanel are updating their PHP to 5.3 because a security bug.
If you have problems with split() function use explode().

They should be able to just search split( and replace with explode(
What version of PHP are they using?

Though, to be honest…I’d just do what Phill said…turn off the errors and move on!

#2
Profile photo of elaine millward 0.00 $tone June 29, 2011
Public

Thanks for your help. I have done what you said and the host said he turned off errors but the error is still there, he has just upgraded me to php 5.3.6. Any ideas? Thanks so much x

#3

This question is now closed

Written By

Comments