• denis24

    (@denis24)


    I’m using another plugin to display product content (online music lessons) on WooCommerce product pages after they have purchased the product.

    Occasionally (it’s happened 3 times this year) the site starts showing the logged-out version of the page (with product description and add to cart button, and a Log In button in the header) to logged-in users. I can fix it by deleting the cache, but only after users contact the site owner to complain.

    Why is this happening and how can I prevent it from happening again?

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Emre Vona

    (@emrevona)

    did you enable the “logged-in user” option?

    Thread Starter denis24

    (@denis24)

    Yes. The box “Don’t show cached version to logged-in users” is checked.

    Plugin Author Emre Vona

    (@emrevona)

    are you using the native membership of wp or another plugin?

    Thread Starter denis24

    (@denis24)

    I’m using WooCommerce Pay Per View Content. It runs a script on Woocommerce product pages. If the user is logged in, and has either bought the product or has an active subscription, the lesson content is displayed instead of the product description and add to cart button.

    If a non-logged in user visits a product page they will see the product description and add to cart button. If they then log in and return to the product page, they should see the lesson content. But every once in awhile all users see the logged-out version instead, including the standard WC Login button in the header, even though they are logged in. I’ve verified they’re seeing the cached page because deleting the cache restores the correct functioning.

    Plugin Author Emre Vona

    (@emrevona)

    did you try another cache plugin before?

    Thread Starter denis24

    (@denis24)

    I used to use WP Super Cache but I like your plugin better. I’ve removed WP Super Cache from the site.

    Thread Starter denis24

    (@denis24)

    Some additional information: I don’t know if this could be related but I’ve found this error in Heath Check:

    The REST API request failed due to an error.
    Error: [] cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

    I’ve contacted my webhost about it. Would this affect caching behavior?

    Plugin Author Emre Vona

    (@emrevona)

    do you get the “Logged-in users shown logged-out content” problem with the super cache as well?

    Thread Starter denis24

    (@denis24)

    This problem didn’t occur with WP Super Cache, but I got rid of it at least one year ago, and I’ve made a number of changes to the site since then.

    Additional info: I followed my hunch about the issue being related to the cURL error 28 I had spotted two weeks ago. I spoke to the webhost and they suggested that was caused by was a plugin conflict. So I did some troubleshooting and discovered that when I deactivated the “Social Login Lite For WooCommerce” plugin, the cURL error 28 disappeared. Then when I reactivated WP Fastest Cache, the logging-out issue had disappeared as well! Are you aware of a conflict with this plugin? Would a cURL error 28 affect your plugin?

    I thought all was well, but today my client said several users were still seeing the logged out product content. I could not duplicate this error, and I suspect it may be a browser cache issue. Does this sound right to you?

    I have deactivated WP Super Cache to make my client happy, but I’d like to be able to use it. Any insights or help you could provide would be appreciated.

    Plugin Author Emre Vona

    (@emrevona)

    is everything ok when you disable “Social Login Lite For WooCommerce” ?

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

The topic ‘Logged-in users shown logged-out content’ is closed to new replies.