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.

Fresh EE 2.5.1 Install, Unable to Login to CP

June 06, 2012 12:39pm

Subscribe [4]
  • #1 / Jun 06, 2012 12:39pm

    Phil Ecker

    78 posts

    I have a fresh install of EE 2.5.1, and have installed without any issues. But when I go to login to the CP, I type my username and password, but when I submit them, the page clears the fields but doesn’t login. I’ve deleted the site and reinstalled serval times with the same issue. I’ve tried logging in from Chrome and Safari, but experience the same issue. When I try to visit the site, I get a blank page (no theme) so I feel like everything is being installed correctly. Any thoughts would be greatly appreciated!

  • #2 / Jun 06, 2012 1:18pm

    Phil Ecker

    78 posts

    After reading another thread (http://ellislab.com/forums/viewthread/155255/), I enabled debugging and get the following error.

    A PHP Error was encountered

    Severity: Warning

    Message: date_default_timezone_get(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘America/Chicago’ for ‘CDT/-5.0/DST’ instead

    Filename: libraries/Core.php

    Line Number: 255

  • #3 / Jun 06, 2012 1:27pm

    This is Justin (@objectivehtml) on Twitter.

    I have seen that error before. Trying setting the timezone in your php.ini file.

    Reference
    http://php.net/manual/en/function.date-default-timezone-get.php

    PHP ini configuration
    http://php.net/manual/en/datetime.configuration.php

  • #4 / Jun 06, 2012 2:17pm

    Phil Ecker

    78 posts

    I’ve set the timezone in php.ini but still not able to login to the CP. It did however remove the error.

  • #5 / Jun 07, 2012 12:54pm

    Shane Eckert

    7174 posts

    Hey Phil,

    I am sorry to hear you are running into this snag.

    Just for a test, can you open /system/expressionengine/config/config.php and add or edit:

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

    This should do it if it’s what I think it is.

    Please let me know.

    Cheers,

  • #6 / Jun 08, 2012 4:43pm

    Phil Ecker

    78 posts

    Shane,

    I came across another thread that had the following which worked. Why would I need to have this in my config, and is do to something on the server? What would I need to change to be able to remove it. Thanks.

    $config['cookie_domain'] = "";
    $config['cookie_path'] = "";
    $config['cookie_prefix'] = "";
    $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";
  • #7 / Jun 12, 2012 1:21pm

    Robin Sowell

    13255 posts

    Hrm- first, excellent job of debugging on your end.

    Second- since it’s a fresh install, the cookie domain/path/prefix were likely blank already, so you’re not affecting anything there.

    The big changes are the ones affecting the IP check (secure forms basically checks that the ip that loads the page is the same as the one that submits it, require IP simply requires a valid ip exist to submit).

    None of those IP related settings are set according to your overrides by default.  So it’s pretty likely IP is related to the problem.  If your IPS provider has a rapidly revolving IP?  It can cause those security checks to fail.  Does that sound like what you’re experiencing?

    Ah- hrm.  Or- you’re on 2.5.1- which won’t recognize an ipv6 format as a valid ip.  If that’s the case?  Updating to 2.5.2 should solve the problem- it’s ipv6 compatible.  And thus a good idea to update to it in any case.

    So short answer- I strongly suspect your ip is either being seen as invalid or it’s rotating very quickly.  Updating will solve the first problem- with the second problem, you’d need to leave your settings adjusted to accommodate the rapidly changing ip.  Make sense?

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

ExpressionEngine News!

#eecms, #events, #releases