Fatal error: Call to a member function getAttributeCode() on a non-object in /var/www/vhosts/magento/html/app/code/local/Amasty/Shopby/Helper/Attributes.php on line 32