Magento – Enhanced Grid Error im Konfigurationsbereich

Unter einer Magento 1.5.1.0 Version gab es heute folgenden Fehler, wenn man auf System > Konfiguration > 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

Nach einigem Nachforschen war dann die Lösung folgendermaßen:

In der Datei Show.php im Ordner app/code/community/TBT/Enhancedgrid/Model/System/Config/Source/Columns/

musste ca. in Zeile 15

$collection = Mage::getResourceModel(‘eav/entity_attribute_collection’)

gegen

$collection = Mage::getResourceModel(‘catalog/product_attribute_collection’)

ausgetauscht werden.

Abspeichern, hochladen und dann funktionierte die Konfiguration des Enhanced Product Grids wieder.

Genutzt in Magento Version 1.5.1.0 Kommentare? Ergänzungen? Hinweise? Gerne!

Published by Covos

Seit 2009 arbeite ich nun intensiv mit Magento. Begonnen habe ich mit der Erstellung und dem Betrieb von B2C-Shops. Ausgeweitet wurde dies durch meine Tätigkeit im Logistik-Sektor. Hieraus entstanden erste spezialisierte B2E-Systeme. Heute arbeite ich tag-täglich mit spannenden B2C-, B2B- und B2E-Projekten und berichte in diesem Blog über Herausforderungen und gebe Insider-Tipps.

4 comments on “Magento – Enhanced Grid Error im Konfigurationsbereich”

  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 *