Problems after upgrading to WordPress 4.2.2
-
Since updating WordPress to 4.2.2 from 3.9.x I am seeing errors when trying to add or edit content in the home blog. I can’t add posts, or save site options.
The issue seems to be the introduction of theget_table_charset()
function in wp-includes/wp-db.php
When making a call to that function, the wrong db name is given – xxxx_global instead of xxxx_home, so the wp_options table can’t be found. This throws an error at line 2274, e.g.WordPress database error Table 'wp_someblog_global.wp_options' doesn't exist for query SHOW FULL COLUMNS FROM
wp_optionsmade by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_cron, spawn_cron, set_transient, update_option, SharDB->query
If I return ‘utf8’ from that function instead of the error all is OK. Is this an issue with SharDB or could it just be my particular setup? I have
$enable_home_db = true;
in my SharDB settings, and all was working well before the update.Thanks.
- The topic ‘Problems after upgrading to WordPress 4.2.2’ is closed to new replies.