Re: [SMARTY] insert with script does not work with cache
| From: | Monte Ohrt | Date: | Mon, 15 Jul 2002 13:52:09 +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-5319@lists.php.net to get a copy of this message | ||
I'm not able to duplicate your problem. Can you make a simple test case and zip/tar it up and send it to me?
Thanks
Monte
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';-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.$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;