Title: Error handling
Last modified: August 18, 2016

---

# Error handling

 *  [Mike](https://wordpress.org/support/users/mike/)
 * (@mike)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/error-handling/)
 * I am retrieving blog posts from /blog/ from the above directory using ‘require‘
   blog/wp-blog-header.php’;’ Unfortunately, if there is an error — say mysql connection—
   the whole page that is retreiving those posts will put up a WordPress error message:”
   Error establishing data connection”.
 * I would like to put a simple if statement around the require command that will
   make sure I don’t try to retreive something that I can’t. Or where do I modify
   the error message so that I can do this?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Mike](https://wordpress.org/support/users/mike/)
 * (@mike)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/error-handling/#post-406000)
 * Also, I do know about Magpie for retrieving through RSS. However, it was too 
   slow (we get 90,000 uniques/day….)

Viewing 1 replies (of 1 total)

The topic ‘Error handling’ is closed to new replies.

## Tags

 * [handling](https://wordpress.org/support/topic-tag/handling/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Mike](https://wordpress.org/support/users/mike/)
 * Last activity: [19 years, 12 months ago](https://wordpress.org/support/topic/error-handling/#post-406000)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
