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.

Can't Login After Moved Expression Engine, Control Panel Endless Redirect

July 02, 2012 7:36pm

Subscribe [2]
  • #1 / Jul 02, 2012 7:36pm

    webb_design

    11 posts

    I’m using ExpressionEngine v2.3.1 and php5.3.6

    I’ve copied the site to a local development site that I’ve setup as
    http://loc.airshipventures.com/
    (only on my local machine)

    The front end is working fine.

    However when I try to go to the control panel login, I get
    “Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”

    When I look at the page in firebug, it’s endlessly redirecting to itself:
    http://loc.airshipventures.com/system/index.php?S=0&D=cp&C=homepage
    with a 302 Found redirect


    I tried adding the following in my config.php

    $config['cookie_domain'] = ".airshipventures.com";
    $config['cookie_prefix'] = "airshipventures";
    $config['cookie_path'] = "";
    $config['admin_session_type'] = "c";
    $config['user_session_type'] = "c";
    $config['require_ip_for_login'] = "n";
    $config['require_ip_for_posting'] = "n";
    $config['secure_forms'] = "n";

    with no result.

    It seems like it’s not picking up the cookies or something.

    In my config I also have

    $assign_to_config['airship_webroot'] = '/home/ben/sitesperm/airship/site/pub/';

    which is the correct path to my local site.

    Any ideas on how I can get the login page to work?

    Thanks

     

  • #2 / Jul 03, 2012 4:27pm

    Dan Decker

    7338 posts

    Hi Ben,

    Thanks for posting to the Forums!

    First thing, read and review Moving ExpressionEngine to Another Server. Use that as a guide to double check all your URL and path settings are correct after the move.

    I’ve copied the site to a local development site that I’ve setup as
    http://loc.airshipventures.com/
    (only on my local machine)

    How have you set this to only direct to the localhost? In /etc/hosts?

    Change this in /system/expressionengine/config/config.php

    $config['cookie_domain'] = "";
    $config['cookie_prefix'] = "";

    Just blank it out. Let ExpressionEngine try to sort it out on its own for now.

    And lastly:

    $assign_to_config['airship_webroot'] = '/home/ben/sitesperm/airship/site/pub/';

    If you have that bit in config.php then you need to use the $config array directly. $assign_to_config is for index.php and admin.php

    $config['airship_webroot'] = '/home/ben/sitesperm/airship/site/pub/';

    In what context are you using that config variable? EE would have no idea what to do with “airship_webroot” as one of its config items.

    Just a bit more information and I’m sure we can get you sorted and up and running!

    Cheers,

     

     

  • #3 / Jul 03, 2012 6:22pm

    webb_design

    11 posts

    Hi Dan,

    Change this in /system/expressionengine/config/config.php

    $config['cookie_domain'] = "";
    $config['cookie_prefix'] = "";

    I tried adding this to config.php. I’m still having the same problem.

    Here’s some more information about the setup.

    loc.airshipventures.com is setup as a virtualhost in apache:

    <VirtualHost *>
     DocumentRoot "/Users/ben/SitesPerm/airship/site/pub/"
     ServerName loc.airshipventures.com
    </VirtualHost>

    And in /etc/hosts

    127.0.0.1 loc loc.airshipventures.com

    It looks like the directory structure for the site has been customized a bit (I didn’t set this site up).
    /pub/index.php
    /pub/system/index.php
    /pub/themes/—theme files
    /sys/—all other ee files
    /tpl/—tpl files

    pub is the public directory. I think that index.php corresponds to the regular ee index.php and system/index.php is the same as admin.php

    pub/index.php has the line

    $assign_to_config['airship_webroot'] = '/home/ben/sitesperm/airship/site/pub/';

    Also in pub/index.php

    $system_path = '../sys';

    I can send the config files or a zipped up version of the site with the db names/passwords stripped if that helps.

    I tried doing some debugging and it gets to /sys/expressionengine/libraries/Core.php line 338 before going into the endless loop:

    // Show the control panel home page in the event that a
    // controller class isn't found in the URL
    if ($this->EE->router->fetch_class() == 'ee' OR
     $this->EE->router->fetch_class() == '')
    {
     $this->EE->functions->redirect(BASE.'&C=homepage');
    }
  • #4 / Jul 05, 2012 3:22pm

    Dan Decker

    7338 posts

    Hi Ben,

    Ahhh, yeah, that’s some pretty custom juju with the directory structure, though nothing out of hand.

    But that setup leads me to /system/expressionengine/config/config.php

    Specifically:

    $config['site_url'] = '';
    $config['cp_url'] = '';

    Double check those values reflect your local domain setup.

    Are you running on OS X by chance?

    Cheers,

  • #5 / Jul 05, 2012 4:44pm

    webb_design

    11 posts

    Dan,
    I am indeed running on OS X.

    I cp_url was set to:

    $config['cp_url'] = "http://" . $_SERVER['HTTP_HOST'] ."/system/index.php";

    I didn’t see an entry for site_url, so I added one:

    $config['cp_url'] ="";
    $config['site_url'] = "";

    Then to:

    $config['cp_url'] ="http://" . $_SERVER['HTTP_HOST'] ."/system/index.php";
    $config['site_url'] = "http://" . $_SERVER['HTTP_HOST'];

    Then to:

    $config['cp_url'] ="http://loc.airshipventures.com/system/index.php";
    $config['site_url'] = "http://loc.airshipventures.com/";

    Still no dice.

     

  • #6 / Jul 06, 2012 1:25pm

    Shane Eckert

    7174 posts

    Hey webb_design,

    Is this only on a local host or is there a remote host we could login and take a look at?

    This seems to be system related but would like to see this in real time.

    Thank you,

  • #7 / Jul 09, 2012 3:35pm

    webb_design

    11 posts

    I’ve moved this onto our public server for you to take a look at. It’s encountering the same error.

    I will PM you the creds.

  • #8 / Jul 09, 2012 3:50pm

    webb_design

    11 posts

    I just tried sending you guys a private message, but it says your message boxes are full. How do I get in touch with you?

  • #9 / Jul 10, 2012 7:51pm

    webb_design

    11 posts

    Hi Guys,
    What’s going on with this? How can I send you the login credentials?

    Thanks,
    Ben

  • #10 / Jul 11, 2012 12:10pm

    Dan Decker

    7338 posts

    Hi Ben,

    Hi Guys,
    What’s going on with this? How can I send you the login credentials?

    Thanks,
    Ben

    As you’ve discovered, we have our PMs disabled because that is not a secure means to send up login details. When we need to login, we send you an email with a request. With that, be on the lookout for an email from EllisLab.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases