Cloner Error Logs when cloning a site

Hi, I've noticed that when cloning a site im getting some errors in the logs

I have setup a new install with only cloner installed.

Host is WP engine.

I can successfully copy a site using Cloner(ie no errors are on the front end), but get these errors below in the logs. Any idea why i would be getting these?

[Wed Jan 04 15:38:57.698005 2017] [:error] [pid 31779] [client 86.130.240.101:34154] WordPress database error Table 'wp_whpmu3.wp_4_options' doesn't exist for query SELECT option_value FROM wp_4_options WHERE option_name = 'wp_4_user_roles' LIMIT 1 /* From [whpmu3.wpengine.com/wp-admin/network/index.php?page=clone_site&blog_id=2&action=clone] in [/nas/content/live/whpmu3/wp-content/plugins/cloner/admin/cloner-admin-clone-site.php:511] */ made by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('load-index_page_clone_site'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPMUDEV_Cloner_Admin_Clone_Site->sanitize_clone_form, WPMUDEV_Cloner_Admin_Clone_Site->pre_clone_actions, WPMUDEV_Cloner_Admin_Clone_Site->create_empty_blog, switch_to_blog, WP_Roles->__construct, WP_Roles->_init, get_option, referer: http://whpmu3.wpengine.com/wp-admin/network/index.php?page=clone_site&blog_id=2
[Wed Jan 04 15:38:57.709948 2017] [:error] [pid 31779] [client 86.130.240.101:34154] WordPress database error Table 'wp_whpmu3.wp_4_options' doesn't exist for query SELECT option_value FROM wp_4_options WHERE option_name = 'blogname' LIMIT 1 /* From [whpmu3.wpengine.com/wp-admin/network/index.php?page=clone_site&blog_id=2&action=clone] in [/nas/content/live/whpmu3/wp-content/plugins/cloner/admin/cloner-admin-clone-site.php:512] */ made by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('load-index_page_clone_site'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPMUDEV_Cloner_Admin_Clone_Site->sanitize_clone_form, WPMUDEV_Cloner_Admin_Clone_Site->pre_clone_actions, WPMUDEV_Cloner_Admin_Clone_Site->create_empty_blog, install_blog, get_blogaddress_by_id, WP_Site->__get, WP_Site->get_details, get_option, referer: http://whpmu3.wpengine.com/wp-admin/network/index.php?page=clone_site&blog_id=2
[Wed Jan 04 15:38:57.711225 2017] [:error] [pid 31779] [client 86.130.240.101:34154] WordPress database error Table 'wp_whpmu3.wp_4_options' doesn't exist for query SELECT option_value FROM wp_4_options WHERE option_name = 'siteurl' LIMIT 1 /* From [whpmu3.wpengine.com/wp-admin/network/index.php?page=clone_site&blog_id=2&action=clone] in [/nas/content/live/whpmu3/wp-content/plugins/cloner/admin/cloner-admin-clone-site.php:512] */ made by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('load-index_page_clone_site'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPMUDEV_Cloner_Admin_Clone_Site->sanitize_clone_form, WPMUDEV_Cloner_Admin_Clone_Site->pre_clone_actions, WPMUDEV_Cloner_Admin_Clone_Site->create_empty_blog, install_blog, get_blogaddress_by_id, WP_Site->__get, WP_Site->get_details, get_option, referer: http://whpmu3.wpengine.com/wp-admin/network/index.php?page=clone_site&blog_id=2
[Wed Jan 04 15:38:57.712361 2017] [:error] [pid 31779] [client 86.130.240.101:34154] WordPress database error Table 'wp_whpmu3.wp_4_options' doesn't exist for query SELECT option_value FROM wp_4_options WHERE option_name = 'post_count' LIMIT 1 /* From [whpmu3.wpengine.com/wp-admin/network/index.php?page=clone_site&blog_id=2&action=clone] in [/nas/content/live/whpmu3/wp-content/plugins/cloner/admin/cloner-admin-clone-site.php:512] */ made by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('load-index_page_clone_site'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPMUDEV_Cloner_Admin_Clone_Site->sanitize_clone_form, WPMUDEV_Cloner_Admin_Clone_Site->pre_clone_actions, WPMUDEV_Cloner_Admin_Clone_Site->create_empty_blog, install_blog, get_blogaddress_by_id, WP_Site->__get, WP_Site->get_details, get_option, referer: http://whpmu3.wpengine.com/wp-admin/network/index.php?page=clone_site&blog_id=2
[Wed Jan 04 15:38:57.713957 2017] [:error] [pid 31779] [client 86.130.240.101:34154] WordPress database error Table 'wp_whpmu3.wp_4_options' doesn't exist for query SELECT option_value FROM wp_4_options WHERE option_name = 'home' LIMIT 1 /* From [whpmu3.wpengine.com/wp-admin/network/index.php?page=clone_site&blog_id=2&action=clone] in [/nas/content/live/whpmu3/wp-content/plugins/cloner/admin/cloner-admin-clone-site.php:512] */ made by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('load-index_page_clone_site'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPMUDEV_Cloner_Admin_Clone_Site->sanitize_clone_form, WPMUDEV_Cloner_Admin_Clone_Site->pre_clone_actions, WPMUDEV_Cloner_Admin_Clone_Site->create_empty_blog, install_blog, get_blogaddress_by_id, WP_Site->__get, WP_Site->get_details, get_option, referer: http://whpmu3.wpengine.com/wp-admin/network/index.php?page=clone_site&blog_id=2

Thanks

James

    james

    Tried again on a completely clean install on a separate server/host, to avoid any wpengine only discrepancies.

    And get the same errors in the logs.

    [04-Jan-2017 16:19:31 UTC] PHP Notice: Undefined variable: additional_tables in /var/www/vhosts/wehavepowers.co.uk/mu.whpcreative.co.uk/wp-content/plugins/cloner/admin/cloner-admin-clone-site.php on line 429
    [04-Jan-2017 16:19:31 UTC] WordPress database error Table 'wordpress_c.24G7eW55N_5_options' doesn't exist for query SELECT option_value FROM 24G7eW55N_5_options WHERE option_name = '24G7eW55N_5_user_roles' LIMIT 1 made by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('load-index_page_clone_site'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPMUDEV_Cloner_Admin_Clone_Site->sanitize_clone_form, WPMUDEV_Cloner_Admin_Clone_Site->pre_clone_actions, WPMUDEV_Cloner_Admin_Clone_Site->create_empty_blog, switch_to_blog, WP_Roles->__construct, WP_Roles->_init, get_option
    [04-Jan-2017 16:19:31 UTC] WordPress database error Table 'wordpress_c.24G7eW55N_5_options' doesn't exist for query SELECT option_value FROM 24G7eW55N_5_options WHERE option_name = 'blogname' LIMIT 1 made by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('load-index_page_clone_site'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPMUDEV_Cloner_Admin_Clone_Site->sanitize_clone_form, WPMUDEV_Cloner_Admin_Clone_Site->pre_clone_actions, WPMUDEV_Cloner_Admin_Clone_Site->create_empty_blog, install_blog, get_blogaddress_by_id, WP_Site->__get, WP_Site->get_details, get_option
    [04-Jan-2017 16:19:31 UTC] WordPress database error Table 'wordpress_c.24G7eW55N_5_options' doesn't exist for query SELECT option_value FROM 24G7eW55N_5_options WHERE option_name = 'siteurl' LIMIT 1 made by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('load-index_page_clone_site'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPMUDEV_Cloner_Admin_Clone_Site->sanitize_clone_form, WPMUDEV_Cloner_Admin_Clone_Site->pre_clone_actions, WPMUDEV_Cloner_Admin_Clone_Site->create_empty_blog, install_blog, get_blogaddress_by_id, WP_Site->__get, WP_Site->get_details, get_option
    [04-Jan-2017 16:19:31 UTC] WordPress database error Table 'wordpress_c.24G7eW55N_5_options' doesn't exist for query SELECT option_value FROM 24G7eW55N_5_options WHERE option_name = 'post_count' LIMIT 1 made by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('load-index_page_clone_site'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPMUDEV_Cloner_Admin_Clone_Site->sanitize_clone_form, WPMUDEV_Cloner_Admin_Clone_Site->pre_clone_actions, WPMUDEV_Cloner_Admin_Clone_Site->create_empty_blog, install_blog, get_blogaddress_by_id, WP_Site->__get, WP_Site->get_details, get_option
    [04-Jan-2017 16:19:31 UTC] WordPress database error Table 'wordpress_c.24G7eW55N_5_options' doesn't exist for query SELECT option_value FROM 24G7eW55N_5_options WHERE option_name = 'home' LIMIT 1 made by require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('load-index_page_clone_site'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPMUDEV_Cloner_Admin_Clone_Site->sanitize_clone_form, WPMUDEV_Cloner_Admin_Clone_Site->pre_clone_actions, WPMUDEV_Cloner_Admin_Clone_Site->create_empty_blog, install_blog, get_blogaddress_by_id, WP_Site->__get, WP_Site->get_details, get_option

    Adam Czajczyk

    Hello James,

    I hope you're well today and thank you for your question!

    This seems that some options, possibly coming from some of the plugins on a source site, doesn't exists. That happens e.g. if there was a plugin installed and removed and the plugin didn't perform a full "clean up".

    From your second post I understand that you tried that on a different setup to so was that a fresh "vanilla" install with no additional plugins installed? Also, does the cloned (the one created after cloning) site does work well despite that?

    Let me know please!

    Best regards,
    Adam

    Dimitris

    Hey there james,

    hope you're doing good and don't mind chiming in here!

    These errors can be assumed as normal behaviour based on what my colleague Adam mentioned, options stored in database from plugins that's removed. This shouldn't cause any issues, apart from these notices.

    Back in your issue, do you still require assistance on this? Please advise!
    What you could do is to perform a database optimisation in order to delete any irrelevant data. This can be accomplished manually by editing your database, just keep in mind to perform a backup before messing with it.

    Warm regards,
    Dimitris