• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / WP DEBUG issue

WP DEBUG issue

  • Unknown's avatar
    trstd · Member · Apr 6, 2025 at 6:41 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hi!

    I’m trying to restore my WordPress site for a nonprofit organization after we had a conflict with our web agency that cut us off. I’ve uploaded all files via FTP and tried importing the database in phpMyAdmin.

    Sadly, i get the: “Error establishing a database connection”.

    When turning on the WP_DEBUG i got a weird username looking code on the very top of the error page. This “username” was located as the 1st and only line of advanced-cache.php

    I tried removing 2nd line in wp-config: define( ‘WP_CACHE’, true );

    And now the “weird username” is gone.

    Left is the following information:

    Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /www/webvol6/26/uquxekfsyrvrhyg/nipyran.se/public_html/wp-includes/class-wpdb.php on line 1982

    No such file or directory

    Line 1982 and following looks like this:
    if ( WP_DEBUG ) {
    mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags );
    } else {
    // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
    @mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags );
    }

    Crossing my fingers that you guys can help me figure out what to do!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    marutim · Staff · Apr 7, 2025 at 5:25 am
    • Copy link Copy link

    Hello there,

    I see that your site is self–hosted. This forum handles assistance to the sites hosted with WordPress.com. 

    You can visit the support forums at https://wordpress.org/support/forums/ as they provide specialized support to self-hosted sites and you can also contact the support team of your hosting provider to seek help solving the issue.
    You can find more details about your hosting provider using this tool: https://wordpress.com/site-profiler

    To know more about the difference between WordPress.com and other self hosting environment check this link:
    https://wordpress.com/support/com-vs-org/

  • The topic ‘WP DEBUG issue’ is closed to new replies.

Tags

  • .org
  • account
  • currency
  • design
  • import

About this topic

  • In: Support
  • 1 participant
  • 1 reply
  • Last activity 9 months
  • Latest reply from trstd

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions