现在的位置: 首页 > 综合 > 正文

magento — magento更新或安装模板时碰到Fatal error: Call to a member function toHtml() on a non-object

2013年06月18日 ⁄ 综合 ⁄ 共 261字 ⁄ 字号 评论关闭

magento更新或安装模板时碰到如下错误:

 

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

 

解决方法:

 

删除掉对应模板layout文件page.xml中的:

 

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

 

清除缓存,重新刷新magento页面即可恢复正常.

抱歉!评论已关闭.