WP DEBUG issue
-
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)
-
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-profilerTo 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.