Hello,
I also found that other woocommerce data doesnt copied, and resolved with this:
add_filter( 'mlp_tables_to_duplicate', function ( array $tables, array $context ) {
$prefix = $GLOBALS['wpdb']->base_prefix . ( 1 == $context['source_blog_id'] ? '' : "{$context['source_blog_id']}_" );
return array_merge( $tables, [
"{$prefix}woocommerce_attribute_taxonomies",
"{$prefix}woocommerce_order_items",
"{$prefix}woocommerce_order_itemmeta",
"{$prefix}woocommerce_tax_rates",
"{$prefix}woocommerce_tax_rate_locations",
"{$prefix}woocommerce_shipping_zones",
"{$prefix}woocommerce_shipping_zone_locations",
"{$prefix}woocommerce_shipping_zone_methods",
"{$prefix}woocommerce_payment_tokens",
"{$prefix}woocommerce_payment_tokenmeta",
// ...
] );
}, 10, 2 );
I have main site tests.com and tests.com/en. The /en is duplicated from main site.
Debug log, after I visit any product page on front end, show:
[07-May-2017 07:02:13 UTC] WordPress database error Table ‘tests_wp4.wp_4_redirection_items’ doesn’t exist for query SELECT wp_4_redirection_items.*,wp_4_redirection_groups.position AS group_pos FROM wp_4_redirection_items INNER JOIN wp_4_redirection_groups ON wp_4_redirection_groups.id=wp_4_redirection_items.group_id AND wp_4_redirection_groups.status=’enabled’ AND wp_4_redirection_groups.module_id=1 WHERE (wp_4_redirection_items.regex=1 OR wp_4_redirection_items.url=’/en/checkout/?wc-ajax=update_order_review’) made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘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