• There’s a bug. I have installed this plugin on a new installation with no cache plugins at all and this is what happens.

    Background Info
    Wordpress 4.7.3
    Plugin version 3.4.5
    Single level of membership setup
    Free membership enabled
    Page A and Page B are restricted to members only

    I open browser, clear cache completely, go to the website and then navigate to Page A. I am told this is restricted content, so I click login link and enter my credentials. I am then taken to the home page. I navigate to Page A again and am asked to login. If I ignore this and navigate to Page B I am able to view content.

    This appears to be a cache bug because I am visiting the page that I cannot view prior to logging in. I have been able to replicate this process by also visiting Page B before logging in (with browser cache cleared) and then after logging in still not being able to see the content. As soon as I refresh the page I am not able to view after logging in, then the page content becomes available. This is fine as a workaround while testing the plugin, but no good as users will not need to know they need to refresh the page and will just get stuck in a loop of logging in and then being asked to login when accessing restricted content pages.

    I’d also be willing to make a donation if you’re able to send the user back to the page they tried to access prior to logging in after they login, which is an expected user experience in this day in age.

Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, are you login in as an Admin or a normal member? In regards to redirecting the user have you tried the following addon?

    Thread Starter nitroit

    (@nitroit)

    I’m logging in as a normal member. I’m now going to test visiting both restricted content pages prior to logging in. I will then login and visit both pages and see if I can access either of them.

    I will look at the redirection after this issue is sorted.

    Thanks

    Thread Starter nitroit

    (@nitroit)

    OK I can replicate the bug by doing this.

    1. Go to the website and do not login
    2. Visit Page A which shows “You need to login to view this content. Please Login. Not a Member? Join Us”.
    3. Visit Page B which shows “You need to login to view this content. Please Login. Not a Member? Join Us”.
    4. Click Login link and login successfully
    5. Visit Page A which shows “You need to login to view this content. Please Login. Not a Member? Join Us”.
    6. Visit Page B which shows “You need to login to view this content. Please Login. Not a Member? Join Us”.
    7. Hit refresh on Page B and I see protected content.
    8. Navigate to Page A which shows “You need to login to view this content. Please Login. Not a Member? Join Us”.
    9. 7. Hit refresh on Page A and I see protected content.

    So when a user visits any page which is protected prior to logging in they then need to refresh any page with protected content after logging in.

    Plugin Support mbrsolution

    (@mbrsolution)

    Do you know if your host is using some sort of cache system?
    Which browser have you tested this issue in?
    Are you using CDN for your site?

    Plugin Support mbrsolution

    (@mbrsolution)

    Also in step 4 Click Login link and login successfully. Are you login into Page A or Page B or are you login in via the Membership widget?

    Or are you login into your site via WordPress Admin?

    Thread Starter nitroit

    (@nitroit)

    No CDN being used, no host caching, no hosts file caching enabled. Testing in Chrome v56 and v57 on different computers and clearing all browser data before testing.

    Thread Starter nitroit

    (@nitroit)

    Just tested in Firefox v38 and was able to replicate the issue, so it is not browser related

    Plugin Support mbrsolution

    (@mbrsolution)

    You did not answer my question.

    Also in step 4 Click Login link and login successfully. Are you login into Page A or Page B or are you login in via the Membership widget?

    Thank you

    Thread Starter nitroit

    (@nitroit)

    In step 4 I was on Page B and clicked on ‘Login’ in this text ‘You need to login to view this content. Please Login. Not a Member? Join Us’

    Thread Starter nitroit

    (@nitroit)

    OK I installed the redirection plugin and can confirm that going to either of those protected pages and logging in then redirects me to the correct page AND the content is visible. However, when navigating to the other page that is protected, it still asks me to login. So still appears to be buggy.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, I just carried out a test locally in one of my test site. I created two pages. Page A and Page B. I then protected both pages for Free Membership Level access only.

    I opened up a different browser and went to Page A and logged in. It took me to the front page then I clicked back on Page A and I could see the content. I then also clicked on Page B and I could also see the content. So I can confirm that it does work for me.

    Can you carry out the following test.

    Thank you

    Thread Starter nitroit

    (@nitroit)

    Can verify that it’s not a theme conflict after testing that. Will try plugins now, not that there are many installed.

    Thread Starter nitroit

    (@nitroit)

    Can verify that there is no plugin conflict. I had only simple membership and the redirection plugin installed, cleared all browser data and ran through the same steps and was able to replicate the issue.

    Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for the extra information. I have submitted a message to the plugin developer to investigate further your issue.

    Kind regards

    Thread Starter nitroit

    (@nitroit)

    I have tested it on another site on the same host and it works perfectly with exactly the same settings. So I’m a bit stumped. I might just delete it and reinstall it.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Cache bug, logged in user cannot access content’ is closed to new replies.