Under a Magento 1.5.1.0 Version, it announced today the following error, if one system to > Configuration > TBT CORP EXTENSIONS > Enhanced Product Grid klickte:
Fatal error: Call to undefined method Mage_Eav_Model_Mysql4_Entity_Attribute_Collection::addVisibleFilter() in /home/[IhreSeite]/public_html/app/code/community/TBT/Enhancedgrid/Model/System/Config/Source/Columns/Show.php on line 10
After some investigating then the solution was as follows:
In the file Show.php in the folder app/code/community/TBT/Enhancedgrid/Model/System/Config/Source/Columns/
had approximately. in line 15
$collection = Mage::getResourceModel(‘eav/entity_attribute_collection’)
against
$collection = Mage::getResourceModel(‘catalog/product_attribute_collection’)
be replaced.
Saving, Upload and then configure the Enhanced Product Grid working again.
Used in Magento Version 1.5.1.0 Comments? Additions? Notes? Gladly!
I’v done what you said.. but still doesn’t work.. Now I get a different message..
Fatal error: Call to a member function setEntityTypeFilter() on a non-object in /homez.151/toyfast/www/app/code/community/TBT/Enhancedgrid/Model/System/Config/Source/Columns/Show.php on line 9
Can you help
This is what I have in SHOW.PHP now. Thanks for your time !
setEntityTypeFilter( Mage::getModel(‘eav/entity’)->setType(‘catalog_product’)->getTypeId() )
->addVisibleFilter();
$cols = array();
$cols[] = array(‘value’ => ‘id’, ‘label’ => ‘ID’);
$cols[] = array(‘value’ => ‘type_id’, ‘label’ => ‘Type (simple, bundle, etc)’);
$cols[] = array(‘value’ => ‘attribute_set_id’, ‘label’ => ‘Attribute Set’);
$cols[] = array(‘value’ => ‘qty’, ‘label’ => ‘Quantity’);
$cols[] = array(‘value’ => ‘websites’, ‘label’ => ‘Websites’);
foreach($collection->getItems() as $col) {
$cols[] = array(‘value’ => $col->getAttributeCode(), ‘label’ => $col->getFrontendLabel());
}
return $cols;
}
}
missing bit…
setEntityTypeFilter( Mage::getModel(‘eav/entity’)->setType(‘catalog_product’)->getTypeId() )
->addVisibleFilter();
$cols = array();
$cols[] = array(‘value’ => ‘id’, ‘label’ => ‘ID’);
$cols[] = array(‘value’ => ‘type_id’, ‘label’ => ‘Type (simple, bundle, etc)’);
$cols[] = array(‘value’ => ‘attribute_set_id’, ‘label’ => ‘Attribute Set’);
$cols[] = array(‘value’ => ‘qty’, ‘label’ => ‘Quantity’);
$cols[] = array(‘value’ => ‘websites’, ‘label’ => ‘Websites’);
foreach($collection->getItems() as $col) {
$cols[] = array(‘value’ => $col->getAttributeCode(), ‘label’ => $col->getFrontendLabel());
}
return $cols;
}
}
No.. sorry.. it would just not paste the first part.. I think is executing it
Thank you!