We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Issues on upgrade path from EE 2.5 to 5.0 - can't login- login page reloads

How Do I?

fensterbaby's avatar
fensterbaby
289 posts
about 7 years ago
fensterbaby's avatar fensterbaby

I am starting on a path to get a EE 2.5.5 site up to date with 5.X

Currently upgraded to 2.9.3

Front end seems fine but I am unable to login. It just reload the login page.

Disabled the login redirect that Structure was set for. Cleared Caches prior to upgrade Cleared browser cache

Added the following to config.php $config[‘cookie_domain’] = ‘aktest4.com’; $config[‘admin_session_type’] = ‘s’; $config[‘secure_forms’] = ‘n’;

Added this to login form <input type=”hidden” name=”XID” value=”the xid hash”>

And now I’m out of ideas. Have scoured online but nothing I have found works.

Anybody can help me out?

THnaks

Greg

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
6 years ago
Robin Sowell's avatar Robin Sowell

You covered the main bases- it sounds like it’s not able to set cookies. There should be a period at the beginning of that cookie domain, so that could be it

$config['cookie_domain'] = '.aktest4.com';

Make sure extensions are disabled via the config as well.

A lot of times if you use your browser debug and look at the headers, you can see the problem. For example, it might be posting to www and being rewritten to no www and you’re losing the post or something off when it tries to set the cookies. The debug can point you in the right direction.

       
fensterbaby's avatar
fensterbaby
289 posts
6 years ago
fensterbaby's avatar fensterbaby

Added the . to the cookie_domain but that didn’t help.

TRied to display headers but no headers are displayed

       
fensterbaby's avatar
fensterbaby
289 posts
6 years ago
fensterbaby's avatar fensterbaby

Here are the headers but I don’t really know how to interpret all of this

Request URL: http://www.aktest4.com/admin.php?/cp/login

Request Method: GET

Status Code: 200 OK

Remote Address: 192.185.78.171:80

Referrer Policy: no-referrer-when-downgrade

HTTP/1.1 200 OK

Server: nginx/1.14.1

Date: Fri, 15 Feb 2019 03:25:24 GMT

Content-Type: text/html; charset=UTF-8

Content-Length: 799

Connection: keep-alive

X-Frame-Options: SameOrigin

Expires: Mon, 26 Jul 1997 05:00:00 GMT

Pragma: no-cache Set-Cookie: exp_last_visit=1550182044; expires=Sat, 15-Feb-2020 03:25:24 GMT; path=/; domain=.aktest4.com; httponly

Set-Cookie: exp_last_activity=1550201124; expires=Sat, 15-Feb-2020 03:25:24 GMT; path=/; domain=.aktest4.com; httponly

Set-Cookie: exp_csrf_token=53bbecf55fa6980872ac410afb1f7dee24678ad1; expires=Fri, 15-Feb-2019 05:25:24 GMT; path=/; domain=.aktest4.com; httponly

Last-Modified: Fri, 15 Feb 2019 03:25:24 GMT

Vary: Accept-Encoding

Content-Encoding: gzip

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3

Accept-Encoding: gzip, deflate

Accept-Language: en-US,en;q=0.9

Cache-Control: no-cache

Connection: keep-alive

Cookie: exp_last_visit=1549737213; Request URL: http://www.aktest4.com/admin.php?/cp/login

Request Method: GET

Status Code: 200 OK

Remote Address: 192.185.78.171:80

Referrer Policy: no-referrer-when-downgrade

HTTP/1.1 200 OK

Server: nginx/1.14.1

Date: Fri, 15 Feb 2019 03:25:24 GMT

Content-Type: text/html; charset=UTF-8

Content-Length: 799

Connection: keep-alive

X-Frame-Options: SameOrigin

Expires: Mon, 26 Jul 1997 05:00:00 GMT

Pragma: no-cache Set-Cookie: exp_last_visit=1550182044; expires=Sat, 15-Feb-2020 03:25:24 GMT; path=/; domain=.aktest4.com; httponly

Set-Cookie: exp_last_activity=1550201124; expires=Sat, 15-Feb-2020 03:25:24 GMT; path=/; domain=.aktest4.com; httponly

Set-Cookie: exp_csrf_token=53bbecf55fa6980872ac410afb1f7dee24678ad1; expires=Fri, 15-Feb-2019 05:25:24 GMT; path=/; domain=.aktest4.com; httponly

Last-Modified: Fri, 15 Feb 2019 03:25:24 GMT

Vary: Accept-Encoding

Content-Encoding: gzip

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3

Accept-Encoding: gzip, deflate

Accept-Language: en-US,en;q=0.9

Cache-Control: no-cache

Connection: keep-alive

Cookie: exp_last_visit=1549737213; studio_tracker=%7B%220%22%3A%22chelsea-repertory-company%2Fchelsea-rep-labs%22%2C%221%22%3A%22contact-us%22%2C%222%22%3A%22chelsea-repertory-company%2Fchelsea-rep-playwriting-lab%22%2C%223%22%3A%22chelsea-repertory-company%22%2C%22token%22%3A%226d0b16e05f5009227548dad1c7c6b59f%22%7D;

studio_last_visit=1549903743;

studio_last_activity=1549908062;

PHPSESSID=56f9de20bc93bb5be0d3534c503743a8;

studio_last_visit=1549908062;

studio_tracker=%7B%220%22%3A%22index%22%2C%221%22%3A%22chelsea-repertory-company%2Fchelsea-rep-labs%22%2C%222%22%3A%22contact-us%22%2C%223%22%3A%22chelsea-repertory-company%2Fchelsea-rep-playwriting-lab%22%2C%224%22%3A%22chelsea-repertory-company%22%2C%22token%22%3A%22a11f64205f8338e0d77c57787ded7763%22%7D;

studio_last_visit=1549908062;

studio_last_activity=1550181455;

studio_last_activity=1550181717;

exp_last_activity=1550182044;

exp_tracker=%7B%220%22%3A%22class-registration-admissions%2Fadmissions-application%22%2C%221%22%3A%22class-registration-admissions%2Fadmissions-prerequisites%22%2C%222%22%3A%22index%22%2C%223%22%3A%22our-classes%2Fmeisner%22%2C%224%22%3A%22studio%2Flocation%22%2C%22token%22%3A%2228bb2b714b810ab18e397bb4beb435ce%22%7D; exp_last_visit=1550182044;

exp_last_activity=1550201106;

exp_csrf_token=53bbecf55fa6980872ac410afb1f7dee24678ad1 DNT: 1

Host: www.aktest4.com

Pragma: no-cache

Referer: http://www.aktest4.com/admin.php?S=5fb1634303d401b9c20c7e781257024de4e75613&D=cp&C=addons_extensions

Upgrade-Insecure-Requests: 1

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.27 Safari/537.36 /cp/login: studio_tracker=%7B%220%22%3A%22chelsea-repertory-company%2Fchelsea-rep-labs%22%2C%221%22%3A%22contact-us%22%2C%222%22%3A%22chelsea-repertory-company%2Fchelsea-rep-playwriting-lab%22%2C%223%22%3A%22chelsea-repertory-company%22%2C%22token%22%3A%226d0b16e05f5009227548dad1c7c6b59f%22%7D;

studio_last_visit=1549903743;

studio_last_activity=1549908062;

PHPSESSID=56f9de20bc93bb5be0d3534c503743a8;

studio_last_visit=1549908062;

studio_tracker=%7B%220%22%3A%22index%22%2C%221%22%3A%22chelsea-repertory-company%2Fchelsea-rep-labs%22%2C%222%22%3A%22contact-us%22%2C%223%22%3A%22chelsea-repertory-company%2Fchelsea-rep-playwriting-lab%22%2C%224%22%3A%22chelsea-repertory-company%22%2C%22token%22%3A%22a11f64205f8338e0d77c57787ded7763%22%7D;

studio_last_visit=1549908062;

studio_last_activity=1550181455;

studio_last_activity=1550181717;

exp_last_activity=1550182044;

exp_tracker=%7B%220%22%3A%22class-registration-admissions%2Fadmissions-application%22%2C%221%22%3A%22class-registration-admissions%2Fadmissions-prerequisites%22%2C%222%22%3A%22index%22%2C%223%22%3A%22our-classes%2Fmeisner%22%2C%224%22%3A%22studio%2Flocation%22%2C%22token%22%3A%2228bb2b714b810ab18e397bb4beb435ce%22%7D; exp_last_visit=1550182044;

exp_last_activity=1550201106;

exp_csrf_token=53bbecf55fa6980872ac410afb1f7dee24678ad1 DNT: 1

Host: www.aktest4.com

Pragma: no-cache

Referer: http://www.aktest4.com/admin.php?S=5fb1634303d401b9c20c7e781257024de4e75613&D=cp&C=addons_extensions

Upgrade-Insecure-Requests: 1

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.27 Safari/537.36 /cp/login:

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
6 years ago
Robin Sowell's avatar Robin Sowell

It’s setting cookies ok and I don’t think you’re losing the post in a redirect.

Are you sure you’re disabling extensions?

$config['allow_extensions'] = 'n';
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.