|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
ToySoldier Smarty n00b
Joined: 14 Jun 2009 Posts: 4
|
Posted: Fri Feb 24, 2012 12:49 pm Post subject: Smarty (still) ignores own error handler for muting errors |
|
|
Hello,
So, today I've started on a new project, downloaded the new Smarty and got to work. I use set_error_handler to track and display the errors nicely, so it doesn't bother users.
I tried to display a template, but I got a filemtime() error. Smarty expects there errors and they are normally expected (and muted) by Smarty, but apparently, if you are using a set_error_handler() yourself, Smarty is not able to mute them any more (after I commented out my own error handler, Smarty managed to mute them again).
Is this something that is wrong in my own configuration or is this a Smarty-side bug?
Regards,
Wesley |
|
Back to top |
|
rodneyrehm Administrator
Joined: 30 Mar 2007 Posts: 674 Location: Germany, border to Switzerland
|
|
Back to top |
|
mentar Smarty n00b
Joined: 02 Mar 2012 Posts: 1
|
Posted: Fri Mar 02, 2012 2:27 am Post subject: |
|
|
Thanks for this post!!!!!
I've just hit the same problem and have been battling it for the past few hours and was close to pulling my hair out.
Surely it's a common problem though? Maybe it's worth mentioning in the Quick Install page of the site?
Many thanks!! |
|
Back to top |
|
ToySoldier Smarty n00b
Joined: 14 Jun 2009 Posts: 4
|
Posted: Wed Mar 28, 2012 12:54 pm Post subject: |
|
|
Hi rodneyrehm,
Thanks for your reply.
I have looked at the function and it's code, however, it's not something I have been able to fix. I understand why the errors are being muted, but at this moment, Smarty is colliding with my own code and error handlers, which is of course not wanted!
I wondered if it was may be something the developers could fix, because I very much would like to use my own error handlers to suppress errors
Regards,
Wesley |
|
Back to top |
|
rodneyrehm Administrator
Joined: 30 Mar 2007 Posts: 674 Location: Germany, border to Switzerland
|
|
Back to top |
|
ToySoldier Smarty n00b
Joined: 14 Jun 2009 Posts: 4
|
Posted: Wed May 16, 2012 12:49 pm Post subject: |
|
|
Is there a way to detect which of these errors are caused by Smarty so we are still able to use our own error reporters? I understand why the decisions in code were made, it would still be nice if we can track the errors with our own codes |
|
Back to top |
|
|
|
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
|