The MU forums have moved to WordPress.org

redirect loop with wp-signup.php 2.7 subdir setup upgrade (15 posts)

  1. horrorshow
    Member
    Posted 13 years ago #

    I've been scouring the forums looking for a solution for the wp-signup.php going into redirect loop. I am hoping that I just overlooked a solution for this.

    I upgraded from 1.5.1 to 2.7 of a subdir installation. 1.5.1 has been running great, but I felt that it was time to upgrade.

    I've checked the error_log, and I don't see any errors when the redirect loops happens.

    Here's the blog: http://achillesblog.com/wp-signup.php

    Has anyone been able to resolve this issue?

    thanks,
    Dennis

  2. pastorjack
    Member
    Posted 13 years ago #

    I had the same problem - clear your cookies and saved sessions in your browser. works like a charm!

  3. horrorshow
    Member
    Posted 13 years ago #

    pastorjack - that doesn't help unfortunately. Still in redirect loop. Please try: http://achillesblog.com/wp-signup.php

  4. VentureMaker
    Member
    Posted 13 years ago #

    Are signups enabled in the backend?
    Also, did you modify the signup page?
    Have any plugins, like extra fields on signup?

  5. horrorshow
    Member
    Posted 13 years ago #

    VentureMaker:
    "Allow new registrations" is set to 'Enabled. Blogs and user accounts can be created'
    The wp-signup.php has NOT been modified.
    I've tried removing all files from wp-content/mu-plugins and wp-content/plugins directories, and then accessing wp-signup.php from a browser. That didn't help either..

    Any other things that I can try? thanks.

  6. VentureMaker
    Member
    Posted 13 years ago #

    http://achillesblog.com/wp-signup.php I see another error, not loop now.

  7. horrorshow
    Member
    Posted 13 years ago #

    VentureMaker - I put some trace statements into the wp-signup page trying to see where it's bombing out.

    This is where it is dying:

    if( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) {
            wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
            die();
    }
  8. VentureMaker
    Member
    Posted 13 years ago #

    So, you're on WPMU 2.7, right?
    Do you have the following lines in your wp-config.php?

    define('DOMAIN_CURRENT_SITE', 'yourdomain.com' );
    define('PATH_CURRENT_SITE', '/' );
    define('BLOGID_CURRENT_SITE', '1' );

  9. horrorshow
    Member
    Posted 13 years ago #

    Yes, I have those three lines in wp-config.php

  10. VentureMaker
    Member
    Posted 13 years ago #

    Try adding these lines:

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

  11. horrorshow
    Member
    Posted 13 years ago #

    venturemaker - yeah, thanks for the suggestion, but that does't help either.. I am getting really bummed out by this upgrade.

  12. horrorshow
    Member
    Posted 13 years ago #

    I think I figured out the problem.
    wp-signup.php fails on:

    if( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) {
            wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
            die();
    }

    $current_blog->domain: achillesblog.com
    $current_blog->path: /
    $current_site->domain: AchillesBlog.com
    $current_site->path: /

    I changed the $current_blog->domain to AchillesBlog.com in the database, and the signups are working. I felt squeamish changing the value in the database directly, but I hope this fixes it.

    Looks like all blogs' domain column is defined as: achilesblog.com I am wondering if I need to change all of them to be "AchillesBlog.com"

    Any suggestions?

  13. saurabhjain
    Member
    Posted 13 years ago #

    even I am having the same problem when i auto upgraded from 2.7 to latest version..it was working finr

    and from yesterday its getting in redirect loop

    plz suggest how it can be solved............

    http://mypassion.in

  14. gypsybandito
    Member
    Posted 13 years ago #

    I am having the exact same problem after installing MU from scratch :(

    http://donewrong.com/wp-signup.php?new=donewrong.com

  15. leandroNavarro
    Member
    Posted 13 years ago #

    For me it worked with this correction in wpmu_settings.php (lin 117 approx):

    It fails at obtaining $current_blog as $domain is incorrect, instead I use $current_site->domain

    if( !$current_blog ) {
           $current_blog = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->blogs WHERE domain = %s", $domain) );

    Instead it should be:

    if( !$current_blog ) {
           $current_blog = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->blogs WHERE domain = %s", $current_site->domain) );

About this Topic

  • Started 13 years ago by horrorshow
  • Latest reply from leandroNavarro