Question

I recently upgraded from Magento 1.5.1 to Magento 1.9.2.3 and noticed that a block on my webshop doesn't work anymore. I've got a static block called "Bestsellers" and in that block I have this peace of code:

{{block type="catalog/product_bestseller" template="catalog/product/bestseller.phtml"}}

This worked on my old webshop, but not a the new one. I've tried changing the type to core/template, I've tried adding the blocks to System -> Permissions -> Blocks:

core/template
catalog/product_bestseller

And I've tried adding the bestseller.phtml to other templates, like my base folder. I also looked on stackexchange, but the "solutions" I found didn't work for me. What do I do to fix this?

Edit: My system.log says the following: Security problem: <span>catalog</span>/product_bestseller has not been whitelisted.

But I did allow catalog/product_bestseller and core/template like I said above: enter image description here

enter image description here

Was it helpful?

Solution

You can configure allowed variables and blocks in System > Permissions > Blocks and System > Permissions > Variables.

you have to add core/template and catalog/product_bestseller block there. This feature was added in Community Edition 1.9.2.2 and Magento Enterprise Edition 1.14.2.2

Update : Go to permission_variable table in the database and delete core/template and catalog/product_bestseller entries as these are blocks not variables.

I think you are missing some files in your installation.Like bestseller block and layout updates.

Please refer following for more help by Amasty How to display bestselling products in Magento + source code

OTHER TIPS

Jumping from Magento 1.5.x to 1.9.x can be dangerous without upgrading your template.

You should check into catalog/product/bestseller.phtml and try to understand if it is using some obsoleted method.

To make a simple test just temporary remove catalog/product/bestseller.phtml so it will take from your base/default and see if it works.

P.S: Default Magento installation does not have any block called catalog/product_bestseller, is it coming from a custom? If yes you should check its compliance.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top