patreon-wordpress icon indicating copy to clipboard operation
patreon-wordpress copied to clipboard

Endless loop - Unlock content

Open raulfunkie opened this issue 5 years ago • 3 comments

I manage a website that uses this plugin and since updating to the last version (and also, upgrading to the V2 of the API) users have been constantly stuck in a loop.

  • Visit page
  • Click "Unlock Content"
  • Click "Allow" on Patreon permission website
  • User returns to the website but no content is unlocked.

Edit:

  • Using WPEngine as hosting
  • patreon_nonce is already on the no-cache list.

How do I around resolving this? the website is https://leangains.com

raulfunkie avatar Jul 05 '20 16:07 raulfunkie

If you have any caching plugin at your site (W3 total, WP super etc), or your host any caching feature at the server (opcode etc), this may cause users to see old, locked versions of pages even if they unlock. Checking that out may provide clues.

patreon_nonce is not necessary to deal with anymore.

Additionally you can reconnect your site to Patreon - maybe it lost connection - that may cause some issues like the ones you described.

codebard avatar Jul 07 '20 18:07 codebard

I got in touch with WPEngine and they could not provide any further details. The patreon_nonce cookie had already been added to the exceptions.

How can I approach this? I've already checked connection and it seems good. I actually had to migrate to the APIv2 not too long ago cause of some errors popping on the config log.

Any ideas as to what to request WPEngine in this case? I've asked them to stop caching post pages to see if that makes any difference, but doesn't seem to have worked so far.

After trying to manually refresh the page I'm getting this error now: Screen Shot 2020-07-07 at 7 21 50 PM

Any ideas?

Getting these errors as well on the Patreon Health Check page:

Response code: 401 Response :{"errors":[{"code":1,"code_name":"Unauthorized","detail":"The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.","id":"049afcfc-7903-4285-b0d2-b6649d32d6b5","status":"401","title":"Unauthorized"}]}

Response code: 401 Response :{"error": "invalid_grant"}

Things I've tried

  • Reconnecting using the wizard = no dice
  • Reconnecting manually = no dice
  • Asking WPEngine to momentarily deactivate cache on the whole site = no dice

raulfunkie avatar Jul 07 '20 20:07 raulfunkie

Reconnecting using the wizard = no dice Reconnecting manually = no dice

What errors did you receive when trying those out?

codebard avatar Jul 13 '20 14:07 codebard