Title: Table Cloning problem
Last modified: August 22, 2016

---

# Table Cloning problem

 *  Resolved [AliasgerSW](https://wordpress.org/support/users/aliasgersw/)
 * (@aliasgersw)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/table-cloning-problem/)
 * When i use to duplicate the site for creating new site then it will also include
   another site table to copy.
    For example : My Site for duplicable ID is 18, when
   i use to copy this site then it will also include Sites tables of 180, 181, 182
   etc. ————————— Like table to copy is wp_18_posts
 * for new site then it will also copy table named
    wp_181_posts, wp_182_posts with
   name of wp_22__posts.
 * Due to this problem the tables of database overloaded by the garbage tables created
   from the process above.
 * Please resolve this problem as soon as possible
 * Thanks in advance
 * Best Regards
    Aliasger Sabunwala
 * [https://wordpress.org/plugins/multisite-clone-duplicator/](https://wordpress.org/plugins/multisite-clone-duplicator/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Pierre Dargham](https://wordpress.org/support/users/pdargham/)
 * (@pdargham)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/table-cloning-problem/#post-5722430)
 * Hi, thank you for your message, I did not see it !
 * It is caused by mysql interpreting the ‘_’ characters in our queries as “any 
   character” so we need to escape them before looking for tables to copy.
 * If you want to add the patch manually, just add :
    `$from_site_prefix = str_replace('_','\\_',
   $from_site_prefix);` line 46 in file lib/data.php and it should be ok.
 * Or you can wait that I publish this patch in the next version 1.2.0 in a few 
   days.
 * Best Regards
    Pierre
 *  Thread Starter [AliasgerSW](https://wordpress.org/support/users/aliasgersw/)
 * (@aliasgersw)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/table-cloning-problem/#post-5722462)
 * Just confirming, do i add above code before Get sources Tables comment ?
 *  Plugin Author [Pierre Dargham](https://wordpress.org/support/users/pdargham/)
 * (@pdargham)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/table-cloning-problem/#post-5722463)
 * Yes, that’s it.
 * Here you can see what I made :
 * [https://github.com/pierre-dargham/multisite-clone-duplicator/blob/master/lib/data.php#L47](https://github.com/pierre-dargham/multisite-clone-duplicator/blob/master/lib/data.php#L47)
 * I have not yet publish it on wordpress.org, i need to run a few more tests.
 * Can you confirm me that it solved your problem ?
 * Thank you,
 * Best Regards
    Pierre
 *  Thread Starter [AliasgerSW](https://wordpress.org/support/users/aliasgersw/)
 * (@aliasgersw)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/table-cloning-problem/#post-5722473)
 * Can you give me two days, because for testing i have to startup for multisite,
   because my previous database is stop responding to me because of huge amount 
   of tables i.e. above 95000. So i am starting it for Cloning on tomorrow.
 * Thankyou so much for your instant help. It seems like it will solve my problem.
 * Best Regards
    Aliasger Sabunwala
 *  Thread Starter [AliasgerSW](https://wordpress.org/support/users/aliasgersw/)
 * (@aliasgersw)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/table-cloning-problem/#post-5722491)
 * Hello sir,
 * You work like charm sir…
    I have checked the issue, now my problem has been solved.
 * Thankyou once again sir for helping me instantly.
 * Best Regards
    Aliasger Sabunwala
 *  Plugin Author [Pierre Dargham](https://wordpress.org/support/users/pdargham/)
 * (@pdargham)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/table-cloning-problem/#post-5722506)
 * Hi !
 * I just released the last version 1.2.0 of the plugin, which includes this patch.
 * Thank you for the 5-stars 😉
 * Best regards,
 * Pierre
 *  Thread Starter [AliasgerSW](https://wordpress.org/support/users/aliasgersw/)
 * (@aliasgersw)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/table-cloning-problem/#post-5722507)
 * Thanks to you also sir to solve this problem instantly sir.
 * Best Regards
    Aliasger Sabunwala

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Table Cloning problem’ is closed to new replies.

 * ![](https://ps.w.org/multisite-clone-duplicator/assets/icon-256x256.png?rev=1011466)
 * [MultiSite Clone Duplicator](https://wordpress.org/plugins/multisite-clone-duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multisite-clone-duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multisite-clone-duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/multisite-clone-duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multisite-clone-duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multisite-clone-duplicator/reviews/)

## Tags

 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * 7 replies
 * 2 participants
 * Last reply from: [AliasgerSW](https://wordpress.org/support/users/aliasgersw/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/table-cloning-problem/#post-5722507)
 * Status: resolved