I’m logged in but not “authorized” to go to admin panel
-
I don’t know what I really changed, or perhaps it was just the upgrade to 2.8 …
I can’t access to the wp-admin page.In the index of my blog, the link appears as if I’m logged in (link is “administrate” and not “log in”), but when I follow the link (example.com/blog/wp-admin) I’m redirected to the “wp-login” page.
I tried to debug, and found a weird situation :
the “wp_validate_auth_cookie” function is called 3 times before redirecting to login.- 1st call, with “auth” cookies scheme, and wp_validate_auth_cookie return false (not “authorized”)
- 2nd call, with “logged_in” cookie, and wp_validate_auth_cookie return my user_id (=1 : I’m admin)
- 3rd call, like the first one, scheme “auth”, return false.
I push my debugging, I found that the function “get_currentuserinfo” call wp_validate_auth_cookie first without argument (so ‘auth’ scheme, then with the ‘logged_in’ cookie and scheme ‘logged_in’ )
I guessed that “get_currentuserinfo” is called by defaut very early in WordPress (in wp-setting for example)Then ‘wp-admin/admin.php’ (the main admin script) call again the wp_validate_auth_cookie and redirect to wp-login when not authorized…
- The topic ‘I’m logged in but not “authorized” to go to admin panel’ is closed to new replies.