Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Exception Handling

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
robov99
Smarty n00b


Joined: 20 Jun 2014
Posts: 3

PostPosted: Fri Jun 20, 2014 2:05 pm    Post subject: Exception Handling Reply with quote

The following happens to me:

Warning: filemtime(): stat failed for /path/to/smarty/cache/3ab50a623e65185c49bf17c63c90cc56070ea85c.one.tpl.php
in /path/to/smarty/libs/sysplugins/smarty_resource.php

http://www.smarty.net/docs/en/troubleshooting.tpl states:

This means that your application registered a custom error hander (using set_error_handler()) which is not respecting the given $errno as it should. If, for whatever reason, this is the desired behaviour of your custom error handler, please call muteExpectedErrors() after you've registered your custom error handler.


That is probably the case. I can do teh MUTE, but I rather fix my exception handling. Any suggestions what to do to have the exception handling be compatible with smarty?
Back to top
View user's profile Send private message
robov99
Smarty n00b


Joined: 20 Jun 2014
Posts: 3

PostPosted: Sun Jun 29, 2014 8:13 am    Post subject: how to fix? Reply with quote

Anyone an idea how to fix this?
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5067
Location: Hamburg / Germany

PostPosted: Sun Jun 29, 2014 10:19 am    Post subject: Reply with quote

The warning is not an exception. So it can't be catched.

So if you get these warnings displayed are logged in the PHP error log you should mute the expected errors. See also http://www.smarty.net/docs/en/variable.error.reporting.tpl
Back to top
View user's profile Send private message
robov99
Smarty n00b


Joined: 20 Jun 2014
Posts: 3

PostPosted: Sun Jun 29, 2014 12:32 pm    Post subject: thanks Reply with quote

Thank you for the clarification ! at least now I know what to do and that muting is only for the errors that are deliberate generated
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP