Skip to main content
ErrorsMagentoPatches

Magento – missing blocks after 1.9.2.2 update

By November 6, 2015June 2nd, 2016No Comments

After updating a Magento site to v 1.9.2.2, I noticed that the randomised block code used on the homepage was missing. In fact many CMS blocks were missing.

Block calls like;

{{block type=”catalog/product_list” category_id=”68″ template=”catalog/product/catview.phtml”}}

no longer work because of restrictions imposed by the SUPEE-6788 patch, which is included as part of Magento v 1.9.2.2. In particular the fix ‘APPSEC-1057, template processing method allows access to private information’ which sets out a list of allowed Magento variables and blocks. As such custom blocks and variables used in template files, cms and emails will be blocked.

Quick Fix – missing blocks after 1.9.2.2 update

The easiest fix is to white list your custom variables and blocks, via the Magento admin;

System > Permissions > Blocks

and

System > Permissions > Variables.

By adding the type (e.g. catalog/product_list) as a new allowed block type.

missing cms blocks permissions

 

These developments undoubtedly change the way we develop new custom blocks and widgets, but for now this will get your site back working and displaying as it should do.

 

Andrew Taylor

A senior UI designer with over 25 years of web design and web development experience working for some of the largest companies in the UK. An expert in all things Magento and WordPress.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.