Call to a member function toHtml() on a non-object in app/code/core/Mage/Core/Model/Layout.php on line 529

Article ID #1065
Revision: 1.3
Last update: 2011-10-14

 

Symptoms

The following error message is shown in php error log or in browser window on opening your Magento Store:

PHP Fatal error:  Call to a member function toHtml() on a non-object in app/code/core/Mage/Core/Model/Layout.php on line 529

 

Cause

The issue is caused by theme incompatiblity with current Magento version.

 

Solution

To solve this issue please try the following steps:

  • Login via FTP/FileManager to your Store
  • Navigate to app/design/frontend/default/<your_theme>/layout/ directory (<your_theme> should be replaced with directory name of your theme)
  • Download and edit the page.xml file by replacing the following line:
 <block type="core/profiler" output="toHtml"/>

with the following one:

<block type="core/profiler" output="toHtml" name="core_profiler"/>
  • Upload the page.xml file back into app/design/frontend/default/<your_theme>/layout/ directory (<your_theme> should be replaced with directory name of your theme)
  • Flush Magento cache

 

Did this article help you solve your issue?


Average rating: 3.26 (23 votes)

completely useless 1 2 3 4 5 most valuable

Tags: , ,