【问题标题】:Magento core function working in remote system displaying error in another systemMagento 核心功能在远程系统中工作,在另一个系统中显示错误
【发布时间】:2009-07-13 11:48:17
【问题描述】:

在前端模板文件夹的 catalog.xml 文件中,我为选项卡定义了块以显示产品标签、附加信息等:

<action method="addTab" translate="title" module="catalog">
<alias>additional</alias>
<title>Additional Information</title>
<block>catalog/product_view_attributes</block>
<template>catalog/product/view/attributes.phtml</template>
</action>

在远程系统中工作正常,但是当我将它安装在本地 Magento 并尝试制作一个额外的 .phtml 文件以在选项卡中显示品牌形象时,然后在产品详细信息页面中,显示以下错误:

致命错误:在线调用 C:\wamp\www\magento\app\code\core\Mage\Catalog\Block\Product\View\Tabs.php 中非对象的成员函数 setTemplate() 60

上面的文件是核心的一部分,我没有修改。我尝试替换所有核心文件,但仍然无法正常工作。

【问题讨论】:

    标签: magento templates tabs product catalog


    【解决方案1】:

    查看它是否正在使用该文件中未创建的任何对象

    【讨论】:

      猜你喜欢
      • 2012-01-07
      • 1970-01-01
      • 2018-08-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多