WordPress.org

Ready to get started?Download WordPress

Forums

Custom Error establishing a database connection page doesn't show (4 posts)

  1. vici
    Member
    Posted 4 years ago #

    Hello,
    My host is currently experiencing some Denial of Service issues and it means that all my sites are actually down.
    So I wanted to add a custom error message for my visitors to ensure that it's a temporary problem.
    I added a db-error.php page to the wp-config directory with a nice message, but it shows only when I access my wp-admin.php page. I'd like my visitors to see the nice message too instead of <h1>Error establishing a database connection</h1>
    What should I do?
    here's my url: fashion-allure.com/style

  2. MichaelH
    Member
    Posted 4 years ago #

    That message is in wp-includes/functions.php and wp-includes/wp-db.php if you were of the mind to change it in core.

  3. ineedahelp
    Member
    Posted 4 years ago #

    Can you tell me how I can fix this error? I just uploaded my site from local to host and received this error from the functions.php file. The error points to an "else" statement.

    Thank you for any help!

    Leslie

  4. ineedahelp
    Member
    Posted 4 years ago #

    I just read another post of yours saying to check the DB_NAME, DB_HOST, DB_PASSWORD, DB_USER settings. I think this is my problem as I have moved my file from a local usage to my host server. I will check these settings and hope this fixes my problem. Thank you for the lead...

    Leslie

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.