WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Networks for WordPress] issue when moving sites back to main network

[Resolved] [Plugin: Networks for WordPress] issue when moving sites back to main network

  • RavanH
    Participant

    @ravanh

    Hi,

    All goes well when I move a site from the main network to one of the sub-networks (except media urls in post and page content remain like they where, using main.tld/files/… )

    But when I move that site from the sub-network (back) to the main network, the sites Domain is changed correctly but the urls for Siteurl, Home and Fileupload Url are left to those of the sub-network and the checkmark at “Keep the options ‘siteurl’ and ‘home’ up to date.” is missing.

    Subsequently, trying to access the site via its new domain (site.mainnetwork.tld) results in being diverted to the New Site Creation page.

    Placing the checkmark back at “Keep the options ‘siteurl’ and ‘home’ up to date.” and resaving will get it all working again (except the Fileupload Url)

    http://wordpress.org/extend/plugins/networks-for-wordpress/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Dean
    Member

    @ddean

    Thanks for the report! I’ll take a look at this issue and see what I can find.

    I made a conscious decision to not try and move files / update all the links within posts and pages when a site is moved. New uploads should go to the proper uploads directory for the new site.

    While I agree that it would be cleaner to have everything moved with the site, I just don’t have time to properly implement and test such a potentially destructive feature.

    RavanH
    Participant

    @ravanh

    I made a conscious decision to not try and move files / update all the links within posts and pages when a site is moved. New uploads should go to the proper uploads directory for the new site.

    While I agree that it would be cleaner to have everything moved with the site, I just don’t have time to properly implement and test such a potentially destructive feature.

    Yes, I thought as much and I respect that decision. It is a potentially dangerous operation without proper implementation. Do you know if there is a good plugin out there that is designed to do such a thing?

    Meanwhile I wonder why WordPress has chosen to use the absolute URL to media files instead of a relative (to root) path in post content… It would have made it so much easier to move WP sites form one domain to another 🙂 Only downside I can see is that feed content would have to be processed before output to place a absolute URL in front of media file links. Or is it some kind of SEO choice?

    Plugin Author David Dean
    Member

    @ddean

    RavanH: was your network created before WP 3.0? I identified a bug in the current version of the plugin that might keep you from moving sites back to the main network if you have an older install. A fix will be coming shortly!

    I’m not really sure about why the file upload path is the way it is. Maybe feed processing is outside of the normal path, or it has something to do with the path being different depths on different sites?

    RavanH
    Participant

    @ravanh

    David, the install was a fresh WP3.0 … can the same bug/issue still be responsible?

    Plugin Author David Dean
    Member

    @ddean

    It’s definitely worth upgrading. The bug only affected the main network, and may have popped up after the site_id and domain were changed but before the blog/site options could be changed. So it seems like a good match for the issue you were seeing.

    If you still see it after upgrading, I’d be happy to help troubleshoot further.

    RavanH
    Participant

    @ravanh

    Thanks David.

    Will upgrade ASAP and come back here if I still run into this issue 🙂

    Allard

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: Networks for WordPress] issue when moving sites back to main network’ is closed to new replies.