The MU forums have moved to WordPress.org

1 ... 3 4 5

Domain Mapping Plugin Updated (146 posts)

  1. hyrxx
    Member
    Posted 14 years ago #

    i have the same thing as king kong im pretty sure

  2. samuelbern
    Member
    Posted 14 years ago #

    This is a great plugin but I’m having some problems getting it to work. I’ve got wordpress mu installed on the domain sambern.co.uk. I’ve set up a sub domain stefan.sambern.co.uk and I’ve used the domain mapping plugin to map the domain stefangeorgiou.co.uk to the subdomain stefan.sambern.co.uk. However it goes into a loop of redirecting to all three domains. Have you got any ideas?

  3. kingkong954
    Member
    Posted 14 years ago #

    yeah... the problems have been too problematic. I've had to downgrade.

  4. wpmuguru
    Member
    Posted 14 years ago #

    The thing I've found at odd times is that the browser stores away the redirect and keeps doing it even after the redirect has been removed from the page.

    @samuelbern - which domain are you logging in on?

  5. samuelbern
    Member
    Posted 14 years ago #

    I can login to sambern.co.uk but I can't access the mapped domain stefangeorgiou.co.uk or the subdomain that the mapped domain is on top of stefan.sambern.co.uk it just keeps redirecting between the two in an infinite loop. In this order

    http://stefangeorgiou.co.uk
    http://stefan.sambern.co.uk/wp-login.php
    http://stefan.sambern.co.uk/login/
    http://stefangeorgiou.co.uk/login/
    http://stefangeorgiou.co.uk

    If I try and log into or visit any page on the site the same thing happens. Any help is appreciated. I'm pretty new at this.

  6. amatoro
    Member
    Posted 14 years ago #

    Hi everyone,

    I did a wpmu installing with subfolders option. I'm also using domain mapping. It works really great, but i want to have the "www" on the mapped domains.

    Can anyone help me?

    Thanks,

    Adriana

  7. wpmuguru
    Member
    Posted 14 years ago #

    MU with or without domain mapping will respond to a www request and internally redirect to the domain without the www. So, as long as you set up the www DNS to point to your main MU install, the domain mapping without the www should work.

  8. samuelbern
    Member
    Posted 14 years ago #

    Sorry if I posted this in the wrong place I'm pretty new at this. If I should of made this request somewhere else let me know.

    The directions I took to point the DNS where these

    http://kb.mediatemple.net/questions/63/Pointing+Multiple+Domains+to+the+Same+Alternate+Domain+Folder

    Sam

  9. miklb
    Member
    Posted 14 years ago #

    There has to be a way to get www in the domain yes? I thought I read that you needed to set a CNAME record for the WWW to point to the subdomain and an A record to point to the IP. So far, this hasn't worked, though I'm waiting for propagation. Is this the correct method?

  10. wpmuguru
    Member
    Posted 14 years ago #

    @samuelbern - that's for setting up 2 web sites/accounts that point to the same folder. I believe with MT you can just park the second domain on the first.

    @miklb - Yep use a CNAME for the www subdomain and point it to your WPMU install.

  11. miklb
    Member
    Posted 14 years ago #

    @wpmuguru when you say WPMU install, do you mean to the main site, or as I said to the subdomain in question?

    To be clear, I have sub1.example.com and example2.com. I have the A record for example2.com pointing to IP for example.com, and a CNAME record for http://www.example2.com set to sub1.example.com, but so far, it still strips the WWW.

  12. miklb
    Member
    Posted 14 years ago #

    Alas, I'm getting the same issues as reported, the ?dm_gotoadmin=1&back=%2Fwp-admin%2F redirect. Occasionally I can login if I try going to /wp-admin enough times. If I check the Redirect administration pages to original blog's domain, then no issues arise.

    I do have WP Super Cache, though it's set to not cache pages for logged in users, and I did turn it off while testing to no avail.

    I deleted all cookies related to both the domain and the original subdomain.

    I confirmed this in two separate browsers, as well as a 3rd party logging in with a different user.

    Suggestions?

  13. wpmuguru
    Member
    Posted 14 years ago #

    Set the CNAME for http://www.example2.com to point to example2.com instead of the original subdomain of the blog.

    After you have done that and it's propagated, can you let us know whether that corrected the redirect problem?

  14. miklb
    Member
    Posted 14 years ago #

    Just to be clear, the redirect issue I reported in my most recent post wasn't using any WWW, it was a straight A Record.

    If I set the CNAME for http://www.example2.com to example2.com, won't that just strip the WWW as well? In an ideal world, I'd like to be able to have http://www.example2.com as the viewed site, and http://example2.com redirect to http://www.example2.com. Does this need to be done via htaccess?

    Thanks for the response regardless, I know this is a PITA issue, and I'm working on moving the users to not using WWW, but I might have a few people that insist on it.

  15. hotohori
    Member
    Posted 14 years ago #

    Hi,

    I cannot create categories in sub blogs using firefox browser with domain mapping turned on, with Permanent redirect checked and Redirect administration pages uncheck. I can only create categories if Redirect administration pages is check. IE is working fine, I only have this problem when using firefox.

    Anybody experienced same issue like this? My setup is WPMU 2.8.6, Domain Mapping by Donncha 0.5.

  16. kingkong954
    Member
    Posted 14 years ago #

    Couple of issues here (2.9.1.1, .5 DM):

    The following template tag seems to be broken with this plugin (worked fine under 4.3):

    <?php wp_loginout(); ?>

    It always shows "Login" on a domain mapped site, whereas the normal behavior should have the text say "Logout" after a successful login.

    Additionally, users are being redirected to their profiles, not their primary blogs (the latter used to be the case before the upgrade).

  17. kingkong954
    Member
    Posted 14 years ago #

    It seems a Login cookie is not being established for the domain mapped URL.

  18. kgraeme
    Member
    Posted 14 years ago #

    What browser? If Firefox, check for this setting http://kb.mozillazine.org/Network.cookie.cookieBehavior

    It should be set to the default "0".

  19. kingkong954
    Member
    Posted 14 years ago #

    I am allowing 3rd party cookies (never changed those settings).

    The behavior is identical in FF3.6, IE6, Safari 4.

    Using a premium version of the domain mapping plugin, I was able to get multiple cookies to appear for both the original URL, and the domain mapped site.

    I would use that plugin, but it doesn't have the great admin redirect feature that this one does (which let's our school save tons of money on SSL certs).

  20. andrea_r
    Moderator
    Posted 14 years ago #

    Talk to the devs, see if they'll add it.

  21. kingkong954
    Member
    Posted 14 years ago #

    Andrea,

    That's what I'm trying now and they seem open to it.

    I just wish I had the skill-set to debug donncha's plugin more. I'm just too much of a newb... I spent all day trying but I've gotten no where :)

  22. megahertz
    Member
    Posted 14 years ago #

    I am having an issue with installing the plug-in on a windows server (Windows 2003, Apache 2.2.14, PHP 5.2.11). The plug-in works fine on a local OS X test install but on the Windows server I get php errors.

    WordPress database error Incorrect datetime value: '1265985001' for column 't' at row 1 for query INSERT INTOwp_domain_mapping_logins(id,user_id,blog_id,t) VALUES ('33529df022ca4dc27c7b2c2d576791d9','1','2','1265985001') made by require, require_once, do_action, call_user_func_array, remote_login_js

    When the plug-in is installed and domain mapped, then sites are added everything works great until I login to the back-end and then try and view a domain mapped site's homepage. As long as I am logged in I get errors trying to see the other domains.

    Going from the back-end to domain: http://domain.mapped.com/
    Would return URL that says something like.
    http://domain.mapped.com/?action=login&dm=3b2e948711b86aa0223e94286e0c7584&k=ba56ffeb0ff4e9ce2233cedfea411836&t=1639765410
    Webpage would say: Unknown login key

    I was able to solve this by changing lines #436 and #478 from domain_mapping.php to:
    $wpdb->insert( $wpdb->dmtablelogins, array( 'user_id' => 0, 'blog_id' => $current_blog->blog_id, 't' => date('Y-m-d H:i:s') ) );

    MySQL seems to fail to write the UNIX time stamp when 't' => time() so I tried date('Y-m-d H:i:s') which does work for me. Is this an issue with windows, php, or mysql? Is anyone else running this on a windows/apache server without issue?

  23. footose
    Member
    Posted 13 years ago #

    I have the exact same problem as above, but I changed those lines and it still gives me the Unknown login key error.

    Using IIS7 w/ mySQL

  24. JoeGermuska
    Member
    Posted 13 years ago #

    On a RedHat system using version 0.5.1 of DomainMapping, I was having the same error MegaHertz reported. Making the suggested change (using 't' => date('Y-m-d H:i:s') instead of 't' => time() seems to have straightened things out.

    FWIW, I was not having this problem on OS X (Snow Leopard) using MAMP.

  25. JoeGermuska
    Member
    Posted 13 years ago #

    Following up to my earlier post...

    Making the suggested change lets me log in correctly, but it leaves me with a related error when logging out from the "backend" of a secondary server: "Unknown logout key" (from line 504 of domain-mapping.php)

    I don't understand how this code can work:

    function remote_logout_loader() {
    	global $current_site, $current_blog, $wpdb;
    	$wpdb->dmtablelogins = $wpdb->base_prefix . 'domain_mapping_logins';
    	$protocol = ( 'on' == strtolower( $_SERVER['HTTPS' ] ) ) ? 'https://' : 'http://';
    	$hash = get_dm_hash();
    	$wpdb->insert( $wpdb->dmtablelogins, array( 'user_id' => 0, 'blog_id' => $current_blog->blog_id, 't' => date('Y-m-d H:i:s') ) );
    	$key = $wpdb->insert_id;
    	wp_redirect( $protocol . $current_site->domain . $current_site->path . "?dm={$hash}&action=logout&blogid={$current_blog->blog_id}&k={$key}&t=" . mt_rand() );
    	exit;
    }

    (lines 431-440 of domain-mapping.php)

    because the id column of wp_domain_mapping_logins is not auto_increment:

    if ( $wpdb->get_var("SHOW TABLES LIKE '{$wpdb->dmtablelogins}'") != $wpdb->dmtablelogins ) {
    			$wpdb->query( "CREATE TABLE IF NOT EXISTS <code>{$wpdb->dmtablelogins}</code> (
    				'id' varchar(32) NOT NULL,
    				'user_id' bigint(20) NOT NULL,
    				'blog_id' bigint(20) NOT NULL,
    				't' timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
    				PRIMARY KEY  (<code>id</code>)
    			);" );
    			$created = 1;
    		}

    (lines 82-91 of domain-mapping.php)

    At the moment, an error for people logging out of a secondary blog on the install is more annoyance than serious problem, but I wouldn't mind getting a handle on this if anyone can help me out.

  26. taewoo
    Member
    Posted 13 years ago #

    hi everyone.
    i have a 301/302 issue with XML RPC when the domain mapping plugin is active.. (forum thread here)

    can anyone shed some light?

1 ... 3 4 5

About this Topic