Cloner problems with woocommerce site

I have a multisite setup with currently two sites running using woocommerce. I want to clone a shop into a new one. After I click Clone, I can enter all the information of the new site. Next, I see a window with a heading "We are setting up your new blog. Please wait..."
But this takes forever and no additional information is shown.

In my website logs, I see a lot of errors such as this:

[Mon Apr 20 21:38:56 2015] [warn] [client 84.197.57.163] mod_fcgid: stderr: PHP Warning: require(/var/www/vhosts/fermet.be/httpdocs/wp-content/themes/storefront/inc/custom-header.php): failed to open stream: No such file or directory in /var/www/vhosts/fermet.be/httpdocs/wp-content/themes/twentyfifteen/functions.php on line 317, referer: http://www.fermet.be/gent/wp-admin/
[Mon Apr 20 21:38:56 2015] [warn] [client 84.197.57.163] mod_fcgid: stderr: PHP Fatal error: require(): Failed opening required '/var/www/vhosts/fermet.be/httpdocs/wp-content/themes/storefront/inc/custom-header.php' (include_path='.:') in /var/www/vhosts/fermet.be/httpdocs/wp-content/themes/twentyfifteen/functions.php on line 317, referer: http://www.fermet.be/gent/wp-admin/

Do you have an idea what might go wrong? And were to look for a solution?
I have tried the cloner before and at that time it worked fine.

Thanks for your help.

  • Michelle Shull

    Hey there, Erik!

    It looks like it's a specific file in your theme that's making everything go sideways here. Can you try switching to a default WordPress theme and taking a test clone, to see if it completes successfully?

    It looks like it's just the custom-header.php file that's causing all the problems here. Was that a default theme file, or one you added later?

    Let me know what the theme test shows, and what you know about that file in Storefront.

    Thanks!

  • Erik

    Hi there,

    I took a closer look to the error log. Apparently it starts with these lines:
    -----
    [Mon Apr 20 21:28:40 2015] [warn] [client 84.197.57.163] mod_fcgid: stderr: WordPress databasefout Table 'fermet_live.wp_9_options' doesn't exist bij query SELECT option_value FROM wp_9_options WHERE option_name = 'wp_9_user_roles' LIMIT 1 gemaakt door require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('load-index_page_clone_site'), call_user_func_array, WPMUDEV_Cloner_Admin_Clone_Site->sanitize_clone_form, WPMUDEV_Cloner_Admin_Clone_Site->pre_clone_actions, create_empty_blog, switch_to_blog, WP_Roles->reinit, get_option, referer: http://www.fermet.be/wp-admin/network/index.php?page=clone_site&blog_id=6
    [Mon Apr 20 21:28:40 2015] [warn] [client 84.197.57.163] mod_fcgid: stderr: WordPress databasefout Table 'fermet_live.wp_9_woocommerce_attribute_taxonomies' doesn't exist bij query SELECT * FROM wp_9_woocommerce_attribute_taxonomies gemaakt door require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, WC_Post_types::register_taxonomies, wc_get_attribute_taxonomies, referer: http://www.fermet.be/wp-admin/network/index.php?page=clone_site&blog_id=6
    [Mon Apr 20 21:29:27 2015] [warn] [client 84.197.57.163] mod_fcgid: read data timeout in 45 seconds, referer: http://www.fermet.be/gent/wp-admin/
    [Mon Apr 20 21:29:27 2015] [error] [client 84.197.57.163] Premature end of script headers: admin-ajax.php, referer: http://www.fermet.be/gent/wp-admin/
    [Mon Apr 20 21:29:39 2015] [warn] [client 84.197.57.163] mod_fcgid: stderr: PHP Warning: require(/var/www/vhosts/fermet.be/httpdocs/wp-content/themes/storefront/inc/custom-header.php): failed to open stream: No such file or directory in /var/www/vhosts/fermet.be/httpdocs/wp-content/themes/twentyfifteen/functions.php on line 317, referer: http://www.fermet.be/gent/wp-admin/
    [Mon Apr 20 21:29:39 2015] [warn] [client 84.197.57.163] mod_fcgid: stderr: PHP Fatal error: require(): Failed opening required '/var/www/vhosts/fermet.be/httpdocs/wp-content/themes/storefront/inc/custom-header.php' (include_path='.:') in /var/www/vhosts/fermet.be/httpdocs/wp-content/themes/twentyfifteen/functions.php on line 317, referer: http://www.fermet.be/gent/wp-admin/

    -----
    I am currently not able to change the theme to a default theme (to many buying customers on the site right now) but maybe that is not the issue based on the updated info? Thanks for your thoughts.

    Erik

  • Bojan Radonic

    Hey there @Erik,

    Hope you're well today and sorry for the delay. The issue appears to be in twentyfifteen theme in functions.php on line 317, could you please try commenting that like if not using custom headers to see if that will help, try replacing that line with this one:

    /*require get_template_directory() . '/inc/custom-header.php';*/

    If that doesn't help would you mind sending us your details so we can take a look, you can send them through our contact form https://premium.wpmudev.org/contact/ using this template:

    Subject: "Attn: Bojan"
    -WordPress admin username
    -WordPress admin password
    -login url
    -FTP credentials (host/username/password)
    -link back to this thread for reference
    -any other relevant urls

    Select "I have a different question" for your topic - this and the subject line ensure that it gets assigned to me :slight_smile:

    Best regards,
    Bojan