[wp-trac] [WordPress Trac] #54936: db_version mismatch after update to 5.9

WordPress Trac noreply at wordpress.org
Wed Jan 26 20:54:15 UTC 2022


#54936: db_version mismatch after update to 5.9
-----------------------------+-----------------------------
 Reporter:  mtruglio         |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  5.9
 Severity:  major            |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Hello, is my first time submitting feedback to the team to apologies if I
 got anything wrong in the process.

 I run a small hosting company with just over 150 WordPress sites hosted on
 both Apache2 and Nginx; VPS and Shared; Exclusively WordPress.

 I noticed after a few sites auto updated and then their /wp-admin/* links
 were all redirecting to 404.

 After ruling out our various hosting environments and checking the files
 and DB. We found the /wp-includes/wp-version.php for 5.9 didn’t match the
 db_version value in the database on the failing sites post update.

 When I manually set the db_version to match the wp-version.php file the
 redirect stopped and the site loaded without clearing any caches.

 However, this wasn’t the case on all our sites. Most of them updated
 normally.

 Here’s a quick list of db_version values that broken out by what worked,
 and what didn’t.

 if initial_db_version then breaks

 49752,33055,24448

 if initial_db_version then works

 48748,43764,44719

 WP 5.9 found in /wp-includes/wp-version.php

 db_version: 51917

 I hope it helps the WP team even if in a small way. Thanks for the years
 of dedicated work on this project, it has made my small company possible!
 🙂

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54936>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list