Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2008
    Posts
    77

    Wordpress: Error Establishing Database Connection 503 Instead Of 500

    Hi,

    I did a test to see what HTTP header Wordpress would use when MYSQL fails .. it's 500.

    What do I have to change to redirect traffic to a 503 site when MYSQL fails, so that Google will crawl the website later .. again instead of delisting the site


    Thanks
    Oliver
    RLTT.com is for SALE Realtime Technologies is the way to go !

  2. #2
    Join Date
    Jan 2008
    Posts
    77
    Figured it out!

    Open up includes/functions.php and go to line 3284

    Change status_header( 500 );

    to

    status_header( 503 );

    Gives me a 503 error now .. much better!
    RLTT.com is for SALE Realtime Technologies is the way to go !

Similar Threads

  1. DATABASE ERROR: CONNECTION FAILED!
    By p-root in forum Hosting Security and Technology
    Replies: 9
    Last Post: 09-22-2010, 08:25 AM
  2. MediaTemple (gs) service at fault: 500 error or too slow DB connection
    By Master Bo in forum Providers and Network Outages and Updates
    Replies: 4
    Last Post: 07-09-2009, 12:17 PM
  3. 500 Internal Server Error on wordpress and some other script!!!
    By koolnhot in forum Hosting Security and Technology
    Replies: 6
    Last Post: 07-05-2009, 12:23 PM
  4. Wordpress Upgrade - Help with database error
    By grandad in forum Hosting Security and Technology
    Replies: 16
    Last Post: 03-26-2008, 05:18 PM
  5. Error establishing a database connection
    By hardjoko in forum Hosting Security and Technology
    Replies: 5
    Last Post: 03-10-2007, 12:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •