[wp-trac] [WordPress Trac] #39811: Bug maybe_unserialize() broke mysql data.

WordPress Trac noreply at wordpress.org
Wed Feb 8 14:10:03 UTC 2017


#39811: Bug maybe_unserialize() broke mysql data.
--------------------------+------------------------------
 Reporter:  ivijanstefan  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:  4.7.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * focuses:  administration, template =>
 * component:  General => Database


Comment:

 Hi @ivijanstefan, welcome to WordPress Trac! Thanks for the ticket.

 A similar issue was previously reported in #21109. There are two typical
 reasons that might cause this:
 * The `DB_CHARSET` value in `wp-config.php` doesn't match the actual DB
 charset (e.g. `latin1` vs. `utf8_general_ci`).
 * The serialized data has been tampered with, e.g. by using search/replace
 incorrectly and breaking string lengths. The
 [https://interconnectit.com/products/search-and-replace-for-wordpress-
 databases/ Database Search and Replace] script might be helpful in that
 case to perform search/replace correctly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39811#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list