Page 1 of 1

smarty error after each template change - but only once

Posted: Fri May 20, 2011 1:10 pm
by stevegos
Hi

I am getting what appears to be a smarty error after a template has been updated.

But I only see the error at the top of the outputted public web page when the web page has been viewed for the first time after the change (the entire page is displayed correctly under the error). Click the refresh button and it goes away and is never seen again until another template change. Here's the error:

Warning: filemtime() [function.filemtime]: stat failed for /var/sites/domain.co.uk/public_html/newsite/tmp/templates_c/%%CC^CC8^CC835D28%%tpl_top%3A25.php in /var/sites/m/mvdentalspecialists.co.uk/public_html/newsite/lib/smarty/Smarty.class.php on line 1410

Any ideas?

Thanks in advance.

Re: smarty error after each template change - but only once

Posted: Fri May 20, 2011 1:14 pm
by Jos
I think cache is responsible for getting the error just once after an update.

I encountered a similar problem before and it was due to some javascript that was not encapsulated by {literal} tags.