Hi,
We run a wordpress/woocommerce multisite with 3 subsites.
We tried to clone one of the subsites but when the clone process got to around 5% we get got the following error message:
WordPress database error: Could not perform query because it contains invalid data.
Missing row 23558 in wp_2_actionscheduler_actions – could not be preloaded
Missing row 23559 in wp_2_actionscheduler_actions – could not be preloaded
Missing row 23560 in wp_2_actionscheduler_actions – could not be preloaded
It’s strange because our staging site on blogvault cloned the site within 10 minues without issue . The staging site is an exact copy of our live site.
Can you advise what maybe causing the issue please?
Thank you
]]>This is a pre-use/pre-sale question for NS Cloner/Pro. Does this plugin allow for the network site welcome email to be sent when a site is cloned?
Cheers,
]]>Hi there,
I am developing a feature for my multisite where a user submits a gravity form and all a new is generated for them.
Later on some changes are done on the newly duplicated site (User details are replaced there).
But these changes are undone as the nscloner duplication function runs in background.
Is there a way we can get the response from the function only when the Site is Completely Duplicated.
Also we should get the newly created site ID as return.
here’s the code i am using for reference.
$response = ns_cloner_perform_clone( array(
'source_id' => 9,
'target_name' => $target_name,
'target_title' => $target_title,
'user_id' => $user_id
) );
if($response)
{
print_r("<br>Site Created Successfully");
$site_url = get_site_url(); // Get the main site URL
$blog_url = $site_url . '/' . $target_name;
$template_vars = array(
'username' => $username,
'blog_url' => $blog_url,
'password' => $password
);
ob_start();
include 'email_sitegenerated.php';
$template = ob_get_clean();
$to = $user_email;
$subject = 'Your Site is Ready';
$headers = array('Content-Type: text/html; charset=UTF-8');
wp_mail($to, $subject, $template, $headers);
$site_after_id = get_blog_id('/'.$target_name);
print_r("<br>Target of Generated Site is ".$target_name);
print_r("<br> ID of generated site is ".$site_after_id);
clear_elementor_cache();
switch_to_blog($site_after_id);
// wp_cache_flush(); // Ensure no stale cache
update_site_contact_info($contact_info);
attach_wordpress_logo($site_logo);
update_colors($site_after_id,$selected_demo,$main_color,$accent_color);
restore_current_blog();
}
]]>
Hi,
I’m using WordPress Multisite, and wanted to clone one of my sites within the multisite. Everything worked fine. However, some links, for an unknown reason, added the main site to some the of the links.
So instead of: takemetothetherapist.com/booking
It cloned it by adding the master site: takemetothetherapist.passport-vip.com/booking – in essence breaking lots of links.
What’s the best way to deal with this situation? Is there a way to clone a site so this issue doesn’t happen ?
Thanks!
Ronnie
]]>Recently, we’ve been getting a lot (every 5 seconds or so)of PHP errors related to NS-Cloner. They all look like:
Cron reschedule event error for hook: ns_cloner_cron, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"ns_cloner_cron_interval","args":[],"interval":120}
I’m not exactly sure when they started, by guess is in the last couple of weeks, since either the 4.4.6 or 4.4.7 update. Is there something we can do to get rid of these?
]]>Hello and good day.
The plugin did not clone the entire network after selecting the main the first site.
Also, it did not use the active theme (Astra).
When I visit the url, I get a directory listing instead of the home page.
https://drive.google.com/file/d/1p9V1SU5DJTl8Oo4pILBhCXweocE4BoOl/view?usp=drivesdk
]]>We bought NS cloner pro and have some member templates for people to cloner. I want to stop cloning users of templates when other users use the templates but cannot find the setting.
]]>I created a subsite from a template site in the same network. So I think before creation of the website the subdomain was not added in CPanel and when I created the site above it added the subdomain as a parked domain.
Is that a correct behavior for the plugin, does it create a parked domain instead of an addon domain if the domain is not configured in CPanel? If yes then how can we convert it back to addon domain and not lose any work done?
I have one primary page in multisite wordpress. I am trying to clone it. Unfortunately, from each table only some of the rows are cloned. There are no errors in the server logs. For example, in the table “wp_options” I have 281 rows. The plugin clones only 13 of them. In the plugin logs I see such strange entries:
? GENERATING create table query for wp_2_options:CREATE TABLE
wp_2_options
(option_id
bigint(20) unsigned NOT NULL AUTO_INCREMENT,option_name
varchar(191) NOT NULL DEFAULT '',option_value
longtext NOT NULL,autoload
varchar(20) NOT NULL DEFAULT 'yes', PRIMARY KEY (option_id
), UNIQUE KEYoption_name
(option_name
), KEYautoload
(autoload
) ) ENGINE=InnoDB AUTO_INCREMENT=99678 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci
? SELECTED 282 with query:SELECT COUNT(*) rows_qty FROMwp_options
WHERE 1=1
? SAVING batch for ns_cloner_rows_process with 282 items.
? UPDATING ns_cloner_rows_process_progress_c0faabca2cb932efcee159b474b0edcb{"total":282,"completed":0}
? QUEUEING 282 rows from wp_options to wp_2_options
? PRELOADING rows for wp_options with query:SELECT wp_options.* FROMwp_options
WHEREoption_id
> 99150 ORDER BYoption_id
ASC LIMIT 250
? PRELOADED 13 rows for wp_options
? UPDATING ns_cloner_rows_process_progress_c0faabca2cb932efcee159b474b0edcb{"total":282,"completed":5}
? PERFORMED 1 replacements in wp_2_options
? UPDATING ns_cloner_rows_process_progress_c0faabca2cb932efcee159b474b0edcb{"total":282,"completed":10}
? PRELOADING rows for wp_options with query:SELECT wp_options.* FROMwp_options
WHEREoption_id
> 99677 ORDER BYoption_id
ASC LIMIT 250
? PRELOADED 0 rows for wp_options
? WRITING notice:Missing row 13 in wp_options - could not be preloaded
? SKIPPING row 13 in wp_options because content was empty
? PRELOADING rows for wp_options with query:SELECT wp_options.* FROMwp_options
WHEREoption_id
> 99677 ORDER BYoption_id
ASC LIMIT 250
? PRELOADED 0 rows for wp_options
? WRITING notice:Missing row 14 in wp_options - could not be preloaded
? SKIPPING row 14 in wp_options because content was empty
... etc.
I have used your plugin with other sites and this is the first time I have encountered something like this. Why is there this strange condition in these sql queries?
WHERE
option_id
> 99150
WHEREoption_id
> 99677
WHEREoption_id
> 99677
WHEREoption_id
> 99677
... and so to the end
I also don’t understand why the plugin adds such a row in the “wp_options” table:
option_id | option_name | option_value
99677 | wp_2_user_roles | a:12:{s:13:"administrator"...
It seems that the plugin later clone only those rows from this table if they have id>99677.
]]>We recently cloned a site and found that the timezone was not cloned. Is that something that gets cloned or is that something we should expect to have to set every time we clone a site?
]]>We recently upgraded to the latest NS Cloner Pro plugin and are testing it on our test environment.
On our prod system clones happen almost instantly. However, on our test environment when clicking on the site URL we get the message:
“Your site is currently being set up. Please check back in a few minutes!”
And looking at the NS Cloner logs we see the jobs listed as being scheduled:
Any help would be greatly appreciated.
]]>I have a WordPress Multisite network where I use different domains for each Site. Not Sub-pages, not Sub-domains, but different Domains. The current UI of this plugin only supports the Sub-domain structure. Can you please update the plugin so that both the Sub-pages and Different Domains structures are allowed? For example, I would like to place example.com
in the “Give the target site a URL” field.
Hello, have a question about the front end cloning fuction. Im trying to develep a plugin that can accomplish what I need but I think the Pro Edition Frontend Cloning might be the solution.
We have a premade template of a site for our agents which we clone, the issue is everytime we clone a site, we have to edit all the info like contact boxes, email, phone number, profile picture on website etc. Does the frontend clone fuction have a form I can send to the new agent where I can select what information is needed, edit the premade template to select what items need to be replaced and then NS Cloner creates the site with the new agents info like picture, email etc? I think so based on what I read but not sure. Thank You
]]>Hello, screen options settings are not cloned. Additionally, the dashboard widgets are listed one under the other on the new site. (Side by side on the source site)
Screenshot;
]]>I received a note from our client yesterday that they were encountering an error when attempting to clone a multisite site. This had previously been working for them and no changes to the active theme have been made recently.
Here’s what they say happens:
“After cloning is complete (and we’ve given it hours and come back; as well as deleted and started over) – the desired custom theme won’t load, and there’s immediately an error message on the Themes page before we even touch anything.
Instead of the desired custom theme being active, the twentwentyfour theme is active, but there is an error message above stating “Error: The theme directory ‘twentytwentyfour’ does not exist.” If we try to click to activate the desired custom theme, nothing happens; the page simply refreshes and the state is the same.”
Current plugin version is 4.4.4 and WordPress version is 6.5.3. PHP version is 7.4. Site is hosted on WP Engine. I contacted WP Engine support before opening this ticket and they said, “Core files are looking good. There is no mention of twentytwentyfour in the themes directory, so it’s like the plugin itself is looking for it even though your client confirmed it wasn’t being used. I purged everything server side and checked for any caching directories created by plugins and there weren’t any, so I would suggest reaching out to the plugin devs to find out what is causing this hiccup with their plugin.”
]]>I have a wordpress multisite in development.
Everything was working fine with the cloner. But now, not so much.
During the most recent cloning I got a message saying my host may be blocking background processes. Cloner moves to AJAX and completes the cloning. But when I go to visit the cloned site’a dashboard I get an error message saying the site is missing, as though nothing was created. The front end does not exist either.
We’ve made two changes sine the last time we cloned. Our theme required PHP 8.2, and the main site redirects to a subdomain for now. I don’t know if either of these things would affect the cloning process.
All thoughts welcome.
]]>Hello, users register through a form and a subsite is created for the registered user. Additionally, the user specified in the form is appointed as the subsite administrator.
So, when a subsite is created, can we automatically create a copy of the subsite we want for the user?
I really like the plugin but currently to create a duplicate subsite we have to manually create a duplicate subsite from scratch. In addition, only super admin is assigned to the newly created subsite user. We have to change this too.
]]>Hi,
I am the administrator of a multisite.
I cloned the main website to get a “child” website that I’ll customize.
But even if I can log-in and see this new website backend, frontend shows always the main website.
Mes sites ? Mode-confort.com — WordPress
Watch Video
I can send you a temporary login so you can solve this issue.
]]>Hello!,
(WP MU) When I delete a site that I have cloned, the Media files of the original site are deleted instead of the cloned one. They appear as broken links because the folder where the files are hosted is empty.
The files from the cloned site should be deleted, not those from the original. Do you know why this happens?
Plugin version: 4.4.3
WordPress versión: 6.4.3
]]>Hello,
kindly I am using ns cloner in my multisite WordPress to clone subsites. am getting the below errors:
Site cloned successfully!
Duplicate entry ‘404’ for key ‘url’ for table wp_13_litespeed_url
Duplicate entry ‘398’ for key ‘PRIMARY’ for table wp_13_trp_original_strings
Duplicate entry ‘448’ for key ‘PRIMARY’ for table wp_13_trp_original_strings
Duplicate entry ‘498’ for key ‘PRIMARY’ for table wp_13_trp_original_strings
Duplicate entry ‘548’ for key ‘PRIMARY’ for table wp_13_trp_original_strings
Duplicate entry ‘598’ for key ‘PRIMARY’ for table wp_13_trp_original_strings
..
…
…
is it normal ??
]]>Hi everyone,
I’m trying to clone my main site to a new subsite, first time doing this. I used NS Cloner and everything looks like it copied over, but when I go to the actual site I get this error message:
Fatal error: Uncaught WC_Data_Exception: Invalid billing email address in /home/customer/www/tipsyhues.com/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:943 Stack trace: #0 /home/customer/www/tipsyhues.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-customer.php(1045): WC_Data->error(‘customer_invali…’, ‘Invalid billing…’) #1 /home/customer/www/tipsyhues.com/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php(150): WC_Customer->set_billing_email(‘hello@tipsyhues…’) #2 /home/customer/www/tipsyhues.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Data_Store_Session->read(Object(WC_Customer)) #3 /home/customer/www/tipsyhues.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-customer.php(125): WC_Data_Store->read(Object(WC_Customer)) #4 /home/customer/www/tipsyhues.com/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(986): WC_Cu in /home/customer/www/tipsyhues.com/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php on line 943
]]>Hi,
I want to ask about the capability of your plugin.
Is it possible for the plugin to automatically clone a subsite whenever a new one is created.
So here’s the structure of the site:
Mainsite.
-subsite1
-subsite2
-subsite3
So I have a plugin that automatically create a new sub-site whenever a new user is registered. Now, back to my original question. Is it possible for the NS Clone plugin to automatically clone an existing sub-site (for example: subsite1) into this newly created subsite?
How do i achieve that? I am totally newbie on this so you might want to tell me how to achieve that as if i’m 5 years old.
Thank you very much!
I have tried to clone a website in my multisite install. When the proces has finished I have a warning: Duplicate entry ‘wp_2_user_roles’ for key ‘option_name’ for table wp_2_actionscheduler_actions.
When I check the error log on the server I have a lot of database errors. The first one in the cloning process is: Backend log: WordPress database error Table ‘deb147034_wp1.wp_3_options’ doesn’t exist for query SELECT option_value FROM wp_3_options WHERE option_name = ‘icl_sitepress_settings’ LIMIT 1 made by do_action(‘wp_ajax_ns_cloner_process_init’), WP_Hook->do_action, WP_Hook->apply_filters, NS_Cloner_Ajax->process_init, NS_Cloner_Process_Manager->init, do_action(‘ns_cloner_process_core’), WP_Hook->do_action, WP_Hook->apply_filters, NS_Cloner->{closure}, NS_Cloner_Process_Manager->create_site, wp_insert_site, do_action(‘wp_initialize_site’), WP_Hook->do_action, WP_Hook->apply_filters, wp_initialize_site, wp_is_site_initialized, switch_to_blog, do_action(‘switch_blog’), WP_Hook->do_action, WP_Hook->apply_filters, SitePress->init_settings, get_option\n, referer: https://2iq.nl/wp-admin/network/admin.php?page=ns-cloner
When I check the filemanager, no files are copied to the subdomein.
Can you please let me know how to fix this?
]]>Hi there
I’ve cloned a few sites with NS Cloner, which worked perfectly after clearing a few caches. However, the latest cloned site is refusing to show up on My Sites dropdown list — it is still accessible through the superadmin Sites menu— no matter how often I clear the browser cache, static server cache, object cache, or restart the browser. Can you offer any additional suggestions for getting the site to display in the menu?
]]>I am trying to clone one of my sites, when I do it it says that the cloning has been successful, but when I access the site I get a wordpress error, and eventually it shows up but there is nothing copied, it also doesn’t let me access the desktop of the site. I have checked the logs and the first failed calls are the following:
CHECKING for running?ns_cloner_files_process?– none found
HANDLING?files_process?async request
DISPATCHED from:server
In addition all those lines where it should copy the site appears to me as it has given error, How can I solve this problem?
]]>Hello,
first thanks for the awesome plugin.
but am noticed one problem with the plugin. it increases the database size a lot.
for clarification,
i have a new multisite WordPress. with 2 sites. I used ns cloner to clone the subset. the database size was around 200MB
after the clone, I noticed that the site had a problem so i deleted it to create again. but I checked the database it was around 800MB. so i don’t know how this size comes also the cloned subsite was deleted and the size remains exists.
I’ve been using NS Cloner successfully for some time now using the admin interface, but I now need to start the cloning process programmatically. I used the code example at https://support.neversettle.it/article/22-how-to-call-ns-cloner-to-copy-sites-from-other-plugins which sometimes works, but a lot of the time doesn’t complete. The three outcomes I have so far identified are either a successful clone, a new, empty site or no site at all. If I open the admin interface then the cloning dialog pops up and sometimes that will complete the cloning process. Obviously this is no good. I need the cloning process to complete automatically.
Is there a way to trigger whatever processes run when the admin interface dialog pops up porogrammatically so that the process can complete without any human intervention?
]]>Hi there, I’m working with version 4.4 and getting this warnings in my log:
[16-Jan-2024 18:06:03 UTC] PHP Warning: ?include_once(/www/public/wp-content/plugins/ns-cloner-site-copier//templates/ns-template-mcf-header.php): Failed to open stream: No such file or directory in /www/public/wp-content/plugins/ns-cloner-site-copier/class-ns-cloner.php on line 421
]]>[16-Jan-2024 18:06:03 UTC] PHP Warning: ?include_once(): Failed opening ‘/www/public/wp-content/plugins/ns-cloner-site-copier//templates/ns-template-mcf-header.php’ for inclusion (include_path=’.:/usr/share/php’) in /www/public/wp-content/plugins/ns-cloner-site-copier/class-ns-cloner.php on line 421
Hello, I am using your plugin to clone a site multiple times in a multisite environment programmatically through a PHP script based on this link: https://support.neversettle.it/article/22-how-to-call-ns-cloner-to-copy-sites-from-other-plugins. The issue is that if a cloning process gets stuck (for any reason, such as the entered name already being in use), the system completely freezes and does not allow subsequent cloning attempts.
The only way to unlock the system is to enter the CMS, open the plugin page, where an alert informs me that the cloning was unsuccessful. At that point, if I initiate another cloning process via code, everything works correctly.
Is it possible to set up a PHP command at the beginning of the script in the article to remove any blocked installations?
Thank you.
]]>Great plugin!
In the “Give the target site a URL” box, should I include www in the url?
That is, should the url be, https://newsite.example.com or https://www.newsite.example.com?
The site is a multisite based on subdomains. Thank you!
]]>