2.0 PHP function not allowed by security setting

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
JamesT
Forum Members
Forum Members
Posts: 175
Joined: Tue Sep 08, 2015 10:41 am

2.0 PHP function not allowed by security setting

Post by JamesT »

I previously used the information here in 1.12 to create an RSS feed reader with Smarty: http://www.cmscanbesimple.org/blog/a-xm ... ain-smarty

However in 2.0 it now produces: Syntax error in template "content:content_en" on line 11 "{$xml = simplexml_load_file('http://www.xxxxx.com')}" PHP function 'simplexml_load_file' not allowed by security setting

Can I not use this function anymore? Any other way to achieve this?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: 2.0 PHP function not allowed by security setting

Post by Rolf »

Have you tried to disable the security setting?
Add to config file:

Code: Select all

$config['permissive_smarty'] = 1;
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
JamesT
Forum Members
Forum Members
Posts: 175
Joined: Tue Sep 08, 2015 10:41 am

Re: 2.0 PHP function not allowed by security setting

Post by JamesT »

Thanks Rolf, that worked.

I had hoped maybe there was an alternative solution to making smarty permissive, but I suppose there isn't.
Post Reply

Return to “CMSMS Core”