• The auto update to 4.9.2 took down one of my websites. Going into File Manager on my hosting provider let me look at my error_log files in the root directory. These were showing a lot of initialization errors indicating

    WordPress database error Attempted to connect for 3 but failed…

    I noticed that in 4.9.2 that /includes/wp-db.php has been updated. I replaced this file with the file from version 4.9.1 and my site came back up right away.

    I believe I have some old plugins and code which are using deprecated calls and other things that should be fixed which triggered this. I have turned off automatic updates for now.

    I think wp-db.php is not doing the compatibility checks correctly and I’m hoping this gets fixed in 4.9.3. If anyone has any suggestions on what I should be looking for in my code I would be very appreciative.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I replaced this file with the file from version 4.9.1 and my site came back up right away.

    Please don’t do that. You should never mix’n’match core files from different versions of WordPress.

    Try re-uploading all files & folders – except the root wp-config.php & .htaccess files and the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folders before uploading the new ones.

    I believe I have some old plugins and code which are using deprecated calls and other things that should be fixed which triggered this.

    As you say yourself: fixing these problems is the only solution. As @esmi says: never mix core files. Also do not disable updates, it makes your site vulnerable for hacking.

    I had the same issue with wp-db.php in 4.9.2, it broke my site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘4.92 Fatal Error / Site Down – How I fixed’ is closed to new replies.