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.

Control Panel Redirects to Login Page; cannot login to CP

August 09, 2010 11:34am

Subscribe [1]
  • #1 / Aug 09, 2010 11:34am

    Ryan M.

    1511 posts

    ExpressionEngine 1.6.9, build 20100430.

    We have a development site that has been working fine at a subdomain until last week (this is on a VPS at Liquid Web - no other sites on this VPS; not using MSM). We can see and use the site fine, and we can see the control panel homepage - but we cannot login to the control panel. The site works fine (ht.p://dev.site.org), and I can see the admin control panel at ht.p://dev.site.org/system/index.php - I just can’t use the form to login here, because it always mysteriously redirects back to the login page, and never seems to set a session. After a login attempt, the URL reads: ht.p://dev.site.org/system/index.php?S=0&C=login&M=auth Looking directly in the DB I can see there is no session set in exp_sessions.

    I have a local copy of the site running, and am using the same DB via remote MySQL - and I can log into the control panel locally (that is, on my local machine, using ht.p://site.dev, set up in MAMP) just fine (we have a number of config overrides that allow us to work on the site locally). I can look in the DB and see that a session is set in exp_sessions.

    If I look in exp_sites, I see that all the information stored there refers to the local version of the site, but in my experience that has never made much difference if all of those values are being overridden in config.php. We’re not sure how this problem suddenly arose, and it may have something to do with the server rather than EE itself. Any ideas on how to check what is happening when we try to log in to the CP would be most helpful.

  • #2 / Aug 09, 2010 2:18pm

    Ryan M.

    1511 posts

    For crying out loud.

    I had added two php_value lines to .htaccess, like this:

    php_value post_max_size 20MB
    php_value upload_max_filesize 20MB

    Apparently, you only need the ‘M’:

    php_value post_max_size 20M
    php_value upload_max_filesize 20M

    The host noticed that the system thought the POST size was now 20 bytes - and the login form needs 99 bytes:

    PHP Warning: Unknown: POST Content-Length of 99 bytes exceeds the limit of 20 bytes in Unknown on line 0

    After removing the ‘B’s everything is working fine.

    Another ID10T error brought to you courtesy of mdesign.

    Please mark this as resolved!

  • #3 / Aug 09, 2010 3:12pm

    Ingmar

    29245 posts

    Glad to see you were able to solve this 😊 Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases