SMF Support > SMF 1.1.x Support

Changing error email frequency

(1/1)

kerboom:
Hey all,

Any chance someone could tell me how to stop emails from sending every time there's a database error? They happen frequently enough, and I'd rather it only sent me one every 50 or so requests rather than every single time.

Thanks

MrPhil:
That's not easily done. To remember the count from one time to the next is most easily done with... a database. I suppose you could lock a file, read its count, increment, write, and unlock. Or, you could create a dberror.nnnnn file, where nnnnn is the process ID or something else likely unique.

If you're getting that many errors, I think it's time to have a serious talk with your host. Database errors should be quite rare.

kerboom:
Well, it's hosted on a university networking society server.

In any case, I'll try to update the forums (it's 1.1.13 at the moment, current version is 1.1.16, afaik?) this weekend and see if that helps.

smf_settings seems to like breaking itself every few days, which isn't the most useful really.

JimM:
Welcome to SMF.

Give us some specifics on the errors and we might be able to provide some additional suggestions.  I agree with Mr. Phil.  If you are getting that many errors, it's time to fix something. :)

Navigation

[0] Message Index

Go to full version