• Might be a dumb question, but, what happens IF you have a multi-site install, with multiple sites, but only map one site to a domain?

    Kind of freaky, but we tested multisite domain mapping, and it worked pretty well on the site that we actually mapped, but the other sites (that had NOT yet been domain mapped) started losing pieces – sidebars, widgets, menus etc….

    Any notion as to why? If I set up domain mapping, I have to map ALL of the sites? Even those under development and not yet accessible from the outside world??

Viewing 11 replies - 1 through 11 (of 11 total)
  • No, you do not have to map all the sites.

    The plugin was designed to work across the whole network though.

    Thread Starter sdoss

    (@sdoss)

    huh. Only other thing I did was to enable the multisite support from the WP SuperCache page (as I got the pretty pink message telling me to do so..) So….

    I deactivated the domain mapping plugin. I’ve deleted the plug-in folder, deleted the sunrise.php file, put wp-config.php back (no reference to sunrise), and it appears that we’ve got it all back.

    When the plug-in is activated, what changes in the database? I know that two tables were new, wp_domain_mapping and wp_domain_mapping_logins, but after mapping the first domain, I only saw a record in the wp_domain_mapping (accurately referencing the appropriate site-id and url).

    As I did NOT restore my database to before the plugin was activated, I’m thinking this was all that actually changed. Suggestions on where I can look to determine what caused this?

    Thread Starter sdoss

    (@sdoss)

    Have not found the cause for this yet. I have 3 sites in a multi-site network (directory) using WordPress 3.0.4 on a lamp system. I’ve downloaded the most current version of WordPress MU Domain Mapping (0.5.4), moved the sunrise.php program to the wp-content directory. Edited wp-config to add the define statement for sunrise to turn it on. Easy-peasy.

    When I activate the plugin, either a network activation, or a single site activation, I lose all widgets. Not some. All. On all sites. Before I’ve even mapped. The only thing visible is content-area. So I think, ok, I have to map the domain to be able to see the entire page. So I map the domain. And the mapping works, that is, I plug in the wanted domain and get to the site. But the widgets are still gone. I’ve tried going in and updating a page. And going in and saving the widget. And still nothing.

    I can understand having to change any theme-related url’s. I don’t understand what to look for, or where to look, to fix this issue.

    Anyone who can help?

    Thread Starter sdoss

    (@sdoss)

    ok. Went back to step 1. Removed the plugin, the sunrise.php, commented the define statement for ‘sunrise, on’ in wp-config. Went back to Otto’s tutorial http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial and started all over. Pulled the ‘trunk’ version from Otto’s site. Created the mu-plugins directory under wp-content and placed the domain_mapping.php file in that directory. Placed sunrise.php in wp-content. Uncommented the define statement for sunrise in wp-config. Signed onto the main domain’s admin page, logged in as super admin, went to Domain Mapping under Super Admin. Placed my server’s ip address in the appropriate slot. Checked permanent redirect and user domain mapping checkboxes and hit save. Then, signed on to wp-admin under the subsite that I want to map. Went to Tools->Domain mapping, put the new domain name in, set it as primary, and updated. Then, in a new browser window, pulled up the site by the mapped name. The home page came up, with all images intact. Even the widgets were present.

    Now, I’m in the sub-sites admin (using domainname.com/wp-admin), and in the widget to adjust url’s there. The widget is a text widget, with links to other pages on this site. Previously, the links read http://www.mainsite.com/sub-site/page-name. I’ve changed them to http://www.mappedsite.com/page-name. And get a 404 not found.

    I tried editing my sub-site to change the domain name to the new mapped name, and the widget disappeared. So, the domain name on the edit page of my sub-site is still mainsite.com with a path of /sub-site/. Tried changing the site url to mappedsite.com, still getting 404 not found on my subsequent pages.

    I’ve tried updating on the permalinks page (per a post in this forum; my apologies, but I’ve read so many of them I can’t remember which one it was).

    So now, I’m totally lost. So here are a few questions, if someone would be so kind as to respond:

    1) Do I still need to use the trunk version of the plug-in? Or is the current downloadable version useable?

    2) Otto’s tutorial says nothing at all about activating the plugin through the plugins page under admin. Does it need to be activated?

    3) After mapping the domain under Tools>Domain Mapping, what else needs to change in regard to the subsite itself? (As in, going to the subsite, editing and changing domain name/home/url/download path/etc

    4) If you map mainsite.com/subsite to subsite.com, do you also have to map http://www.subsite.com?

    5) In lieu of answering the above, if someone can post a link to complete directions (and I know this is hard to do as alot probably hinges on the server that WordPress is installed on), I’d appreciate it.

    Otto’s tutorial *is* the directions.

    Do the pages work on the mapped domains *before* you map them?

    How did you park the domain on the server? You left that out in your recap. What host are you on? Yes, it matters.

    No, you no longer need the trunk version, the plugin’s been updated since then.

    And can you post a link? Often we can pinpoint the issue straightaway.

    Thread Starter sdoss

    (@sdoss)

    Andrea, thanks…

    Otto’s tutorial works great, for the first page. That was a snap.

    The pages all work beautifully when accessed by the maindomain/subsite.

    We’re hosting our own. It’s a Linux debian, apache2, mysql and php server. I’ve tried both the current version and the trunk version of the plug-in. I’ve currently disabled the mapping (removed the mu-plugins directory and the sunrise.php, and commented the define statement for sunrise in wp-config) and put the multisite back to where it was.

    The site’s url is http://www.ca-wp.com
    Sub-sites are /wnr, /giant, /rewards

    As for parking the domain – this is a registered domain that points to our server; on our server, there is a virtual host defined that points to the document root for apache.

    – this is a registered domain that points to our server; on our server, there is a virtual host defined that points to the document root for apache.

    Cool, that works. πŸ™‚ The IP answers to the main domain, so you should be good there.

    Odd. Those links should just… work.

    When you map the domain, you’re making an A record to the server, yes? And nothing else?

    Thread Starter sdoss

    (@sdoss)

    Ah. well.

    (don’t you just love it when someone starts like that?)

    We’re currently using our hosts file in lieu of pointing the A record, as, once we get the domains mapped, the whole thing is being picked up and moved to another server. The domains I need to map are wnr.com, giant.com, and myexpressrewards.com. wnr.com is a live domain currently pointing to a live site. myexpressrewards.com appears to have been registered through godaddy, but I’m unsure on that, as someone outside of my realm is responsible for that. And giant.com is registered, but currently pointing to wnr.com.

    But, entering the domain name (www.giant.com) in our hosts file, and pointing to our server, allows us to access OUR development instead of the live sites.

    I know. Convoluted. But it’s the world I live in :\

    And that would be why it’s not working. πŸ˜€ you’re trying to map them to your local dev site.

    Thread Starter sdoss

    (@sdoss)

    <sigh> so that means, I can’t truly test domain mapping until I go live??

    Thread Starter sdoss

    (@sdoss)

    but wait. I can map the ca-wp.com/giant subsite to http://www.giant.com, change my host file to have http://www.giant.com point to the multisite install and pull up the home page. Problem is getting to other pages on the site. Why wouldn’t it work if I changed the links that currently read
    www-ca-wp.com/giant/contact-us to http://www.giant.com/contact-us
    ???

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Multi site domain mapping and missing pieces of pages’ is closed to new replies.