• Resolved phantasmix

    (@phantasmix)


    Having issues with the multisite…

    Here’s our setup:
    ? Main multisite domain is at https://www.domain.com
    ? Other multisites are in subdirectories: https://www.domain.com/sub1/, https://www.domain.com/sub2/ etc.
    ? I parked several domains on top of https://www.domain.com
    ? Using the plugin, I mapped those domains to subdirectories on the multisite
    ? If I don’t make the domains as primary, everything works fine
    ? If I make the normal URLs (www.sub1.com) as primary, then I can see the frontend site just fine, but getting this error when trying to reach that site’s dashboard:

    “The domain mapping plugin only works if the site is installed in /. This is a limitation of how virtual servers work and is very difficult to work around.”

    I don’t understand how it applies — our main site is installed in / and always has been (as far as I know!)

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter phantasmix

    (@phantasmix)

    Ipstenu,
    thank you for all your support (on a weekend no less!) but the client wants to use https://www.domain.com/sub1, /sub 2 etc.

    Go figure…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    So … wait, they’re fine with the subfolders and don’t want domain mapping? *head desk*

    Thread Starter phantasmix

    (@phantasmix)

    Exactly. Face palm.

    That wasn’t in the project brief, was just told this morning “Oh yeah, the old domains are going bye-bye anyway.”

    Sorry for wasting your time ??
    Hope there’s a lesson in there… somewhere.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    *LOL* Nah, it’s okay ?? I do this for free and fun anyway.

    Which probably means I’m a masochist.

    I’ve got exactly the same problem – did you ever find a solution to the problem? Tried disabling all plugins except wordpress-mu-domain-mapping – didn’t help.

    btw, tried to disable ALL plugins except wordpress-mu-domain-mapping.

    Ok, went to the file domain_mapping.php and make a output of “$current_site” just before the the error is thrown. It seems like $current_site->path is NOT set to “/” in my case, instead it’s set to nothing. A quick and dirty solution is to edit the plugin-file like this:

    change
    if ( $current_site->path != "/" )
    to
    if ( $current_site->path != "/" AND $current_site->path != '' )

    [EDIT]
    Better solution… Seems like the there is a problem in the wp_site. Go to the database, find the wp_site-table and set the “path”-column to /

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    hampus_b – Please make a new topic all your own ?? When the last post is more than a couple months ago, we reeeeealy like you to make your own topic, since WP versions roll over pretty fast, and many things change in a month.

    The plugin works just fine, provided you installed WP in root.

    Sorry ??

    Well, it didn’t work. Got “The domain mapping plugin only works if the site is installed in /.”-error even though installed in root. Guess the problem occurred from installing as subdomain MU and changing to folder-based, or the other way around. Well, solved anyways.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘The domain mapping plugin only works if the site is installed in /.’ is closed to new replies.