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.

Login problems after server move

August 01, 2010 2:12pm

Subscribe [5]
  • #1 / Aug 01, 2010 2:12pm

    shinka

    147 posts

    I have been developing a site, it’s still using 2.0 as I’ve been having problems with 2.1 and Structure, and so far this is more stable.

    Anyway, I’ve just transferred the site to a new server, and I’ve changed the database and path information in config.php and database.php, at least all that I could find, and it won’t let me login. I can get to the login page by accessing the system folder, but once there, it looks like it’s redirecting me to the home page, but then back out to the login form again.

    Have I missed a step?

  • #2 / Aug 01, 2010 6:04pm

    shinka

    147 posts

    From a little more work I’ve done:
    I went to index.php/member/login in an attempt to login and it redirected me to my old site. I just can’t figure out where that old URL is being stored. I’ve even gone through the database tables, but have not yet come across a relevant entry.

  • #3 / Aug 02, 2010 1:31am

    John Henry Donovan

    12339 posts

    shinka,

    Is this a MSM site?

    Can you run our Server Wizard on your new server please

  • #4 / Aug 02, 2010 10:21am

    shinka

    147 posts

    It’s not an MSM site. Ran the Server Wizard before I installed it, everything was green.

  • #5 / Aug 02, 2010 12:45pm

    Sue Crocker

    26054 posts

    Did you remember to clear your cache files? How about trying with a different browser?

  • #6 / Aug 02, 2010 12:56pm

    shinka

    147 posts

    Unfortunately, I didn’t remember to delete the cache files when I first accessed the site, but then deleted the cache files later with no real change.

  • #7 / Aug 02, 2010 6:59pm

    Brandon Jones

    5500 posts

    Hi shinka,

    First can you confirm that there’s no .htaccess file in play on the new server? Then, try forcing sessions (instead of cookies+sessions) on the back-end by adding this to /system/expressionengine/config/config.php:

    $config['admin_session_type'] = "s";

    EDIT: Also ensure that you’ve cleared your browser cookies and cache after making this change and before attempting to login again.

  • #8 / Aug 02, 2010 7:08pm

    shinka

    147 posts

    Browser cookies cleared, no .htaccess files, forced sessions…no change.

  • #9 / Aug 02, 2010 8:38pm

    Brandon Jones

    5500 posts

    Back in your config.php, make sure these are set properly for the new site:

    $config[‘cp_url’]
    $config[‘base_url’]

  • #10 / Aug 02, 2010 8:54pm

    shinka

    147 posts

    Yes, I have done that.

  • #11 / Aug 03, 2010 2:30am

    John Henry Donovan

    12339 posts

    shinka,

    I can get to the login page by accessing the system folder, but once there, it looks like it’s redirecting me to the home page, but then back out to the login form again.

    Do you have any .htaccess file in place?

    In your config.php look for the following URI PROTOCOL

    $config['uri_protocol']    = 'AUTO';

    and try changing that to PATH_INFO

    $config['uri_protocol']    = 'PATH_INFO';
  • #12 / Aug 03, 2010 12:24pm

    shinka

    147 posts

    I did have the .htaccess files in there when I first moved over, but deleted them awhile ago.

    Changed the URL Protocol to PATH_INFO, but still no difference.

    I’d be happy to give someone access, but I’d like this figured out soon. Otherwise,  I’m going to find another hosting option.

  • #13 / Aug 03, 2010 12:53pm

    Sue Crocker

    26054 posts

    shinka, please check your email in a few minutes.

  • #14 / Aug 03, 2010 9:12pm

    Brandon Jones

    5500 posts

    Hi shinka,

    Your control panel was still trying to set a cookie for .bluestem.shinkadesign. I am not sure why forcing only sessions did not allow you to login and fix this, but what I did was simply override the cookie domain via config.php:

    $config['cookie_domain'] = ".bluestembedandbreakfast.com";

    Once logged in I submitted that as the cookie domain so the config override was no longer needed. You should be good to go.

  • #15 / Aug 03, 2010 10:08pm

    shinka

    147 posts

    I figured there was something fishing going on with my cookies.
    Thanks for taking the time to fix it, thank you very much!

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

ExpressionEngine News!

#eecms, #events, #releases