• Resolved th3ottoman

    (@th3ottoman)


    Hi

    Let me first tell you that this plugin is wicked… Easiest clone plugin I have ever used. My only problem is ( probably because i am new to all this) is that I did dump some games with mysqldumper with my actual site and all those games are accesible with my main site. ( I am using myarcade plugin )

    I can go to my main site and under myarcade plugin and all my games are there but when i clone my site to my subdomain, than they are no longer showing.

    Do I have to manually edit table names or something on mysql so that i can use same database to see all those games? Does this plugin not clone everything?

    Help much appreciated… Wicked plugin and job by the way…

    https://www.ads-software.com/plugins/multisite-clone-duplicator/

Viewing 1 replies (of 1 total)
  • Plugin Author Pierre Dargham

    (@pdargham)

    Hi there !

    If you clone the primary site (the first one of your network, with id = 1, and SQL prefix = wp_), you need to use a filter in order to tell multisite-clone-duplicator which plugin-related tables need to be cloned.

    For example, if you have those 2 extra tables you need to copy when duplicating :

    wp_my_plugin_table_foo
    wp_my_plugin_table_bar

    Then you want to add something like this to your functions.php file :

    function mucd_primary_table_to_copy($primary_tables) {
    	$primary_tables[] = 'my_plugin_table_foo';
    	$primary_tables[] = 'my_plugin_table_bar';;
    	return $primary_tables;
    }
    add_filter('mucd_default_primary_tables_to_copy', 'mucd_primary_table_to_copy');

    Does it solve your problem ?

    More details in the FAQ :

    Can I clone the primary site ?
    Yes you can, but you want to be careful : WordPress saves network tables and primary blog tables with the same prefix, and some of their data are mixed. It forces us to restrict primary blog cloning to copy only the default wp tables. If you want to change this (for example, include your plugin tables in the cloning), use mucd_default_primary_tables_to_copy filter. In the future, you want probably not to copy again and again the primary blog : use a “template” blog dedicated to clonage instead.

    Best regards,

    Pierre

Viewing 1 replies (of 1 total)
  • The topic ‘MySql database not attached..’ is closed to new replies.