Last night my backend was auto updated to 1.9.2.2 release.
Today all my static block on CMS pages have disappeared.
They wereconfigured for all store views and I tried each of the views and they are not showing up.
However, I also use static blocks on category pages, but that is showing up fine.
Anyone else experiencing this problem? Any suggestions? Thanks!
3 Answers
My understanding is that CE 1.9.2.2 includes all the changes from the recent-patch SUPEE-6788, one of which was restrict the blocks that can be used in CMS blocks, pages, emails (etc...) by default.
Fortunately you can whitelist additional blocks through the admin under System > Permissions > (Blocks | Variables)
-
1Yup! That would be it. Thanks for the tip. Fortunately I have about a dozen of static block not hundreds... Now I need to find the correct "name" for them. How DO I find the correct name, it's so cryptic. Magento sure don;t make life easy for me.– YingOct 29, 2015 at 3:08
-
Use the additional N98-MageRun commands created by @peter-jaap-blaakmeer for the excellent N98-MageRun Magento command-line tool. Find non-whitelisted vars/blocks to be compatible with SUPEE-6788 and Magento 1.9.2.2 $ n98-magerun dev:template-vars [--addblocks[="true|false"]] [--addvariables[="true|false"]]– hans2103Dec 1, 2015 at 21:56
-
What about widgets? Like this: {{widget type="catalog/product_widget_new" template="catalog/product/widget/new/content/new_grid.phtml"}}– gSorryDec 4, 2015 at 16:52
I used below method:
System > Permissions > Blocks
- Add New Block
- Block Name:
cms/block
- Is Allowed : Yes
This seems to have done the trick for me.
-
3@Francis Kim you need to add Block Name: catalog/navigation using the same method as above to get your block to show.– YingOct 29, 2015 at 3:17
Digging the database these days I found a typo in permission_block table. catalog/nagivation value as block_name must be catalog/navigation. Check your installations for this error.
{{block type="cms/block" block_id="made_in_the_usa_block"}}
But it seems now I need to do this{{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="93"}}
to make the block show up - why is that?{{block type="catalog/navigation" name="catalog.category" template="catalog/category/list.phtml"}}