Home Page Throwing Fatal Error – Please help!

Hi Peeps,

I am getting the following error:


Fatal error: Call to a member function xpath() on a non-object in /usr/www/users/itfuture/itfuture.co.za/magento/app/code/core/Mage/Core/Model/Layout.php on line 154

I updated the home page xml via CMS -> Pages in the admin panel, and when I refreshed the home page I got the error.

The following is the current XML code I have:


<reference name=\"mass-top\">
	<block type=\"joomlart_jmslideshow/list\" name=\"jmslideshow\" />
<reference name=\"content-top\">
    <block type=\"joomlart_jmproductsslider/list\" name=\"jmproductsslider\" />
    <reference name=\"content\">            
    <block type=\"joomlart_jmtabs/core\" name=\"jmtabs\">
        <action method=\"addTabs_block\">                    
            <title>Best choice for home users</title>
        <action method=\"addTabs_block\">                    
            <title>Most Reviewed</title>

For some reason its adding in the backslash in, I tried removing it and also removing the quotation marks but nothing. My other pages are showing fine, just the home is failing.

Any suggestions? Tx


1 answer

Profile photo of thangnn1510 0.00 $tone June 22, 2011

I think this problem because your host turn on magic_quotes. Please ask the hosting to turn it off:

magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off

Tell me the result please.


Please login or Register to Submit Answer

Written By