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

Friday, 11. November 2011

Most upgrades from versions below 1.4 to latest version are more likely to encounter this problem when trying to re-install the same theme back on the new version. The solution is simple as explained below:

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

Locate and open the file app/design/frontend/default/YOUR_THEME/layout/page.xml file and change the following line:

<block type="core/profiler" output="toHtml"/>

to

<block type="core/profiler" output="toHtml" name="core_profiler"/>

Enjoy!

Leave a Reply

You must be logged in to post a comment.