patreon-wordpress
patreon-wordpress copied to clipboard
Endless loop - Unlock content
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
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.
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:

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
Reconnecting using the wizard = no dice Reconnecting manually = no dice
What errors did you receive when trying those out?