无法访问仪表板中的类别(Magento)


Cannot access Categories in dashboard (Magento)

所以我安装了几个扩展,其中一个是fontis提要生成器,一切都很好,直到我尝试访问Manage Categories,它会显示"处理您的请求时出错"错误如下

a:5:{i:0;s:110:"Source model "feedsgenerator/googleproducts_source_taxonomy" not found              for attribute "google_product_category"";i:1;s:4101:"#0      

运行此sql代码以检查是否存在导致问题的属性:

select * from eav_attribute where attribute_code = "google_product_category";

如果你会得到一个显示属性的结果,那么你应该删除它。要做到这一点,你可以执行以下操作:将其添加到index.php文件的末尾:

$installer = Mage::getResourceModel('catalog/setup','catalog_setup');
$installer->removeAttribute('catalog_category','google_product_category');

在禁用缓存的情况下运行一次网站(确保代码运行),然后从index.php中删除这两行。

现在应该解决这个问题。您可以通过再次运行sql代码来检查该属性是否仍然存在:

select * from eav_attribute where attribute_code = "google_product_category";