Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Email alert before Oops page
acan
August 2017
Hello,
I would like to send an email alert before showing the Oops page on production only.
Should rewrite the show_product_error() ?
How would you handle (hehe) the situation?
Thanks in advance for your help!
soseki
August 2017
Harror already answer for this question with additional information.
https://fuelphp.com/forums/discussion/11881/custom-error-instead-of-oops
acan
August 2017
Hello,
Thank you for the reply.
I saw this post but it doesn't answer my question.
I'm not trying to customize the production.php view, nor asking how try/catch works.
What I want to do is catch uncaught exceptions and send an alert email so that I can do something about it.
Anyways, I extended the ErrorHandler class, it works like a charm.
Harro
August 2017
Either do that, or extend Log, and use the Monolog NativeMailerHandler for it.
acan
August 2017
Hello Harro,
Thank you for the answer, your suggestion sounds great.
I'll do that.
Thanks again!
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
acan
August 2017
Harro
August 2017
soseki
August 2017