1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Database Error Email Notification

Discussion in 'Troubleshooting and Problems' started by i_n_k, May 5, 2014.

  1. i_n_k

    i_n_k Member

    I noticed that unlike the vBulletin forum I migrated from, the config.php file from Xenforo doesn't seem to allow the ability to receive email notifications if there's a database error. Is this the case, or am I just potentially missing being able to add that setting?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Correct. XF doesn't have that config option. But XF logs those errors:

    Admin CP -> Tools -> Server Error Log
  3. i_n_k

    i_n_k Member

    I've seen that. My problem is occasionally I'll have an issue where the database server isn't functioning properly and I used to get an e-mail notification via that config file with vBulletin that would notify me immediately. Today I was out for a few hours and didn't find out until long after I had returned that it was down.

    Is it possible to add a line of code to that to get it to email me if there's a connection issue? Sadly I relied on that in case disaster struck, and today was a good example of why I definitely missed that. Otherwise love the software and really happy with things overall :cool:
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It would require custom development/an add-on.

    How often does your site go down that you need to rely on such functionality?
    I can count on the fingers of, well, one finger how many times my site has gone down in the past few years.

    You could always try one of those services which monitors your site and emails/messages you when there is an issue.
  5. Tracy Perry

    Tracy Perry Well-Known Member

    Or he could get @Chris D's Pushover alerts, enable the options and receive alerts directly to his phone that way - of course the add-on is a paid one, and the app to receive the alerts is also a paid one. It's nice getting push alerts about any server log errors though.
  6. i_n_k

    i_n_k Member

    Then you're a lucky guy ;) I liked the simplicity of at least having my email go off if there was an issue. Didn't realize until yesterday how important that was.

    That sounds like potentially a good solution. What's the link to his add-on?
  7. Tracy Perry

    Tracy Perry Well-Known Member

Share This Page