![]() |
Limit Database Error Mails
Hack: Limit Database Error Mails
Version: v1.00 Author: MarcoH64 for vBulletin.org vB Version: 3.5.0 File edits: 1 + 1 (config.php) Disclaimer: This hack may not be modified or distributed without the explicit permission of the author. The author don't take responsibility for any problems caused by this modification. Description: With this hack installed you can limit the number of emails sent to your technical mail address in case of Database Errors. You can specify an interval in seconds between sending mails. All errors generated after the first error, until interval is passed, are not mailed. Optionally you can specify a different interval for different types of errors. Operating system files will be used to keep track of the last mail sent. These will be zero byte files, so won't take any space. Donations? If you like this work and want to make a donation, your gifts are always welcomed at Paypal: marcoh64@gmail.com PS No screenshots!! :D |
I will have a look at this, as i get quite frustrated to see my inbox full of db error emails ;)
Thanks in Advance. |
Oh YEA, this feature should be a default feature for vBulletin.. thanks!
|
Then please click install ;)
Edit: Oops you just did :D |
Thanks Marco...this rocks.
Does anyone have a plugin / solution for this: I want to not display the ugly database error when the DB is down on non-vb pages where global.php is included. |
Quote:
PHP Code:
PHP Code:
PHP Code:
|
Thanks Marco...that gave me a whole bunch of other ideas.
They should put a hook there. |
Yes i agree, and i don't agree.
This is a crucial part of the code and will get executed in case of database errors. No Database = No plugins to be executed = Hooks are useless. |
Go Go Marco, this is really something I need. I'm sick of database error emails on my test board.
/me installs |
Well on your testboard, you can simply remove the tech email from the config.php. You won't get any mails at all.
|
Well actually my test board is open to the public, since my real board is closed untill vbspace is completed. So I just want to limit emails, not completely disable them.
|
Ok, well then this hack is just what you need. :D
Please give feedback if there is anything you still need in this. |
Will do Marco when I fully test this thing out. (Haven't had time today) :)
|
And did you already have time to test?
|
Sorry Marco, I've been very busy lately. Will test tonight or tomorrow. :)
|
Nice hack.
Is it possible for you to modify it with a 2nd interval with an emergency email address? For example, the regular interval is set at 60 seconds. The pager interval is set at 10 minutes. I want it to email the error to the regular email first and every minute after that. 10 minutes later it would email to my pager and every 10 minutes after that. If I'm getting paged I know my site is down and requires attention. |
Maybe, will try to have a look at it next week.
|
Any updates?
|
Quote:
|
Will this work for v3.5.3 with the v3.5.4 patch installed? I get an email everytime someone trys connecting to the site if SQL is down during that time. Its wearing my BlackBerry out ;)
|
As far as i am aware of, it should work in all 3.5.x versions.
|
http://img444.imageshack.us/img444/6896/12345nz.jpg
is these same? vbulletin options / error handling & logging |
Quote:
|
Is this hack compatible with 3.6.2?
|
Question...
Quote:
$config['mh_ldbem']['filedirectory'] = './forums/erroremails'; |
Any chance of getting this working on vB 3.7 and without having any file changes?
|
Hello,
does it work with vb 3.6.9? Thank you! |
Hello
Is there any chance to get this updated and working with vB 3.8.x ? Would love to see this working without any file edits. |
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|