Support » Plugin: NS Cloner - Site Copier » Does it work with domainmapping?

  • Resolved csigncsign



    great idea, very helpful. I have a question concerning domain mapping:

    I have a network installation:
    – my TLD domain
    – other sub blogs in subfolders, but mapped to subdomains
    – one of this sub blogs is mapped to another TLD

    Does it work to clone one of the sub blogs (= in a subfolder and mapped to a subdomain)? Or need I delete the mapping of it before cloning it?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Never Settle


    Hi, CsignCsign, thanks for the question – it gives me an idea for a new feature / improvements. Unfortunately I don’t think it will work in your environment as is.

    It currently doesn’t work on blogs in the subfolder structure (but this is a feature at the top of the todo list!)

    Also, the results would be unpredictable with domain mapping in place, but this would be an area I’d like to explore more.

    It’s mainly designed to take a standard subdomain blog, clone to a new blog, and then after that have unique things like domain mapping applied. But we’ve used domain mapping extensively too, and I will have to go back and look at cloning domain mapped sites. I’d like to add that!


    Hi Am having an issue using the plugin – did have domain mapping (now switched off).

    Appears to create cloned site ok (site listed in network admin and I get an admin email) but it does not actually exist when I try and visit it or the dashboard –

    “Warning: require(/home/leicacou/public_html/wp-content/themes//inc/custom-header.php) [function.require]: failed to open stream: No such file or directory in /home/leicacou/public_html/wp-content/themes/twentytwelve/functions.php on line 83

    Fatal error: require() [function.require]: Failed opening required ‘/home/leicacou/public_html/wp-content/themes//inc/custom-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/leicacou/public_html/wp-content/themes/twentytwelve/functions.php on line 83″

    Plugin Author Never Settle


    Just as a quick update to the post from 4 months ago, and probably as you noticed, the current version does indeed support blogs in a subdirectory structure.

    @ralphleighton it looks like the issue you are experiencing might be because of the names you are giving your site or site title. There is a directory missing from those paths in those warnings related to your theme files:

    Warning: require(/home/leicacou/public_html/wp-content/themes//inc/custom-header.php)
    [NOTE the double slashes].

    In order for everything to work the Cloner automatically replaces values in the old site to values in the new. Please make sure that the name of the new site and the title of the new site are not identical with the names of directories in your theme paths or other critical keywords.

    Also, if your existing site name or title that you are trying to clone, matches some of those things, you might also run into trouble.

    Hopefully this helps you figure out where the collision is. Chances are it is related to the name of your theme – whatever is supposed to be between those two // in a row.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does it work with domainmapping?’ is closed to new replies.