Hello,
We love this plugin and it works flawlessly for us. We are currently exploring the option to create some additional templates for our users to choose from and I’m wondering if that’s possible.
Ideally, they would be able to select the template before finishing the registration process.
]]>I want main domain job site to show job post by location in each subdomain how to do that? I have 4 subdomain each one have own location.
]]>Hi,i use the multi-site version of bitnami. i have completed the content of a subdomain site. hope to clone the other 6 subdomain sites. The WordPress version currently in use is version:5.4.2-1. Can it be used smoothly? Thank you
Regards
Eric
]]>Is it possible to clone a subsite from one multisite installation to another at a different url??
]]>It used to work perfectly. Looks like got broken with WP updates.
Now when I copy a site, I get https://4.stefantsov.com/s/2019.11.19_14.55.58_fqxmclbv.png , notice how wp_22_user_roles field name is copied as is, even though this new site ID it NOT 22, but 38.
Because of this, every cloned site have no Roles at all.
A manual fix is simple: just change wp_22_user_roles to wp_38_user_roles, then everything works like it should. But I would like it to work automatically.
Also, all users from default site are not present on new site, even though I have “Copy all users too” checked, maybe it’s because missing roles as well.
Please fix.
]]>Hello.
Guys, update the plugin, otherwise this message is https://alexodlw.beget.tech/wp-content/uploads/2019-11-04_001219.png
]]>This plugin is great, but I recently found 2 issues with it:
// Copy users
if ( $copy_users ){
$users = get_users('blog_id='.$id_default_blog);
$default_prefix = $prefix . $id_default_blog . '_';
$default_prefix_len = strlen($default_prefix);
$new_prefix = $wpdb->get_blog_prefix();
function user_array_map( $a ){ return $a[0]; }
foreach($users as $user){
$all_meta = array_map( 'user_array_map', get_user_meta( $user->ID ) );
foreach ($all_meta as $metakey => $metavalue) {
if(substr($metakey, 0, $default_prefix_len) == $default_prefix) {
$raw_meta_name = substr($metakey,$default_prefix_len);
update_user_meta( $user->ID, $new_prefix . $raw_meta_name, maybe_unserialize($metavalue) );
}
}
}
}
User Roles are copied from the main site (blog id 1) instead of from the site which is being cloned.
Regards!
]]>Hi Manuel,
Just wanted to confirm that no user_meta key / values are copied during the cloning process? I see in the plugin screenshot that there is an option to “copy users”.
In the current version of this plugin, I don’t see that option anymore – which is fine, but I’m just trying to work out if there is logic in here that is copying any data to the user tables – can you confirm please?
See here:
Thanks,
Brett
Some rival plugins warn about cloning the ID=1 site.
What about this one?
Does it have any workarounds built in?
I see that you are answering support requests though it shows that the pugin hasn’t been updated in a couple of years. It looks like a great plugin and I would like to use it but I’d like to ask if it will be getting updates. Thanks!!
]]>Hi there,
I’m getting an HTTP error 500 when cloning an existing site.
Steps to replicate:
1) clone site
2) site thinks for about a minute
3) then I get an HTTP error 500
4) I go back to my sites list & see that it has been cloned
5) but I notice many areas of the site haven’t been cloned (like missing roles, etc.)
Do you have any ideas on this one?
Thanks,
Brett
After updating my WordPress install when I try to clone a site I receive the following error message: “Are you sure you want to do this?”
There’s no button to click yes or confirm or anything.
Any idea what’s going on?
]]>Hello, is it possible to copy from staging site (www.mysite.com/staging) to main site (www.mysite.com) on multisite wordpress?
Thank you
]]>Hi i was wondering if there are end points or if it is possible to use wp_cli or shell commands over ssh to clone the site through the plugin?
]]>Hello,
thanks for this very good and light plugin!
I have found a small bug in the plugin: the subsite admin are able to access the settings page on their subsite https://www.mysite.com/mysubsite/wp-admin/network/settings.php?page=wp_mu_clone_settings and set the option.
This option won’t be used by the plugin, but anyway, it would be better to add this piece of code at the beginning of the function wp_mu_clone_settings.
if ( ! current_user_can( 'manage_network_options' ) )
wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
And still in a purpose of security, replace
update_option('wpmuclone_default_blog', $_POST['wpmuclone_default_blog']);
by
update_option('wpmuclone_default_blog', intval($_POST['wpmuclone_default_blog']));
Thomas
]]>I just run into an infinite loop at line 488, probably because the blog was deleted in the middle of a clone operation. This is definitely an extreme case, but you should consider adding an extra check in the “while” condition to make sure readdir is getting a valid dir_handle. Thanks
]]>Is there a way to pass parameters when creating a new clone for example:
##NAME## – Name of Blogger
##PHONE## – Blogger’s Phone
##EMAIL## – Blogger’s Email
It would be best if I would be able to add as many parameters possible.
Currently, the new user has to go in and manually edit the pages. There is a search and replace plugin but that is too dangerous in the hands of the uninitiated.
Please advise.
Adrian
]]>With the latest version of WordPress when I clone a site from the link in All sites. The newly created blog does not have any content from the cloned one. It just has the default hello world post.
To test I reverted to WP version 4.6 and it’s working
]]>Hi,
Quick query – when cloning the site and then moving content, do image refs of the old site get updated? e.g. does src=”/oldblog/uploads/image123.jpg” become src=”/newblog/uploads/image123.jpg”
Or do I also need to use something like velvet blues URL replacer as well?
Look great though!
Alex
]]>I guess the PHP Memory Limit on the server is not enough. Here is the error message:
Fatal error: Out of memory (allocated 83886080) (tried to allocate 4096 bytes) in /homepages/23/d74269470/htdocs/D2DCOM1/wp-includes/wp-db.php on line 1841
What would be a good value to setup for the memory limit for this plugin?
Thanks
]]>Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /public_html/wp-content/plugins/multisite-cloner/multisite-cloner.php on line 506
This happens during the plugin activation.
I am not sure what happened. I did just start using the plugin late yesterday, I was not happy with the outcome and wanted to redo the installation because I made some mistakes. I deleted the databases, deleted and re-uploaded all the files twice now. I modified the htaccess file and the config. Now I am getting this error and I am not sure why. Anyone have any ideas? The error was not there yesterday.
Thanks
]]>Would love for the pages/posts to get the date on which the blog was created as well as the new author of the site instead of the original date.
Also, would love the option to have some data such as statistics to be cleaned when created. Other than that it works WONDERFUL!
When I run the clone it gives me a bad gateway error 502.
I checked the error loggs and they report SQL syntax errors, seen below.
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE blog_id
!= %d /* From [***/wp-admin/netw’ at line 1 for query SELECT blog_id
FROM wp_blogs
ORDER BY blog_id
ASC LIMIT 0,1 WHERE blog_id
!= %d /* From [***/wp-admin/network/plugins.php?activate=true&plugin_status=all&paged=1&s=] in [***/wp-content/plugins/multisite-cloner/multisite-cloner.php:54] */ made by require_once(‘wp-admin/network/admin.php’), require_once(‘wp-admin/admin.php’), do_action(‘admin_init’), call_user_func_array, MultiSiteCloner->init_multisite_cloner, MultiSiteCloner->get_first_blog_id, referer: https://***/wp-admin/network/plugin-install.php?s=Multisite+Cloner&tab=search&type=term
I’m running version 0.2.2 on WordPress 4.6.1 multisite setup hosted on wpengine
]]>Hi
I would like to generate clones automatically
I wish to allow end users (students…) to generate their own site
and get to work instantly.
A shortcode can do the trick with super user permissions.
Can you add one?
Thanks
Mulli
Notice: wp_get_sites is deprecated since version 4.6.0! Use get_sites() instead.
Can you please fix this?
]]>When cloning a wordpress site with the multisite cloner plugin the ‘Upload Path’ is incorrect. This wasn’t a problem before wordpress 4.4 and the use of the ‘srcset’ tag.
Could you please fix it ?
Regards,
Didier Chassignol
]]>Catchable fatal error: Argument 1 passed to WP_HTTP_Requests_Response::__construct() must be an instance of Requests_Response, none given, called in /public_html/wp-content/plugins/multisite-cloner/multisite-cloner.php on line 355 and defined in /public_html/wp-includes/class-wp-http-requests-response.php on line 45
]]>Hi!
Great plugin. Simple and efficient ??
I just tried to duplicate a child site. It works great. Evrything is cloned.
But when i go back on my main thing i had a pretty fatal error related to WPML :
Fatal error: __clone method called on non-object in /wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 2942
Seems to have something to do with a site’s activation : https://wpml.org/forums/topic/fatal-error-message-on-website-when-activate-wpml-plugin-whole-site-shut-down/
Something must trigger that during the clone process …
I had to reconfigure WPML to resolve it but i can’t ask my customer to deal with a fatal error each time he duplicate a site ??
Thanks!
]]>Great plugin! Can I also force updates to my main site to the already copied subsites?
]]>