magento admin产品编辑错误致命错误:调用成员函数

时间:2017-02-05 11:44:27

标签: magento production-environment

我借助脚本

从数据库中删除了一个属性brand_lago
<?php include 'app/Mage.php'; Mage::app(); $setup = Mage::getResourceModel('catalog/setup', 'catalog_setup');$setup->AddAttribute('catalog_product', 'brand_logo'); echo 'Finished';

在我登录管理员和编辑产品时删除此属性后,它显示错误

致命错误:在第366行的/home/public_html/domain.com/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php中调用boolean上的成员函数setAttribute()

非常感谢提前

1 个答案:

答案 0 :(得分:0)

您是否使用上述脚本删除了属性?该脚本会将该属性添加到catalog_product中。它有$setup->AddAttribute('catalog_product', 'brand_logo');

您可以做一件事,转到您的数据库并在brand_lago表中搜索eav_attribute(将其放在attribute_code字段中并搜索或使用SELECT * FROM eav_attribute WHERE attribute_code="brand_lago";)。删除该条目并尝试再次检查管理目录产品管理部分。

还有一件事。如果您安装了使用此属性的任何模块,则禁用该模块或从该模块中删除使用此属性的代码行。