Applying SUPEE-6788, it removes static block on home page

你说的曾经没有我的故事 提交于 2019-12-11 03:34:31

问题


Today I applied patch SUPEE-6788 and I noticed that the static block on my home page disappeared.

I have checked in admin side, i have used {{block type="catalog/product_list" category_id="10" and {{block type="responsivebannerslider/index" name="responsivebannerslider_index"

Similarly I have used many other blocks in my Magento sites.

I have read on google and found the solution to manually add these blocks in System -> Permissions -> Blocks.

Ok, I have manually added two catalog/product_list and responsivebannerslider/index, and they're working fine.

But my problem is, I don't know how many block I have added in my magento sites. It is not possible for me to manually add these block in System -> Permissions -> Blocks.

Please help. How to solve this issue?


回答1:


You will need to whitelist your blocks if they are not already whitelisted. Navigate to System > Permissions > Blocks. You can read more on this here: http://magento.com/security/patches/supee-6788-technical-details

You can also install this toolbox script on your site to find issues with modules related to the patch update. https://github.com/rhoerr/supee-6788-toolbox

I strongly suggest not letting the script fix any problems for you, especially on a production site. I would recommend running the analyze code instead.

Hope this helps!




回答2:


The solution is adding cms/block to Magento white list. Go to System -> Configuration -> Permissions ->Blocks and add row named "cms/block" with status Allowed.




回答3:


You can use this addon for Magerun: https://github.com/peterjaap/magerun-addons#find-non-whitelisted-varsblocks-to-be-compatible-with-supee-6788-and-magento-1922 to find all used custom blocks and variables.



来源:https://stackoverflow.com/questions/33433109/applying-supee-6788-it-removes-static-block-on-home-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!