Magento – Enhanced Grid Error in configuration space

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!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

4 comments on “Magento – Enhanced Grid Error in configuration space”

  1. 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;
    }
    }

    1. 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;
      }
      }

Leave a Reply

Your email address will not be published. Required fields are marked *