Magento Error Layout.php on line 529

Magento Error Layout.php on line 529

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

在安装新的magento模板的时候,出现了报警信息:app\code\core\Mage\Core\Model\Layout.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内容,如上图

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

修改为Magento 1.5中的

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

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

参考:magento1.4模板升级到1.5

转载表明出处:www.hellokeykey.com

关于作者


钥匙一共有52篇博文

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

TOP Online Store
1.Girls' Generation, a Fantasy Jewelry online Store. Nobody Can Keep Away From the Beauty:tiffany ca 2.China Wholesale Electronics:China Wholesale Electronics 3.The android phone is best:Android sale.The Android Ice cream sandwich well be best Android OS. 4.R4 3DS for sale:R4 ds shops,and support Japanese R4:R4 販売. 5.fashion bag:armani watches and MBT shoes.
R4 V1.4.2 and your R4i Gold 1.4.2 and R4i GOLD 3DS card V1.4.2 can not work on it.
Please update your R4i Gold 1.4.2 and R4i GOLD 3DS card V1.4.2 card with this patch. Please read readme.txt attached firstly.Just do as the procedures listed in readme.