Upgrading WordPress and Stuck in the Loop

WordPress automated upgrades are around for quite a some time, and it comes handy often esp. in terms of Security upgrads. At Vikcon, we handle more than 100 WordPress installations, for our clients. Though we have standard set of plugins with us, sometimes things do get broken.

During latest WordPress security update 4.7.1 , we observed similar issue. 99% of websites went to latest version flawlessly, but few, Like a popular blog. It stuck in the

wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F

With error that server not responding/taking too long to respond. This is classic case of almost complete, but not complete upgrade.

While website front-end operates perfectly, only the Dashboard (/wp-admin/) stuff is affected. This issue happens when there is a version mismatch between the files (Upgraded to latest version) & in DB (possible partially upgraded). I suspect the reason for this is incomplete resource allocation from web host side.

How to RESOLVE this!

  1. Use your FTP/SSH/File manager to locate a file /wp-includes/version.php
  2. Open the file & locate an entry for
    $wp_db_version = xxxxx;
  3. Carefully note down the number appears in place of xxxxx above.
    e.g.
  4. Close the file without editing/changing/saving it.
  5. Now access your WordPress database, Easier way to do it is by PhpMyAdmin or Adminer utilities.
  6. Open the table wp_options & locate for entry db_version and a number in the next field. e.g.
  7. Just change the DB number entry to the number which is the File we accessed in Step 3.
  8. Then it is done. Refresh /wp-admin/ path & you are good to go.

Let me know if it works for you as well.

 

Leave a Comment

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