• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JavaBeat

Java Tutorial Blog

  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)

WordPress Error: Database Update Required

July 31, 2015 //  by Krishna Srinivasan//  Leave a Comment

If you are using WordPress as the blogging platform for your website, it is certain that you will have lot of database related issues periodically. One of the frequent wordpress error is “WordPress has been updated! Before we send you on your way, we have to update your database to the newest version”. Most of the cases this error would occur when you try to access the wordpress admin page. The main site would work without any issues.

The screen would look like below:

Wordpress Error

Immediately you will come to a conclusion that you have to update the database version by clicking on the “Update WordPress Database” button. When you click on the “Update WordPress Database” button, you will get either time out error or blank page. The real issue is that there is a mismatch between two entries which used for specifying the database version number.

How to Fix this error?

It is very simple to fix this error. You just have to update a value in the wp-includes/version.php. Please follow the following steps to correct this error:

  1. Go to /wp-include/ folder and open the version.phpfile.
  2. Find the value for $wp_db_version, and note it down for the comparison.
  3. Now, open your database, check in the table called wp_options
  4. Find the db_version value by executing the below query in the query browser:SELECT option_value FROM wp_options WHERE option_name = 'db_version';
  5. Those two values must be the same.
  6. If the both values are not same, change it in the version.php file, not the database table value.

Now you access your WP-ADMIN page, it should show wonderful screen for you :). Have fun and come back here for more tips on internet technologies.

 

Category: WordpressTag: Wordpress Tips

About Krishna Srinivasan

He is Founder and Chief Editor of JavaBeat. He has more than 8+ years of experience on developing Web applications. He writes about Spring, DOJO, JSF, Hibernate and many other emerging technologies in this blog.

Previous Post: « Spring 4.2 Released
Next Post: Node.js : Column Chart using FusionCharts with MongoDB »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow Us

  • Facebook
  • Pinterest

FEATURED TUTORIALS

np.zeros

A Complete Guide To NumPy Functions in Python For Beginners

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

Introductiion to Jakarta Struts

What’s new in Struts 2.0? – Struts 2.0 Framework

JavaBeat

Copyright © by JavaBeat · All rights reserved
Privacy Policy | Contact