C:\wamp\www\mg1\app\Mage.php:595中的Magento块类型无效
我刚刚安装了一个简单的扩展来显示按属性集分组的属性。安装后,出现以下错误:C:\wamp\www\mg1\app\Mage.php:595中的Magento块类型无效,php,magento,Php,Magento,我刚刚安装了一个简单的扩展来显示按属性集分组的属性。安装后,出现以下错误: exception 'Mage_Core_Exception' with message 'Invalid block type: ' in C:\wamp\www\mg1\app\Mage.php:595 下面是它安装的2个文件(我手动找到的): 有谁能告诉我,我可以从哪里开始寻找,首先修复错误的原因 布局文件: \app\design\frontend\base\default\layout\AttributesA
exception 'Mage_Core_Exception' with message 'Invalid block type: ' in C:\wamp\www\mg1\app\Mage.php:595
下面是它安装的2个文件(我手动找到的):
有谁能告诉我,我可以从哪里开始寻找,首先修复错误的原因
布局文件:
\app\design\frontend\base\default\layout\AttributesAsGroup.xml
<layout version="0.1.0">
<catalog_product_view>
<reference name="content">
<block name="product.info" >
<block type="Webguys_AttributesAsGroup/Groupview" name="product.attributes" as="additional" template="webguys/attributesasgroup/groupview.phtml">
<action method="addToParentGroup"><group>detailed_info</group></action>
</block>
</block>
</reference>
</catalog_product_view>
</layout>
详细信息
这是模板文件
\app\design\frontend\base\default\template\webguys\attributesasgroup
<?php
$_helper = $this->helper('catalog/output');
$_product = $this->getProduct()
?>
<?php if($_additionalgroup = $this->getAdditionalData()): ?>
<div class="box-collateral box-additional">
<h2><?php echo $this->__('Additional Information') ?></h2>
<?php $i=0; foreach ($_additionalgroup as $_additional): $i++; ?>
<h3><?php echo $this->__( $_additional['title'] )?></h3>
<table class="data-table" id="product-attribute-specs-table-<?php echo $i?>">
<col width="25%" />
<col />
<tbody>
<?php foreach ($_additional['items'] as $_data): ?>
<tr>
<th class="label"><?php echo $this->htmlEscape($this->__($_data['label'])) ?></th>
<td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('product-attribute-specs-table-<?php echo $i?>')</script>
<?php endforeach; ?>
</div>
<?php endif;?>
此扩展不是可诉扩展
i have modify app\code\community\Webguys\AttributesAsGroup\etc\config.xml in
代码是
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Webguys_AttributesAsGroup>
<version>1.0.0</version>
</Webguys_AttributesAsGroup>
</modules>
<global>
<blocks>
<attributesasgroup>
<class>Webguys_AttributesAsGroup_Block</class>
</attributesasgroup>
</blocks>
</global>
<frontend>
<layout>
<updates>
<attributesasgroup>
<file>attributesasgroup.xml</file>
</attributesasgroup>
</updates>
</layout>
</frontend>
</config>
and file name AttributesAsGroup.xml change to attributesasgroup.xml
1.0.0
Webguys\u属性组块
attributesasgroup.xml
文件名AttributesAsGroup.xml更改为AttributesAsGroup.xml
以及本守则的编号:
此文件代码为
<layout version="0.1.0">
<catalog_product_view>
<reference name="content">
<block name="product.info" >
<block type="attributesasgroup/groupview" name="product.attributes" as="additional" template="webguys/attributesasgroup/groupview.phtml">
<action method="addToParentGroup"><group>detailed_info</group></action>
</block>
</block>
</reference>
</catalog_product_view>
</layout>
详细信息
put AttributesAsGroup模块文件config.xml文件对不起,我不明白你的意思。你能再多描述一下吗?阿米特,它现在似乎更有效了,但“附加信息”选项卡现在在我的产品视图页面中丢失了。我得到一个无效的块错误。在my catalog.xml中,它看起来是这样的:您认为attributesasgroup.xml文件中是否需要更正某些内容?