ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

MSM multisite login causes ERR_TOO_MANY_REDIRECTS problem

July 29, 2012 7:08am

Subscribe [2]
  • #1 / Jul 29, 2012 7:08am

    Granet

    3 posts

    MSM multisite login causes ERR_TOO_MANY_REDIRECTS problem

    Hi,
    we have a problem very similar to that cited in the post:

    http://ellislab.com/forums/viewthread/217307/

    (which has currently no solution)

    The scenario:

    We have two sites: “sito1.prova.com” and “sito2.prova.com”. You can see attached to this post the two “index.php” files.

    We have added to the “config.php” file the line:

    $config[‘multi_login_sites’] = “http://sito2.prova.com/|http://sito1.prova.com/”;

    to have multiple login to both sites.

    The problem is that when we go to the frontend login ({exp:member:login_form}), fill the form and press “submit”, the browser return the error ERR_TOO_MANY_REDIRECTS (attached the image of the resut page in chrome).

    The weird thing is that if we swap the sites order in “$config[‘multi_login_sites’]” in config, that is writing:

    $config[‘multi_login_sites’] = “http://sito1.prova.com/|http://sito2.prova.com/”;

    things seem to work right (login ok and logged simultaneously in both sites

    Additional notes:
    - we have cleared all cookies in the browser before doing every test
    - problem has been verified in safari, chrome, firefox (we think is not browser dependent)
    - we don’t have htaccess (we are using index.php as site home)
    - we have tried the solution suggested by Dan Decker in the above forum post but with no solution
    - we tried with 3 and 4 sites and we could not figure out the “$config[‘multi_login_sites’] magic sites order” that makes things work right.

    EE Version 2.5.2 build 20120606
    MSM Version 2.1.3 build 20120529

    thank you

  • #2 / Jul 29, 2012 10:47am

    Granet

    3 posts

    An update:

    We have the module Transcribe (http://eeharbor.com/transcribe) installed for multilingual. I see that the problem can be related to the fact that in this case the site url returned from $this->EE->functions->fetch_site_index() at line 148 of expressionengine->modules->member->mod.member_auth.php is something like:

    http://sito1.prova.com/index.php/it/

    and this causes the array_search at line 150 (of the same file) to fail.

    Hope this can help

    thanks

  • #3 / Jul 30, 2012 2:29pm

    Lisa Wess

    20502 posts

    Hi, Granet -

    Did you need further assistance on this? I think you’ve narrowed it down and may have a solution, but I wanted to make sure.

    Thank you!

  • #4 / Jul 30, 2012 2:34pm

    Granet

    3 posts

    Yes,
    what is the correct way to define the config parameter:

    $config[“multi_login_sites”]

    ?

    Thanks

  • #5 / Jul 30, 2012 2:46pm

    Tom Jaeger

    497 posts

    Hi Granet,

    If you set Transcribe to “disabled” in the settings, does it then work as intended? (without the /it) segment.

    If so if you could drop us a line help [at] eeharbor.com we’ll see what we can do to get you up and running ASAP

    Thanks,
    -Tom

  • #6 / Jul 30, 2012 2:47pm

    Lisa Wess

    20502 posts

    Hi, Granet -

    Have you seen wiki article on this? It has the syntax for you to copy from:

    $config['multi_login_sites'] = "http://www.example.com/|http://www.sitetwo.com/|http://www.sitethree.com/";

    but I’d recommend reading the caveats on that page as well as you may need to include index.php in that config line.

    Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases