Re: insert with script does not work with cache
| From: | Frank Adler | Date: | Mon, 15 Jul 2002 16:21:12 +0000 |
| Subject: | Re: insert with script does not work with cache | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5320@lists.php.net to get a copy of this message | ||
Hi,
CVS version works for me. Thanks!
Regards,
Frank Adler
Monte Ohrt wrote on Montag, 15. Juli 2002, 17:21:21:
> Looks like you found a bug, it is with the case that caching is enabled
> and the function is loaded via the "script" attribute. Try the CVS
> version of Smarty, see if that fixes your problem.
> Monte
> Frank Adler wrote:
>> Hello Monte,
>>
>> I have attached a simple test case. Results are:
>> First request:
>> ------------------
>> Page was created and cached: 2002-07-15 16:25:14
>> getStuff() was called at 2002-07-15 16:25:14 mit [Haltbarkeit: 3600]
>> ------------------
>> Second and following requests:
>>
>> ------------------
>> Warning: Smarty plugin error: [in script_problem.tpl line 15]: in
>> /home/fa/test8998/classes/Smarty.class.php on line 1923
>>
>> Fatal error: Call to undefined function: () in /home/fa/test8998/classes/Smarty.class.php
>> on line 1246
>> ------------------
>>
>> The Apache config, the cache and the template_c are included in tar
>> gzip.
>>
>> My Apache:
>> Server: Apache/1.3.23 (Unix) mod_fastcgi/2.2.10 PHP/4.1.2
>>
>> Regards,
>> Frank
>>
>> Monte Ohrt wrote on Montag, 15. Juli 2002, 15:52:09:
>>
>>
>>>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';
>>>>$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;
>>>>
>>>