Title: SQL error question
Last modified: February 7, 2017

---

# SQL error question

 *  [jmkprime](https://wordpress.org/support/users/jmkprime/)
 * (@jmkprime)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/sql-error-question/)
 * 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)

 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/sql-error-question/#post-86137)
 * Have a peek at some of these threads which may help you out:
    [http://wordpress.org/support/?action=search&searchFor=error+28](http://wordpress.org/support/?action=search&searchFor=error+28)
 *  Thread Starter [jmkprime](https://wordpress.org/support/users/jmkprime/)
 * (@jmkprime)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/sql-error-question/#post-86253)
 * 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.
 *  [carthik](https://wordpress.org/support/users/carthik/)
 * (@carthik)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/sql-error-question/#post-86268)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [carthik](https://wordpress.org/support/users/carthik/)
 * Last activity: [21 years, 9 months ago](https://wordpress.org/support/topic/sql-error-question/#post-86268)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
