I have a simple block with smarty content that uses php ‘file_exists’
After upgrading, it says the block is deprecated and a new one should be created, so I made an identical block with the exact same code, but it no longer works, with this error:
{if is_file($image)}" PHP function ‘is_file’ not allowed by security setting
What security setting is this and where can I change it?
You will need to extend the block_manager/smarty_allowed_functions.php schema if you want to allow PHP functions other than those already allowed in Smarty blocks. All responsibility in this case will be on you.