PHP error with Gallery Template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

PHP error with Gallery Template

Post 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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: PHP error with Gallery Template

Post by Rolf »

Add to config.php:

Code: Select all

$config['permissive_smarty'] = 1;
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Re: PHP error with Gallery Template

Post by Barrowboy »

Thanks for the tip.

Now works ok.
Post Reply

Return to “Modules/Add-Ons”