• 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 9 replies - 16 through 24 (of 24 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    That sounds like a good plan. That way the developers won’t have to test this issue. Let me know how you go.

    Regards

    Thread Starter nitroit

    (@nitroit)

    OK I deactivated and then deleted the plugin. It said all plugin data was deleted, but after reinstalling it again the membership level data and all settings were exactly the same.

    Thread Starter nitroit

    (@nitroit)

    Well this isn’t going to help anyone else, but I built a new installation and then uploaded the plugins and tested and it’s working fine. The site I had the issue on was still new and in development as I had only installed the theme, demo data and required plugins, but considering the plugin data does not get deleted properly when the plugin is removed the only way I could move forward was to start from scratch.

    Hopefully the developer’s still look into this bug as well as the fact the plugin data does not get deleted.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, when you delete this plugin you also need to check the database. Delete any table with the following name -swpm- left behind in the database.

    That should totally delete the plugin.

    Thread Starter nitroit

    (@nitroit)

    Yeah I thought it would be that easy, but all settings were still there after manually dropping those tables, which is why I started again from scratch.

    Plugin Support mbrsolution

    (@mbrsolution)

    That is very strange, if you dropped/deleted all the plugins tables no trace should be left behind. I will submit a message to the plugin developers.

    Thank you

    Plugin Author wp.insider

    (@wpinsider-1)

    Delete the following key and its value from the “wp_options” DB table.

    
    swpm-settings
    
    HW

    (@hannahmwool)

    Hi, I wanted to add to this because I am having the exact same issue as of about a week ago but I do not have simple membership plugin. I don’t have a caching plugin anymore and have completed cleared out everything and flushed permalinks etc. Stripped through all of my theme functions.

    My scenario: If I am logged out and navigate to the bbpress page first and then go to the homepage and login then navigate back to the bbpress page it appears as if i am logged out until I refresh the page. This was reported to have began happening about a week or so ago.

    I’ve deactivated every plugin and tested on a twenty-seventeen theme and still have the issue. I definitely think it is a caching issue and I came across a post where someone had mentioned a server-level caching issue. My hosting is with HostGator. I’m going to speak with them and see if they’ve adjusted anything recently.

    Thanks

    HW

    (@hannahmwool)

    I actually just fixed my issue from another thread. It was an ExpiresByType line in .htaccess that was set to 1 month for text/html. I changed it to the below and it is now fixed.

    ExpiresByType text/html “access plus 0 seconds”

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