• The server I run my blog on has a reoccuring problem with running out of space on /var, it’s not my box, but the problem is being handled by the support team. In the meantime it produces mySQL err 28 reports and dumps out the offending database query string to the webbrowser. I suspect that this isn’t the most secure thing for it to do so I was wondering if in wordpress (or even php in general) there was a way to surpress these messages? Thanks for any suggestions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have a peek at some of these threads which may help you out:
    https://www.ads-software.com/support/?action=search&searchFor=error+28

    Thread Starter jmkprime

    (@jmkprime)

    It isn’t really the Err 28 that is the problem (solving the cause of those is out of my hands). I just don’t want to these error reports to appear to the readers. What I’d really like to do is to be able to capture these reports and give instead feed the readers a standard “We care currently experience server difficulties , please come back late” message instead.

    You can edit the function print_error() in line 68 of wp-admin/wp-db.php to print the message of your choice. You can change some default settings(vars) in that file to turn off error reporting, if you so desire, but this is not recommended as it would give you no info about what’s borked.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SQL error question’ is closed to new replies.