Lots of db errors after upgrading to v9.11 – “Specified key was too long”
-
After upgrading a site to v9.11 I see lots of these errors in the log file (with WP_DEBUG and WP_DEBUG_LOG enabled):
WordPress database error Specified key was too long; max key length is 1000 bytes for query ALTER TABLE fk_WP_SEO_Redirection CHANGE
redirect_from
redirect_from
VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;You can also see the error if you install the Query Monitor plugin.
This happens because you’ve changed the SQL that creates the database table to use VARCHAR(191) for redirect_from, but you haven’t changed the SQL that updates the table. It still uses VARCHAR(255).
- You must be logged in to reply to this topic.