WordPress.org

Ready to get started?Download WordPress

Forums

SFR Clone Site
No sites listed under Take this site: (13 posts)

  1. johnyma22
    Member
    Posted 3 years ago #

    When I try to clone a site, I save all my settings but no sites are listed under Take this site:

  2. stakabo
    Member
    Plugin Author

    Posted 3 years ago #

    hi,

    are you running the plugin in a multi site WP install ?
    What version of WP are your running ?

  3. johnyma22
    Member
    Posted 3 years ago #

    Yep.
    3.0.1

  4. stakabo
    Member
    Plugin Author

    Posted 3 years ago #

    hum ..

    and you have at least 2 site with difrent theme folders ?

  5. johnyma22
    Member
    Posted 3 years ago #

    yep. 1000+ sites and 200+ themes.

    You can ping me on http://mclear.co.uk and we can chat or you can skype me johny_mac or gmail johnyma22@gmail.com -- im easy

    Or IRC, you pick the channel/network.

  6. stakabo
    Member
    Plugin Author

    Posted 3 years ago #

    this might be in the way 3.1 puts it's site in the DB.
    My version of WP is still 3.0.5.

    I'll upgrade to 3.1 and see what happen ...

    go you get any error beside this ?

  7. johnyma22
    Member
    Posted 3 years ago #

    Um, I said 3.0.1

    No errors in apache logs or in wordpress but our deployment is scaled out so I may be missing it.

  8. stakabo
    Member
    Plugin Author

    Posted 3 years ago #

    just tested on a dev with 3.1-beta1-16590 and it works ok.

  9. stakabo
    Member
    Plugin Author

    Posted 3 years ago #

    got google talk ?

  10. johnyma22
    Member
    Posted 3 years ago #

    Update on this: Fixed by editing line 35 which is the MySQL query to read wp_blogs and drop the prefix.

    New problem: If you have a lot of blogs it times out. Proved by adding limit 0,10 to the query.

  11. stakabo
    Member
    Plugin Author

    Posted 3 years ago #

    hi, limiting 1,10 will not display all your blog, but only the 10 first.

    I will build a query that SELECT only whats needed. now it's a lazy SELECT *.
    by getting only what the plugin need, it might imrpove performance a lot.

  12. johnyma22
    Member
    Posted 3 years ago #

    Yea I can probably do that 2nite. Using limit 0,10 was just proving the theory that the data it was grabbing was too verbose.

  13. johnyma22
    Member
    Posted 3 years ago #

    This part of the function sfr_clone_site_mysql_update is making it time out:

    $finder = new dbsearch(DB_NAME);
    $finder->exclude(false);
    $finder->useonly(implode(',' , $tables_array));
    $finder->find($table_prefix.$old_site_id,$table_prefix.$new_site_id,false);

    Or so it seems..

    I also had to manually hard code my table_prefix value ;/

    Any idea where to go from here? I am pretty sure my database is too big for me to try to do a find against the whole thing ;/

    PS all of the values sent to find all seem fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic