Keys always need to be refreshed

I’m not a developer, just a user of the Patreon wordress plugin. The plug in has never functioned properly for me. My patrons gave me extremely frustrated feedback that they couldn’t login; and on investigating realised that the keys had to be refreshed every single time someone wanted to login. Until it functions I can’t use my official website as a feeder into Patreon.

In general the mechanic to auto-refresh creator tokens works fine for majority of sites. Its possible that your site may be having regular connectivity issues to Patreon api.

Have you noticed any issues regarding connectivity of your site to Patreon at any point?

Hi there, maybe? I don’t know how to check or verify. Maybe Wordfence could be interfering with that autorefresh? Never had this issue with any other plugin.
However, I have noticed that the Patreon button appears on a hit-and-miss kind of basis, like it doesn’t always load. Not sure whether that’s related. :slight_smile:

Any plugin that intervenes in between the connection in between your site and Patreon api could cause that effect.

This situation is under investigation, and ill be looking into ways that will not cause impromptu auto-refresh of tokens next week.

Thanks Ozgur. :slight_smile: Looking forward to seeing the outcome. Happy to make my site available to you if you require it.

Does this situation persist Leticia?

If so, it would be very good if you provided me admin access to your site (a new account to be deleted after debug) in order to see this issue on-site.

Hi Ozgur

I haven’t attempted to use it. I’ll try it and let you know.

thanks
Leticia

1 Like

Hi Ozgur

So, I got my patrons to test the plugin. Here’s the feedback I got:

Clicking the Unlock With Patreon button takes me to a registration page, I clicked the log in link under the registration form and logged in. It then showed me a blank page with just the following error message: {“error”: “invalid_request”,“error_description”:“Mismatching redirect URI.”,“state”:“eyJmaW5hbF9yZWRpcmVjdF91cmkiOiJodHRwczpcL1wvYmlvZGFnYXIuY295XC8yMDE5XC8wN1wvdGhpcy1pcy1hLXRlc3QtZm9yLXBhdHJvbnMtb25seVwvIn0=”}

If she then goes back to my site, she can she can see the content.

I don’t see the value in it, if it’s going to do that. LOL

Let me know if you want access?

Are you using mixed http and https urls in your WP site?

This error can happen if a user comes from a http:// url via search or other means and then goes to Patreon. It fails because the redirect url may be saved as https:// at Patreon client details.

That is if the redirect uri is actually otherwise correct.

Below may help:

  • Check out the redirect uri setting which shows at your plugin settings and compare it to the one saved at Patreon for this app
  • Ensure you are either using https or http in all your urls in your WP site. https is preferred since search engines are prioritizing that since a while. A plugin can help redirect all non https requests to https ones.

Oh right, good pickup. Will verify and come back to you. :slight_smile: Thanks!

1 Like

Ok, so updated as requested and asked Patrons to test. This is what came back:

test one: I’m already logged in, I click on the button, I get this error message: {“error”:“invalid_request”,“error_description”:“Mismatching redirect URI.”,“state”:“eyJmaW5hbF9yZWRpcmVjdF91cmkiOiJodHRwczpcL1wvYmlvZGFnYXIuY29tXC8yMDE5XC8wN1wvdGhpcy1pcy1hLXRlc3QtZm9yLXBhdHJvbnMtb25seVwvIn0=”}

test two: I’m not logged in, I click on the button, I log in, I get this error message (possibly same):
{“error”:“invalid_request”,“error_description”:“Mismatching redirect URI.”,“state”:“eyJmaW5hbF9yZWRpcmVjdF91cmkiOiJodHRwczpcL1wvYmlvZGFnYXIuY29tXC8yMDE5XC8wN1wvdGhpcy1pcy1hLXRlc3QtZm9yLXBhdHJvbnMtb25seVwvIn0=”}

The site in question is consistently using SSL. If there is something to change at the Patron end, it is extremely unclear where that would be.

That is pretty weird.

Is it possible for you to arrange admin access for me to check this on-site?