insert with script does not work with cache
| From: | Frank Adler | Date: | Mon, 15 Jul 2002 08:33:38 +0000 |
| Subject: | insert with script does not work with cache | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5316@lists.php.net to get a copy of this message | ||
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;