[wp-trac] [WordPress Trac] #36238: uft8mb4 upgrade fails if using db.php drop-in

WordPress Trac noreply at wordpress.org
Mon Mar 14 17:06:17 UTC 2016


#36238: uft8mb4 upgrade fails if using db.php drop-in
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  4.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hyperdb is a popular database class that supports replication, failover,
 load balancing, and partitioning. Many other database drop-ins are based
 on hyperdb. In the core On the upgrade to the database in WordPress
 4.2/4.3 if does a check to see if the database is
 [https://core.trac.wordpress.org/browser/tags/4.4/src/wp-includes/wp-
 db.php#L756 capable of  supporting] uft8mb4. However these changes are not
 reflected in
 [https://plugins.trac.wordpress.org/browser/hyperdb/tags/1.1/db.php#L876
 hyperdb]. This means that when the upgrade is trigger it fails gracefully
 and the upgrade doesn't happen. Because there is no feedback that upgrade
 failed, it seems like the upgrade was successful.

 In production we had the
 [https://core.trac.wordpress.org/ticket/27961#comment:9 Twitter auto-
 embed] issue occur in WP 4.4.1. All db drop-ins need to be updated to
 support utf8mb4.

 Here is an example of an updated hyperdb with utf8mb4 support -
 https://github.com/johnjamesjacoby/ludicrousdb

 First report: https://wordpress.org/support/topic/utf8mb4-wp-42-not-
 supported?replies=1

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


More information about the wp-trac mailing list