Re: [SMARTY] Starnge Smarty error

From: Date: Thu, 17 Apr 2003 17:18:51 +0000
Subject: Re: [SMARTY] Starnge Smarty error
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9302@lists.php.net to get a copy of this message
On Thu, Apr 17, 2003 at 05:53:12PM +0200, Barry Nauta wrote: > The problem is that math does not really seem to be a plugin, but a > standard Smarty function? > > I have looked for the math (compile.math.php) plugin, but cannot find > it... you are right. it should read function.math.php , but compiler.math.php is tried before. i think the problem is, that your (php-)include-path contains /usr/local/lib/php but you are not allowed to access files inside /usr/local/lib/php . does everything else work as expected? i mean, if you call @$smarty->display() instead of $smarty->display() to supress these warnings. does the rest work okay? what is your $smarty->plugins_dir set to? > Barry > > On Thu, 2003-04-17 at 18:44, messju mohr wrote: > > On Thu, Apr 17, 2003 at 04:27:12PM -0000, Barrel wrote: > > > Hi all, > > > > > > I am trying to install an application but keep getting error messages like: > > > Warning: file_exists() [function.file-exists]: open_basedir restriction in > > > effect. File(/usr/local/lib/php/plugins/compiler.math.php) is not within > > > the allowed path(s): (/customer8/nauta/) in ..etc > > > > > > I know that this error comes from the math function I use in a template. > > > If this is a standard error, how come Smarty cannot use it? > > > > this errror would come with any plugin in /usr/local/lib/php/plugins/ > > . you have safe_mode enabled so you have to put your plugins in a > > directory somewhere under "/customer8/nauta/"... . > > > > > Thanks, > > > Barry > > > > > > > > > -- > > > Smarty General Mailing List (http://smarty.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.smarty.general (#9302) next »