• After upgrade to wp 4.0 when login to backend —
    Frontend: admin bar is not showing and vars like: is_user_logged_in()
    showing false.

    tried:
    disable of all plugins
    activated wp defualt 4.0 theme
    – No go!

    Anyone else also experiencing this problem?
    please help, advise. Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Are you using CloudFlare or any other form of caching mechanism? If so, clear the cache there.

    Thread Starter scriptgurus

    (@scriptgurus)

    no not using CloudFlare or any other form of caching.. very strange

    Thread Starter scriptgurus

    (@scriptgurus)

    after more testing.. the problem is something tp do with https / ssl site
    when on a url with https (checkout) site showing admin / and is_user_logged_in() shows true –
    so logged into backend its ok but on front (http) is_user_logged_in() is null
    In 3.+ this was working ok – there must be other users that use https that are having the same issue..

    Thread Starter scriptgurus

    (@scriptgurus)

    UPDATE
    FORCE_SSL_ADMIN set to true is the problem!
    set to false (all urls http) including admin backend
    and is_user_logged_in() to show true

    — BUT
    I run a subscription site
    I need to have ssl for admin logon checkout and ssl pages
    when user is logged on front in I need
    vars like is_user_logged_in() to be available + admin menu

    IN 3.+ this worked fine both http and https is_user_logged_in()
    and admin menu were available.

    Any one have a fix for this ?

    Any success fixing this? I’m having the exact same problem. After digging a bit I realized the problem is due to the cookies constants (in my case SECURE_AUTH_COOKIE) not being defined resulting in wp_parse_auth_cookie() failing to parse the cookie.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not Logged in On Frontend when logged in’ is closed to new replies.