0

我已经在catalog.xml中添加了这个代码块并且我得到了以下错误 -

致命错误:在第 759 行调用成员函数 addToChildGroup() app/code/core/Mage/Core/Block/Abstract.php

<!-- custom change here-->

<block type="catalog/product_list_related" name="catalog.product.related" as="product_additional_data" after="product.info.upsell" template="catalog/product/list/related.phtml"/>

<action method="setColumnCount"><columns>4</columns></action>                    

                <action method="setItemLimit"><type>related</type><limit>4</limit></action>
</block>
<!-- custom change  here-->                            
4

2 回答 2

7

你在这里关闭了你的块:

<block ... />

我想这会导致错误。

试试这个代码:

<block type="catalog/product_list_related" name="catalog.product.related" as="product_additional_data" after="product.info.upsell" template="catalog/product/list/related.phtml">
  <action method="setColumnCount">
    <columns>4</columns>
  </action>                    
  <action method="setItemLimit">
    <type>related</type>
    <limit>4</limit>
  </action>
</block>
于 2013-02-06T10:06:07.743 回答
0

我在 github 存储库上工作时遇到了类似的问题。我在本地系统上安装了一个扩展,然后将代码推送到 GitHub。第二天,当我从 github 删除扩展并将代码移动到开发服务器时,我遇到了同样的问题。

对我来说清除缓存有效

于 2013-07-11T09:32:18.477 回答