Warning: strpos() [function.strpos]: Empty delimiter. in /home/

Seem to be getting the same issue as the link below with the tube template on Magento 1.3.1

http://www.joomlart.com/forums/archi…p/t-29934.html

I was able to add the workaround by inserting @ on line 355 of templatetools.php

Can someone take a look at the template and resolve the bug?

Thanks
Matt

3 answers

Profile photo of Michael Boudey 0.00 $tone April 21, 2009
Public

I am getting the exact same problem with a fresh install of MAgento 1.3.1 and Jm_tube.
I get:

Warning: strpos() [function.strpos]: Empty delimiter in /home/paraquie/domains/liverti.com.mx/public_html/app/design/frontend/default/jm_tube/template/page/includes/templatetools.php on line 355
Trace:
#0 [internal function]: mageCoreErrorHandler(2, ‘strpos() [isHomepage()
#3 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Block/Template.php(144): include(‘/home/paraquie/…’)
#4 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
#5 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#6 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#7 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#8 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml(‘header’, true)
#9 /home/paraquie/domains/liverti.com.mx/public_html/app/design/frontend/default/jm_tube/template/page/2columns-right.phtml(43): Mage_Core_Block_Abstract->getChildHtml(‘header’)
#10 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Block/Template.php(144): include(‘/home/paraquie/…’)
#11 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
#12 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#13 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#14 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Model/Layout.php(526): Mage_Core_Block_Abstract->toHtml()
#15 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(339): Mage_Core_Model_Layout->getOutput()
#16 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Cms/Helper/Page.php(86): Mage_Core_Controller_Varien_Action->renderLayout()
#17 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Cms/controllers/IndexController.php(32): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), ‘home’)
#18 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(367): Mage_Cms_IndexController->indexAction()
#19 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(247): Mage_Core_Controller_Varien_Action->dispatch(‘index’)
#20 /home/paraquie/domains/liverti.com.mx/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http) )
#21 /home/paraquie/domains/liverti.com.mx/public_html/app/Mage.php(457): Mage_Core_Controller_Varien_Front->dispatch()
#22 /home/paraquie/domains/liverti.com.mx/public_html/index.php(52): Mage::run()
#23 {main}

A solution would be great.
Thanks
Michael

#1
Profile photo of Matt Collins 0.00 $tone April 21, 2009
Public

Until they fix the issue permanently just do the following to app/design/frontend/default/jm_tube/template/page/includes/templatetools.php

On line 355 we need to place a ‘@’ to suppress the warning.
###########
if ($uri && @strpos ($uri, $_path) === 0) {
###########

That’ll sort ya

Matt

#2
Profile photo of JA Developer 0.00 $tone April 23, 2009
Public

Hi,

For this case, please open app/design/frontend/default/jm_tube/template/page/includes/templatetools.php file, at about line 355 find following code:

Code:

if ($uri && strpos ($uri, $_path) === 0) {

and change to:

Code:

if ($uri && $_path && strpos ($uri, $_path) === 0) {
#3

This question is now closed

Written By

Comments