• Something is wrong with the new version.
    I just updated it. If I log in and click from the dashboard to visit my site, I am not logged in anymore. But that only as administrator.

    So if I am a normal user, I’m still logged in, but if I change the language and click on the HOME URL, it says I’m not logged in even if I am, but if I click on a normal page I am logged in, I dont know how to describe it, it just broke something. http://www.heroesway.net

    I dont know how to describe it. Something very wrong :D!

    If I watch the paged in english It tells me I am logged in, but if I watch them in german my 2nd language, it says I am not.

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    Please make a test with Twenty Sixteen + Polylang only and check if the problem is still there.

    Thread Starter heymATIN

    (@heymatin)

    It works with Twenty Sixteen. I am using this code in my header so sometimes it shows me that I am logged in and sometimes it does not, it’s very random it has no real pattern.

    <?php if (is_user_logged_in()) { ?>
    <li>
    <a href="<?php echo esc_url(home_url('/')); ?>account" rel="nofollow">
    &nbsp;<?php echo esc_html($current_user->display_name); ?></a>
    </li>
    <li>
    <a href="<?php echo wp_logout_url(); ?>" title="Log in"><i class="fa fa-sign-out" aria-hidden="true"></i><?php _e('Log out') ?></a>
    </li>
    <?php } else { ?>
    <li><a href = "<?php echo wp_login_url(); ?>" title = "Logout"><i class ="fa fa-sign" aria-hidden = "true"></i><?php _e('Log in') ?></a></li>
    <?php } ?>

    Is it possible that something in the functions is messing it up ?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Login’ is closed to new replies.