Zuby
Zuby

Reputation: 111

magento admin product edit error Fatal error: Call to a member function

I removed an attribute brand_lago from database with help of a script

<?php include 'app/Mage.php'; Mage::app(); $setup = Mage::getResourceModel('catalog/setup', 'catalog_setup');$setup->AddAttribute('catalog_product', 'brand_logo'); echo 'Finished';

After removed this attribute when i login in admin and edit product it show me error

Fatal error: Call to a member function setAttribute() on boolean in /home/public_html/domain.com/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php on line 366

Many thanks in advance

Upvotes: 0

Views: 325

Answers (1)

Did you use the above mentioned script to remove attribute ? That script will add the attribute into catalog_product. It has $setup->AddAttribute('catalog_product', 'brand_logo');

Can you do one thing, go to your database and search for brand_lago in eav_attribute table ( put this in attribute_code field and search or use SELECT * FROM eav_attribute WHERE attribute_code="brand_lago"; ). Delete the entry and try to check the admin catalog product management section again.

One more thing. If you installed any module that use this attribute, then disable that module or remove the line of code from that module which use this attribute.

Upvotes: 0

Related Questions