Magento错误报警Layout.php on line 529

1,872 人次阅读
没有评论

共计 552 个字符,预计需要花费 2 分钟才能阅读完成。

Magento错误报警Layout.php on line 529

Magento 1.4的模板用到Magento 1.5中,之前写了一篇文章将如何升级模板,今天将遇到的报警特别的作为一篇文章写出来,供大家参考。

在安装新的magento模板的时候,出现了报警信息:appcodecoreMageCoreModelLayout.php on line 529 。

Google查阅资料:http://stackoverflow.com/questions/3055128/magento-started-showing-php-language-errors-since-i-downloaded-the-blank-theme-us

对比Magento 1.4的page.xml与1.5的page.xml模板的layout文件发现如下代码的变化后发现1.4与1.5的区别。

将Magento 1.4模板的layout中的page.xml内容,如上图

[php]
<block type="core/profiler" output="toHtml" />
[/php]

修改为Magento 1.5中的

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

修改后,刷新Magento后台缓存。Magento恢复正常。

正文完
 0