Refreshing cache from back end
Fatal error: Call to a member function asArray() on boolean in /home/bulkpowd/public_html/app/code/core/Mage/Core/Model/Layout/Update.php on line 420
When I open this file below code is written:
public function getFileLayoutUpdatesXml($area, $package, $theme, $storeId = null)
{
if (null === $storeId) {
$storeId = Mage::app()->getStore()->getId();
}
/* @var $design Mage_Core_Model_Design_Package */
$design = Mage::getSingleton('core/design_package');
$layoutXml = null;
$elementClass = $this->getElementClass();
$updatesRoot = Mage::app()->getConfig()->getNode($area.'/layout/updates');
Mage::dispatchEvent('core_layout_update_updates_get_after', array('updates' => $updatesRoot));
$updates = $updatesRoot->asArray(); // line no. 420 this line produce error
This error is happened not every time but occurs sometimes, but I don't know the exact case when it comes.
How can I resolve it?
frontend/layout/updates
node , you can try to debug it with echoMage::app()->getConfig()->getNode('frontend/layout')->asNiceXml(); exit;
(oradminhtml/layout
depending on where you are) to see which node is fails to load