Database tables not created on multisites
-
The redirection tables (wp_X_redirection_404,wp_X_redirection_groups,wp_X_redirection_items,wp_X_redirection_logs,wp_X_redirects) don’t get created until visiting the ‘Settings’ -> ‘Redirection’ page to trigger the
install
method.This generates a lot of WordPress database errors:
WordPress database error Table 'x.wp_2_redirection_items' doesn't exist for query SELECT wp_2_redirection_items.*,wp_2_redirection_groups.position AS group_pos FROM wp_2_redirection_items INNER JOIN wp_2_redirection_groups ON wp_2_redirection_groups.id=wp_2_redirection_items.group_id AND wp_2_redirection_groups.status='enabled' AND wp_2_redirection_groups.module_id=1 WHERE (wp_2_redirection_items.regex=1 OR wp_2_redirection_items.url='/xxx') made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('/xxx/wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WordPress_Module->init, Red_Item::get_for_url
Would it be possible to create the tables on Network Activate / site creation, or to trigger the
install
method if the tables are not found?Thanks,
Chris
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Database tables not created on multisites’ is closed to new replies.