• Error restoring connection to database
    This means that contact with the database server on localhost has been lost. This may mean that your host database server is down.

    Are you sure the database server is running?
    Are you sure the database server isn’t overloaded?

    With this message below from the Query Monitor:

    This post was triggered by the-events-calendar.

    Call stack:

    wp_die()
    wp-includes/functions.php:5314
    dead_db()
    wp-includes/class-wpdb.php:2009
    TEC\E\C\V\S\Abstract_Custom_Field->update()
    wp-content/plugins/the-events-calendar/src/Events/Custom_Tables/V1/Schema_Builder/Schema_Builder.php:268
    TEC\E\C\V\S\Schema_Builder->up()
    wp-content/plugins/the-events-calendar/src/Events/Custom_Tables/V1/Activation.php:106
    TEC\E\C\V\Activation::init()
    wp-content/plugins/events-calendar-pro/src/Events_Pro/Custom_Tables/V1/Activation.php:128
    TEC\E\C\V\Activation::init()
    wp-includes/class-wp-hook.php:308
    do_action(‘init’)
    wp-settings.php:617

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator threadi

    (@threadi)

    As written in the message, there is probably a problem with the database server in your hosting. Therefore, it is best to contact your hoster’s support for clarification.

    Thread Starter samjansen97

    (@samjansen97)

    I cleaned up the database. The credentials are correct. The hosting provider cant find anything. They dont really give assistance sadly.

    Moderator threadi

    (@threadi)

    What do you mean by “cleaned up database”? Did you delete everything in it?

    Does the message appear on every single call or only on certain calls to your website?

    Thread Starter samjansen97

    (@samjansen97)

    No I repaired tables and deleted orphaned data. But that didn’t help.

    There are 6 wordpress websites hosted on the server + 1 multisite (5 websites). The error appears on every site when it comes.
    It doesn’t matter what you do to get the error. You just need to do some backend things what cause some database usage. Like uploading images etc.

    Moderator threadi

    (@threadi)

    That sounds more like a hosting bottleneck to me. An analysis of the logfiles of the server service should provide information about this. Also, if present, a firewall on the server can be a cause if supposed attacker requests are blocked.

    Thread Starter samjansen97

    (@samjansen97)

    I have access to some logfiles. On the multisite it is ging currently giving this error: [Mon Feb 27 21:19:06.662468 2023] [proxy_fcgi:error] [pid 13927:tid 139633052436224] [client 87.214.62.9:0] AH01071: Got error ‘PHP message: RedisException: Connection refused in /home/bydesign/domains/by-design.eu/public_html/wp-content/object-cache.php:712\nStack trace:\n#

    Moderator threadi

    (@threadi)

    This sounds like an error in the accessibility of the Redis service to be used by a plugin in the WordPress installation. The service in question is either off or incorrectly configured in the plugin.

    Thread Starter samjansen97

    (@samjansen97)

    Could the database be corrupted? That is what I found online about the error. We are also thinking about switching to a differant hosting because there is not much support.

    Thread Starter samjansen97

    (@samjansen97)

    Could the Redis error cause this database problem?

    Moderator threadi

    (@threadi)

    This can be. That may also not be. In any case, there is a problem with the Redis service. Whether it is the cause of everything, a more detailed logfile analysis could get out.

    • This reply was modified 3 years, 3 months ago by threadi.
    Thread Starter samjansen97

    (@samjansen97)

    Is it possible that I can contact you privately and send you some logfiles?

    Moderator threadi

    (@threadi)

    According to the guidelines of this forum: no. See: https://ww.wp.xz.cn/support/guidelines/#the-bad-stuff

    If you need personal support, you may find someone here: https://jobs.wordpress.net

    Thread Starter samjansen97

    (@samjansen97)

    {
    "pma_version": "5.2.0",
    "browser_name": "CHROME",
    "browser_version": "110.0.0.0",
    "user_os": "Win",
    "server_software": "Apache/2",
    "user_agent_string": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36",
    "locale": "en",
    "configuration_storage": "disabled",
    "php_version": "7.4.33",
    "script_name": "index.php",
    "exception_type": "js",
    "exception": {
    "mode": "stack",
    "name": "NotSupportedError",
    "message": "Failed to execute 'define' on 'CustomElementRegistry': the name \"amino-inspect\" has already been used with this registry",
    "stack": [
    {
    "func": "5a74",
    "line": "7",
    "column": "87178",
    "context": "",
    "uri": "index.php?",
    "scriptname": "index.php"
    },
    {
    "func": "n",
    "line": "1",
    "column": "110",
    "context": "",
    "uri": "index.php?",
    "scriptname": "index.php"
    }
    ],
    "uri": "index.php?route=%2Fserver%2Fsql"
    }
    }

    I am getting error in the database

    Thread Starter samjansen97

    (@samjansen97)

    From the multisite

    Thread Starter samjansen97

    (@samjansen97)

    • This reply was modified 3 years, 2 months ago by samjansen97.
Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Error restoring connection to database’ is closed to new replies.