filter - Magento 1.7: Fatal error getBackend() -
after upgrading magento 1.7 error in custom catalog search , custom related products:
fatal error: phone call fellow member function getbackend() on non-object in \src\app\code\core\mage\eav\model\entity\abstract.php on line 816
this error occurs when somethind has changed in article (backend or import) , product flat tables not reindexed. (use of flat tables activated). in related article module figured out that
$related_product_collection->addattributetofilter('store_destination', array('eq' => 0));
causes problems. 1 difficulty debug don't error stack trace, error itself.
has thought why error appears, , how prepare this? (and perhaps hint stack trace?)
usually happens when store_destination
destination doesn't exist in product collection sql. check sql this:
echo $related_product_collection->getselect()->__tostring()
magento filter reindex
No comments:
Post a Comment