After adding Domain, the page refreshes and nothing happens. Checked the FAQ, that's not it.

Hey there

I tried installing Domain Mapping, which worked fine. But if I try to add a domain and click add, the page reloads and everything stays the same.

The FAQ says, the SUNRISE-constant might be defined to low in the wp-config.php, which isn’t the case. Also I’ve tried with and without multi-domains (renamed dm_sunrise.php and sunrise.php), and it didn’t work either way.

I have a clean WP 3.4.2 install without any other plugins or themes installed.

Any ideas what to try?

Thanks.

  • deniaz
    • New Recruit

    Hi Kimberly

    Thanks! :slight_smile:

    I guess you mean the content of sunrise.php and wp-config.php?

    Well, the part from wp-config.php can be found here, sunrise.php here.

    I hope so! I’ve set WP_ALLOW_MULTISITE to true, created the network (first i tried subdomain, then sub-folder. I’m now running the multi-site as sub-folder). Basically I did what the “Create A Network”-Guide says.

    Regards

  • Kimberly
    • Champion of Loops

    Are you able to create sites on the network? Just checking to make sure the multisite settings are ok.

    Where are you adding the domain (which site)?

    Do you know how to find your error log? or to turn on debug to see if there is an error when you add the domain?

  • deniaz
    • New Recruit

    Yes, I am able to create sites.

    The site name is “foo” – very creative, I know :wink: Is this what you’re asking?

    debug is on, no error on domain addition.

    Apache Error Log doesn’t show anything, Access Log shows the following:

    192.168.56.1 - - [18/Sep/2012:18:08:17 +0200] "GET /foo/wp-admin/images/white-grad-active.png HTTP/1.1" 200 513 "http://playground.local-web.com/foo/wp-admin/tools.php?page=domainmapping" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/12.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"

    192.168.56.1 - - [18/Sep/2012:18:08:17 +0200] "POST /foo/wp-admin/tools.php?page=domainmapping HTTP/1.1" 200 4627 "http://playground.local-web.com/foo/wp-admin/tools.php?page=domainmapping" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/12.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"

    I hope this helps you in any way.

  • Kimberly
    • Champion of Loops

    I’ve asked Barry to stop by and give his input on this one.

    Where are you adding the domain (which site)?

    The site name is “foo” – very creative, I know :wink: Is this what you’re asking?

    no, sorry I was not clear. I meant to ask if you were trying to enter your settings on a subsite or the main settings.

  • deniaz
    • New Recruit

    OH!

    I have just added the “Custom Domain” http://domain-one.com to map to “Original Blog Address” http://playground.local-test.com on the Main Site and this works!

    After doing so, I went to my Subsite “Foo” and mapped http://domain-two.com to http://playground.local-web.com/foo/- and now this worked as well!

    I didn’t change anything on the WP setup but rebootet my browser/laptop AND the webserver (it’s a virtual machine on my laptop).

    Strange! But still, this seems to be a common issue?

    Btw, after adding a domain I can not add a second domain. Is this correct? :slight_smile:

    Thanks for your help.

    PS:

    I’ve marked the issue as resolved, eventhough I think there IS an issue as the behaviour is unexpected and changed without any configuration.

  • Barry
    • DEV MAN’s Mascot

    I tried installing Domain Mapping, which worked fine. But if I try to add a domain and click add, the page reloads and everything stays the same.

    It sounds like the table wasn’t initially created,

    Btw, after adding a domain I can not add a second domain. Is this correct? :slight_smile:

    If that’s the setting you have in the config file (which is the default) then yes, that’s correct.

  • Barry
    • DEV MAN’s Mascot

    If you haven’t added anything to your wp-config.php then it’s limited to a single domain per site. If you add the following somewhere in it then you will be able to use multiple domains per site.

    define('DOMAINMAPPING_ALLOWMULTI', true);

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.