• Resolved thierryyyyyyy

    (@thierryyyyyyy)


    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.

    1. 1st call, with “auth” cookies scheme, and wp_validate_auth_cookie return false (not “authorized”)
    2. 2nd call, with “logged_in” cookie, and wp_validate_auth_cookie return my user_id (=1 : I’m admin)
    3. 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…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    – Disable all plugins from database
    – Change the theme to default

    If all these does not work then redo the upgrade and manually upgrade the wordpress..

    Thanks,

    Shane G.

    Thread Starter thierryyyyyyy

    (@thierryyyyyyy)

    I had only 2 plugins : akismet and a “google analytic” plugin (not really realated to login)
    I change the wp_option->active_plugins to an empty string, the blog continued to run but I continued to be rejected from wp-admin …

    I already tried to overwrite all files by the wordpress-2.8 official files, still no success.

    Actually, the only difference will a standart install, is that I tried to have “domain cookies”. I put these 2 lines in my wp-config.php files since a long time, and it worked I think since wordpress 2.6 or about (+/- 0.1).

    define('SITECOOKIEPATH', '/' );
    define('COOKIE_DOMAIN', '.2diabolos.com');

    I just tried without these lines, it works !
    So now, I don’t have anymore the “domain cookies”…
    Someone have such a functionality working ?

    By the way : I’m not sure about the need of “Set up secret keys in WordPress 2.6+” ( https://www.ads-software.com/support/topic/170987?replies=3 )

    This is still needed in 2.8 ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I’m logged in but not “authorized” to go to admin panel’ is closed to new replies.