Interesting issue! The NS Cloner is using WP’s built in wp_get_sites() function to retrieve and display a list of available sources – can you try adding a test.php file in your root directory with the following code:
require 'wp-load.php';
print_r( wp_get_sites() );
Then try loading that test.php in the browser and see if it outputs that ~10 sites as expected? That way we can narrow it down to a Cloner display issue or a WP issue (maybe another plugin is filtering that result, etc.)
Hi – thanks for the quick reply. We never got round to testing this as we found that at some point one of our team had made a small change to WP core, which we reverted and it worked after.
Great, glad to here it was an easy fix!
Hi, you should change the version compability on the front page of this plugin.
wp_get_sites() was implemented in wp 3.7
Or even better implement a fallback for older wp-versions.
Something like this…
if (!function_exists('wp_get_sites')) {
$sites = get_blog_list(0, 'all');
}
else {
$sites = wp_get_sites($args);
}
I know get_blog_list is deprecated but it only because of performance reasons and performance might not be of any matter when doing this kind of tasks.
Ah, great catch – thank you. We have an update coming out soon and we’ll squeeze in that change (or min version update).
I have the same issue –
“when I go to select the cloning mode and source, the dropdown of available sources is blank (no items)”
I’m running wp3.5 and have updated to latest NS Cloner 3.0.3.1
If yo-l1982’s code will do the trick, where do I put that in?
Quickly looking through our code and dependent add-ons it looks like there are several places you’d have to modify. If you can hang tight, we’re wrapping up an update that implements @yo-l1982’s suggestion across the boards and should have it out in a day or two.
Thanks for your patience!
Just wanted to follow up and let you know that we released this update a couple days ago with lots of other goodies in there too. Check out the changelog for details.
Best!
NS