Magento – Block type in static block not working

categorylist-viewstatic-block

On some of my websites I use this code:

{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml"}}

It works fine on three websites but on one website it doesn't work. I use it in a static block. This static block is displayed on the category pages.

After some testing it seems that almost every line of code with block type is not working. I tried displaying another category and such but with no luck.

Best Answer

The three websites where it works probably have a bigger problem than the one where it doesn't: they do not have the recent security patch SUPEE-6788 applied.

One thing that the patch changed was that blocks to be used in CMS directives like that have to be added to a whitelist. You find this whitelist in System > Permissions > Blocks.

More details in this question: APPSEC-1057 How to add variables or blocks to the white list tables

Related Topic