Page 1 of 1

PHP error with Gallery Template

Posted: Sat Feb 20, 2016 10:30 am
by Barrowboy
Hi
I'll do my best to explain.

I have a gallery template created by me working perfectly OK on
CMS version 1.12.1
Gallery version 2.1
PHP version 5.5.26

But when using the same template on new system.
CMS 2.1.2
Gallery version 2.1
PHP version 5.5.28
I get a PHP error from this bit of code.
{if not is_numeric($page)} {assign var=page value= 1}

error: showing ->>> PHP function 'is_numeric' not allowed by security setting

The two systems are on different servers.

So I suppose my question is were are the security settings?

I trust someone can understand and explain.

Thanks.

Re: PHP error with Gallery Template

Posted: Sat Feb 20, 2016 10:48 am
by Rolf
Add to config.php:

Code: Select all

$config['permissive_smarty'] = 1;

Re: PHP error with Gallery Template

Posted: Sat Feb 20, 2016 2:11 pm
by Barrowboy
Thanks for the tip.

Now works ok.