Re: [SMARTY] insert with script does not work with cache

From: Date: Mon, 15 Jul 2002 13:51:11 +0000
Subject: Re: [SMARTY] insert with script does not work with cache
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5318@lists.php.net to get a copy of this message
Frank Adler wrote:
I introduced the following line in my template: {insert name="getStuff" script="/home/fa/allesklar/mt2002/htdocs/trusted/get.php" loc=$same_location ch=$same_channel} This works perfektly at the first call. After the page has been cached I got this error: Warning: Smarty plugin error: [in header.tpl line 22]: in /home/fa/allesklar/mt2002/classes/Smarty.class.php on line 1923 Fatal error: Call to undefined function: () in /home/fa/allesklar/mt2002/classes/Smarty.class.php on line 1246 I found this problem with 2.1.1 and 2.2.0. I this a known problem or should I try to build small example? Regards, Frank Adler Smarty Configuration: $smarty->template_dir =getenv('DOCUMENT_ROOT').'/templates'; $smarty->compile_dir =getenv('DOCUMENT_ROOT').'/templates_c';
$smarty->cache_dir    =getenv('DOCUMENT_ROOT').'/cache';
$smarty->security     =true;
$smarty->trusted_dir[]=getenv('DOCUMENT_ROOT').'/trusted'; $smarty->force_compile = false; $smarty->compile_check = false;
$smarty->debugging     = false;
$smarty->caching       = true;
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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