Error Establishing a Database Connection

This topic has 10 replies, 3 voices, and was last updated 8 months, 1 weeks ago ago by Luca Rossi

  • Avatar: Ameer
    Ameer
    Participant
    July 17, 2024 at 23:32

    Hi. please assist as to why my website is always showing Error Establishing a Database Connection on my homepage???

    Thanks

    Files is visible for topic creator and
    support staff only.
    9 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    July 18, 2024 at 06:40

    Hello, @Ameer,

    Thank you for contacting us and for using XStore.

    Typically, the “Error establishing a database connection” issue is indicative of a server-side problem, which may occur if the database has been reset or shut down.

    To address this matter effectively, we recommend reaching out to your hosting provider for assistance. They are best equipped to investigate and resolve any server-related issues that could be causing this error.

    Additionally, Please read this article – https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/

    Should you require any further support from our end, please do not hesitate to contact us.

    Best Regards,
    The 8Theme Team

    Avatar: Ameer
    Ameer
    Participant
    July 19, 2024 at 22:13

    Hi. Hosting provider said i should also contact you because its happening when I’m using Xstore theme only.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    July 20, 2024 at 05:37

    Hello, @Ameer,

    Thank you for your response.

    1/ Please contact your hosting provider and ask to downgrade the PHP version to 8.0 or 8.1

    2/ Check System Requirements:

    Ensure that your web hosting environment meets the minimum requirements for the XStore theme. Please set Php version 8.0 or 8.1 and the increase max execution time & max input vars minimum 3000 -Check the image for specific requirements here: https://imgur.com/Cyzquf8

    For this please contact your service provider and ask them to fix it.

    After that, Please clear your browser cache and recheck again.

    3/ We suggest disabling all third-party plugins (including cache plugins and CDN ) that do not come bundled with XStore (https://www.8theme.com/documentation/xstore/plugins/included-plugins/ ), clearing the cache of the browser, and then checking again. It is possible that one of the additional plugins is causing the issue.

    If the issue still persists, please keep all third-party plugins deactivated on your site and grant permission to debug your site, which includes deactivating all third-party plugins and on-site Customization. This will allow us to investigate and assist you accordingly.

    Please note that you should take a complete backup of your site before proceeding.

    In addition, please provide your site’s WP Admin URL and credentials in the private content area of this topic, so that we can look into it further and help you:

    WP Admin URL:
    WP Admin Username:
    WP Admin Password:

    Thank you for your cooperation and we look forward to hearing from you soon.

    Best Regards,
    8Theme’s Team

    Please contact administrator
    for this information.
    Avatar: Ameer
    Ameer
    Participant
    July 20, 2024 at 21:10

    I have tried but the hosting provider said not to change it… please see private content area to see login details.
    thanks

    Please contact administrator
    for this information.
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    July 22, 2024 at 05:38

    Hello, @Ameer,

    Thank you for your response.

    We are pleased to inform you that upon thorough review of your website, we have found it to be functioning correctly and displaying as intended. Additionally, we can confirm that there is no “Error Establishing a Database Connection” on your website’s homepage.

    For your reference, we have recorded a video demonstrating the current status of your website. You can view this video in the private content area provided.

    We trust this will be helpful to you.

    Best regards,
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: Ameer
    Ameer
    Participant
    July 22, 2024 at 08:07

    Hi Tony.

    It still does come up every now and then. I did do a downgrade of WP so that’s kind of helping, but I don’t think it’s a long term fix but I would still need to upgrade WP at some point….. I know it’s definitely the theme or the plugins within the theme that’s actually causing this to happen.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    July 22, 2024 at 08:18

    Hello, @Ameer,

    We are currently utilizing WordPress version 6.6 on our test site and have not encountered any issues. Upon reviewing your site, we noticed that it is operating on PHP version 8.3.9.

    To potentially resolve your issue, we kindly request that you downgrade your PHP version to 8.0 or 8.1 and verify if the problem persists.

    Should the issue continue, we would appreciate it if you could capture a video demonstrating the problem for a clearer understanding. Please upload the video to a file-sharing service, such as WeTransfer (https://wetransfer.com/), and share the URL with us.

    Thank you for your cooperation.

    Best Regards,
    8Theme’s Team

    Please contact administrator
    for this information.
    Avatar: Ameer
    Ameer
    Participant
    July 22, 2024 at 19:06

    Hi please video in private content area. thanks.

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    July 23, 2024 at 10:52

    Dear Ameer,

    We hope this message finds you well. We are pleased to inform you that the previously reported error is no longer occurring. You can view the status here: https://www.awesomescreenshot.com/video/29802251?key=d4f230d168685972d4253e52fc3ae584.

    Could you kindly liaise with your hosting provider to upgrade your MySQL to the latest version and also increase the maximum execution time to 1000? These updates are crucial for the continued smooth operation of your services.

    Thank you for your attention to this matter.

    Best Regards,
    8Theme’s Team

    Files is visible for topic creator and
    support staff only.
  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.