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.

Log in tries to use local.example.com and not current environment

October 02, 2012 1:47pm

Subscribe [2]
  • #1 / Oct 02, 2012 1:47pm

    Doug E

    98 posts

    I am using a local, development and production environment. I don’t use a bootstrap file, rather config/database/index/admin files for each environment (MSM site so bootstrap does not work).

    Everything works fine (registration, the site, logging into CP, logging out) BUT when you try and log in to the site (non-cp) it will try and connect to the local environment:
    Login page:
    https://www.missionfrontiers.org/members/login
    eventaully goes here:
    http://local.missionfrontiers.org/?ACT=13&RET=aHR…blahblahblah…bnRpZXJzLm9yZy9ob21l&cur=2&orig=0&multi=0&orig_site_id=1

    If you go to the correct domain, you are logged in so the log in does work.

    I’ve checked my admin/index/config files, using Deploy helper to check all the possible settings where it could be referencing local, but nada. The only idea I had was the multiple site login config for MSM sites. I did have local in there, but took it out and am still getting the error. Could that be why and it just takes some time for EE to stop using that? Does that run the user through the login on every site on that list or just drop a cookie that gives the user access to all sites?

    (using EE 2.5.2 with Solspace User)

  • #2 / Oct 02, 2012 2:45pm

    Doug E

    98 posts

    Figured it out. It was the config line: $config[‘multi_login_sites’] = “/”;

    I had all the env sites in there and they need to be environment specific:
    dev.example.com|dev.example2.com

    not
    local.example.com|dev.example.com|local.example2.com|dev.example2.com

    If it can’t connect to any of those sites you list in there, you’ll probably get that error.

  • #3 / Oct 03, 2012 5:02pm

    Shane Eckert

    7174 posts

    Hey Doug E,

    Awesome! Glad you got it figured out!

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases