Title: WordPressin version 5.0.2 database error
Last modified: December 20, 2018

---

# WordPressin version 5.0.2 database error

 *  Resolved [wp-muhkiainen](https://wordpress.org/support/users/toppahattu/)
 * (@toppahattu)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpressin-version-5-0-2-database-error/)
 * I got a email, which told that my site was upgraded to version 5.0.2. When I 
   tried to go to my site, I met a database error, and site did not work.
 * The I disabled an autoupdate editing wp-config.php file, adding a line
 *     ```
       /** Estä automaattiset päivitykset. */
       define( 'WP_AUTO_UPDATE_CORE', false );
       ```
   
 * … and renamed wp-admin folder and downloaded old wp-admin folder from my backup.
   Then I got my site working, but after upgrading addons, I got a database error
   again, so I had to do the same process again.
 * Any ideas, how to upgrade addons, themes and WP itself without breaking the site?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpressin-version-5-0-2-database-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [wp-muhkiainen](https://wordpress.org/support/users/toppahattu/)
 * (@toppahattu)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpressin-version-5-0-2-database-error/#post-11014074)
 * Obvioysly there was some conflict with localized WP and autoupdated WP, because
   my dashboard says that I have a version 5.0.2 and now it works fine. Probably
   prevenenting autoupdate was a part fix.
 * I also deleted all twenty-something themes via FTP, and now mys site thinks that
   it is updated, even the last version from my backups was updated 13.12.2018
 * For plugins and themes, the safest way to upgrade may be install updated versions
   via FTP?
 * Anyway all is working now. 🙂
 * [link redacted]
    -  This reply was modified 7 years, 5 months ago by [wp-muhkiainen](https://wordpress.org/support/users/toppahattu/).
    -  This reply was modified 7 years, 5 months ago by [wp-muhkiainen](https://wordpress.org/support/users/toppahattu/).
    -  This reply was modified 7 years, 5 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Thread Starter [wp-muhkiainen](https://wordpress.org/support/users/toppahattu/)
 * (@toppahattu)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpressin-version-5-0-2-database-error/#post-11033855)
 * I found the real reason for a database connection error – there was an old config
   file, which forced the site to use different php version than the server is using.
 * [Check your WordPress site’s php version](https://puolanka.info/goto/check-your-wordpress-sites-php-version/)
 *  Thread Starter [wp-muhkiainen](https://wordpress.org/support/users/toppahattu/)
 * (@toppahattu)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpressin-version-5-0-2-database-error/#post-11036965)
 * I ran database repair in my site, and now the site seems to work normally. Hoping
   that this fix is the last one to do after WP 5.02 update. 😀
 * [To repair WordPress database](https://puolanka.info/goto/to-repair-wordpress-database/)
 *  Thread Starter [wp-muhkiainen](https://wordpress.org/support/users/toppahattu/)
 * (@toppahattu)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpressin-version-5-0-2-database-error/#post-11041846)
 * There has been database errors every now and then until today I reinstalling `
   wp-admin` and `wp-includes` folders using FTP, and now my site works like it 
   should work. 🙂
 * Conclusion: WP autoupdate was corrupted somehow, and manual update via FTP fixed
   it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WordPressin version 5.0.2 database error’ is closed to new replies.

## Tags

 * [config](https://wordpress.org/support/topic-tag/config/)
 * [database](https://wordpress.org/support/topic-tag/database/)
 * [file](https://wordpress.org/support/topic-tag/file/)
 * [solved](https://wordpress.org/support/topic-tag/solved/)
 * [upgrade](https://wordpress.org/support/topic-tag/upgrade/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 1 participant
 * Last reply from: [wp-muhkiainen](https://wordpress.org/support/users/toppahattu/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/wordpressin-version-5-0-2-database-error/#post-11041846)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
