Frontpage Error

When I view the frontpage after installation, I receive this error. Please someone reply with a resolution:

Warning: strpos() [function.strpos]: Empty delimiter in /home/dpeguesc/public_html/photospecimages/app/design/frontend/default/jm_sulfur/template/page/includes/templatetools.php on line 367
Trace:
#0 /home/dpeguesc/public_html/photospecimages/app/design/frontend/default/jm_sulfur/template/page/includes/templatetools.php(367): mageCoreErrorHandler(2, ‘strpos() [isHomepage(‘/index.php/’, ”)
#2 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Template.php(144): include(‘/home/dpeguesc/…’)
#3 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView()
#4 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView(‘frontend/defaul…’)
#5 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#6 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#7 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Text_List->_toHtml()
#8 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#9 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml()
#10 /home/dpeguesc/public_html/photospecimages/app/design/frontend/default/jm_sulfur/template/page/html/header.phtml(52): Mage_Core_Block_Abstract->getChildHtml(‘topMenu’, true)
#11 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Template.php(144): include(‘/home/dpeguesc/…’)
#12 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView(‘topMenu’)
#13 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView(‘frontend/defaul…’)
#14 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#15 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#16 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml()
#17 /home/dpeguesc/public_html/photospecimages/app/design/frontend/default/jm_sulfur/template/page/2columns-right.phtml(45): Mage_Core_Block_Abstract->getChildHtml(‘header’, true)
#18 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Template.php(144): include(‘/home/dpeguesc/…’)
#19 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView(‘header’)
#20 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView(‘frontend/defaul…’)
#21 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#22 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Model/Layout.php(526): Mage_Core_Block_Abstract->toHtml()
#23 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Controller/Varien/Action.php(347): Mage_Core_Model_Layout->getOutput()
#24 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Cms/Helper/Page.php(100): Mage_Core_Controller_Varien_Action->renderLayout()
#25 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage()
#26 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Cms_IndexController->indexAction(Object(Mage_Cms_IndexController), ‘home’)
#27 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch()
#28 /home/dpeguesc/public_html/photospecimages/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(‘index’)
#29 /home/dpeguesc/public_html/photospecimages/app/Mage.php(459): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http ))
#30 /home/dpeguesc/public_html/photospecimages/index.php(65): Mage::run()
#31 {main}

4 answers

Profile photo of JA Developer 0.00 $tone June 23, 2009
Public

Hi dwpegues

For the case, please open app/design/frontend/default/jm_sulfur/template/page/includes/templatetools.php on line 367, find following code:

Code:

if ($uri && strpos ($uri, $_path) === 0) {
			$uri = substr($uri, strlen ($_path));
		}

and change to:

Code:

if ($uri && $_path && strpos ($uri, $_path) === 0) {
			$uri = substr($uri, strlen ($_path));
		}
#1

This question is now closed

Written By

Comments