I have a store setup with multiple categories and products. When I view a product from the category it works perfectly, however when this item gets added to the recently viewed list or the cart and I try clicking the URL from there I get the following error:
On 1.1 and 1.0:
“Fatal error: Call to a member function getProductCollection() on a non-object in D:\Projects\Magento\app\code\core\Mage\Catalog\Model\Layer.php on line 41”
This is funny since in case of the catalog the url looks like this:
It gets added to the recently viewed as:
which throws the error described above.
How can I resolve this problem?