• Resolved pfraterdeus

    (@pfraterdeus)


    I’ve run into a problem with domain-mapping on a new site.
    In a nutshell:

    Last week I pointed “dev.trappistcaskets.com” at our WPMU install which is running under apache on its own separate IP address. (There are four or five other WPMU sites already running there)

    This was to test the process, adding “dev.trappistcaskets.com” to the Domain Mapping panel in the Super Admin. Everything worked great. No problems at all for a week or longer.

    So, When the client agreed to go live with the site, on Friday night I did the same with ‘www.trappistcaskets.com’, switch the DNS and went to sleep. When I woke up at 5am, I checked the site, and found a very peculiar result.

    The home page for the site comes up, but every other page or link within the site gets a 404.
    I surmise that something bad happened with the domain mapping, as I now have the same problem with every other blog which is domain mapped.

    The base address for the site is “dev-trappist-caskets.slowprint.org” and I can log in there without trouble.

    However, I now note that if I go to the Domain Mapping panel, and click on the blog ID, I get a 404 on
    /wp-admin/wpmu-blogs.php?action=editblog&id=13

    Not good!

    But even using the base address, the links are borked. In my server logs it seems that the url is passed to apache without any rewriting at all. I’m suspicious of the vhost configs, and possibly the rewrite stuff in .htaccess…

    I suspect that it will turn out to be a simple config problem, but I haven’t been able to find it!

    I’m against a deadline of as soon as possible, of course 😉

    All the best from over here!

    Peter
    semiotx.com
    slowprint.com

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Did you change the domain mapping on the main site or a subsite?

    Also, which plugin are you using? There are a couple out there.

    Any chance your host did an upgrade of any kind? Sometimes they wipe out changes. Sounds like your htaccess file isn’t even being read any more.

    Thread Starter pfraterdeus

    (@pfraterdeus)

    Hi Andrea
    Well I’m the host too 😉
    I’m trying to imagine what could have transpired.
    When do a ‘git diff’ on the wpmu directory it’s completely non-interesting…

    Same thing with /etc/httpd/

    I’m wary of digging into the DB…
    Will have to wait til I get back to the laptop to look up the plugin.

    Many thanks for your thoughts

    P

    n my server logs it seems that the url is passed to apache without any rewriting at all. I’m suspicious of the vhost configs, and possibly the rewrite stuff in .htaccess…

    Then look at Apache. 😉

    The db doesn;t do rewrites, so it’s a wast of time diving in there. Go to a site, resave the permalinks. Does it work? Then yay.

    No worky? Then Apache time. Chekc mod_rewrite, check and see if any vhost configs got rewritten. (Are you on plesk by chance?)

    Thread Starter pfraterdeus

    (@pfraterdeus)

    Thanks Andrea for your thoughts and suggestions!

    This is Donncha’s Domain Mapping extension.

    OK. Resetting the permalinks to default has made the standard navigation work again, but none of our custom links (named aliases, etc) or links in content are resolving.

    I just can’t see what in the world could have made this all break site wide (across ALL my WPMU sites)
    For the record, we’re running WP 3.0.1 on LAMP etc etc

    All has been fine and lovely until I made one single addition to the Domain Mapping… Still combing through Apache vhost configs looking for anything strange.

    When I run /usr/sbin/httpd -t
    I get an odd notice about a missing server.crt file, but that has nothing at all to do with WordPress or the rewrite engine (AFAIK!)

    This is very frustrating!

    I don’t know that it’s related, but error_log has a lot of these reports:

    [Mon Nov 01 09:51:11 2010] [error] [client 173.21.116.200] PHP Warning: Missing argument 3 for get_custom_field(), called in /home/wordpress_mu/wordpress-mu/wp-content/themes/trappistcaskets/sidebar-default.php on line 9 and defined in /home/wordpress_mu/wordpress-mu/wp-content/themes/trappistcaskets/functions.php on line 28
    [Mon Nov 01 09:51:11 2010] [error] [client 173.21.116.200] PHP Warning: Missing argument 2 for component(), called in /home/wordpress_mu/wordpress-mu/wp-content/themes/trappistcaskets/sidebar-default.php on line 10 and defined in /home/wordpress_mu/wordpress-mu/wp-content/themes/trappistcaskets/functions.php on line 277

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Sounds like your .htaccess is no longer redirecting correctly. Check if Mod_rewrite is still on.

    Thread Starter pfraterdeus

    (@pfraterdeus)

    Well… I knew it would be something simple and stupid 😉

    Doh (Slaps self in forehead)
    When I created the new vhost, I neglected to include AllowOverride All in the directory directive.

    Sheesh.
    Thanks for all the input.
    I’m sure I’ll be back again 😉

    Peter
    [edit – no sigs allowed as per forum rules. The Mod Team]

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding new Domain Mapping Borks all mapped domain blogs’ is closed to new replies.