Support » Fixing WordPress » 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)
  • 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.