Home » Magento26 June 2012

Magento: Solution of Warning: Invalid argument supplied for foreach() in …/template/catalog/product/list/toolbar.phtml

While upgrading Magento, I am getting this error when I go to product list page.

Error:

Warning: Invalid argument supplied for foreach() in …/template/catalog/product/list/toolbar.phtml

Solution:

– Open layout/catalog.xml
– Find this:

– Just below the above code, add the code below:

– Open template/catalog/product/list/toolbar.phtml

– Comment out some lines of code and add a new line of code. It should look like this:

Hope it helps. Thanks.

Magento

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed