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

Php 无法访问仪表板(Magento)中的类别,php,magento,Php,Magento,因此,我安装了两个扩展,其中一个是fontis feed generator,在我尝试访问管理类别之前,一切都很正常,它显示“处理您的请求时出现错误” 错误如下 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

因此,我安装了两个扩展,其中一个是fontis feed generator,在我尝试访问管理类别之前,一切都很正常,它显示“处理您的请求时出现错误” 错误如下

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";

非常感谢。当时我把分机处理掉了,解决了这个问题