Slideshow stops working after moving to a new server

Hi,

I have moved the site sympathyforthekettle.com over to a new server and the move went smooth but JM Slideshow broke the site. Once I disabled it the site loads fine. Is there a PHP issue? I am running 5.3. Or is there a cache file for the slideshow I need to remove?

Please help,
Pete

I am trying to decipher the error message
———————————-
Deprecated functionality: Function split() is deprecated in /home/jodi/public_html/app/design/frontend/default/jm_morganite/template/joomlart/jmslideshow/list.phtml on line 14

Trace:
#0 [internal function]: mageCoreErrorHandler(8192, ‘Function split(…’, ‘/home/jodi/publ…’, 14, Array)
#1 /home/jodi/public_html/app/design/frontend/default/jm_morganite/template/joomlart/jmslideshow/list.phtml(14): split()
#2 /home/jodi/public_html/app/code/core/Mage/Core/Block/Template.php(189): include(‘/home/jodi/publ…’)
#3 /home/jodi/public_html/app/code/core/Mage/Core/Block/Template.php(225): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
#4 /home/jodi/public_html/app/code/core/Mage/Core/Block/Template.php(242): Mage_Core_Block_Template->renderView()
#5 /home/jodi/public_html/app/code/local/JoomlArt/JmSlideshow/Block/List.php(72): Mage_Core_Block_Template->_toHtml()
#6 /home/jodi/public_html/app/code/core/Mage/Core/Block/Abstract.php(674): JoomlArt_JmSlideshow_Block_List->_toHtml()
#7 /home/jodi/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#8 /home/jodi/public_html/app/code/core/Mage/Core/Block/Abstract.php(674): Mage_Core_Block_Text_List->_toHtml()
#9 /home/jodi/public_html/app/code/core/Mage/Core/Block/Abstract.php(516): Mage_Core_Block_Abstract->toHtml()
#10 /home/jodi/public_html/app/code/core/Mage/Core/Block/Abstract.php(467): Mage_Core_Block_Abstract->_getChildHtml(‘topsl’, true)
#11 /home/jodi/public_html/app/design/frontend/default/jm_morganite/template/page/2columns-left.phtml(49): Mage_Core_Block_Abstract->getChildHtml(‘topsl’)
#12 /home/jodi/public_html/app/code/core/Mage/Core/Block/Template.php(189): include(‘/home/jodi/publ…’)
#13 /home/jodi/public_html/app/code/core/Mage/Core/Block/Template.php(225): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
#14 /home/jodi/public_html/app/code/core/Mage/Core/Block/Template.php(242): Mage_Core_Block_Template->renderView()
#15 /home/jodi/public_html/app/code/core/Mage/Core/Block/Abstract.php(674): Mage_Core_Block_Template->_toHtml()
#16 /home/jodi/public_html/app/code/core/Mage/Core/Model/Layout.php(536): Mage_Core_Block_Abstract->toHtml()
#17 /home/jodi/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(389): Mage_Core_Model_Layout->getOutput()
#18 /home/jodi/public_html/app/code/core/Mage/Cms/Helper/Page.php(126): Mage_Core_Controller_Varien_Action->renderLayout()
#19 /home/jodi/public_html/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), ‘home’)
#20 /home/jodi/public_html/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), ‘home’)
#21 /home/jodi/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
#22 /home/jodi/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch(‘index’)
#23 /home/jodi/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) )
#24 /home/jodi/public_html/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
#25 /home/jodi/public_html/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#26 /home/jodi/public_html/index.php(78): Mage::run(”, ‘store’)
#27 {main}

2 answers

Profile photo of Peter Matra 0.00 $tone April 16, 2013
Public

Hi patermatra,

If that is php 5.3 version you should replace the split function by preg_split , take a look here for more details.

Thanks it works! Here is what I replaced on line 14.
File: /home/USERNAME/public_html/app/design/frontend/default/jm_morganite/template/joomlart/jmslideshow/list.phtml on line 14

Code:

	  $config['thumbSpace'] = split(':',$config['thumbSpace']);

Code:

	  $config['thumbSpace'] = preg_split('/[: -]/',$config['thumbSpace']);
#2

This question is now closed

Written By

Comments