# Content Not Properly Locking

**URL:** <https://www.patreondevelopers.com/t/content-not-properly-locking/3268>\
**Category:** Wordpress Plugin\
**Created:** [June 8, 2020, 9:18pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268 "2020-06-08T21:18:13Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAVASHEEN](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RAVASHEEN](https://www.patreondevelopers.com/u/RAVASHEEN)\
**Post date:** [June 8, 2020, 9:18pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/1 "2020-06-08T21:18:13Z")

</div>

Hi! I set my page to lock the content with my lowest patreon tier and I could only get it to actually lock if I also added password protection. When I have patreon limit turned on, but no password protection (what I have currently) the patreon locked content with an invite to join my patreon shows up under all of the content. I provided a link to the page I am trying to lock below. I have also added the php coding you suggested on other forumns and I am not able to get that to work either. I am getting errors and I have copied those below the link to the page (only copied a few cause they are all the same). Thanks!

> **[Patron Thank You | RAVASHEEN](https://ravasheen.com/patreon-perk/)**
>
> To view this content, you must be a member of RAVASHEEN's Patreon at $1 or more Unlock with PatreonAlready a \[…\]

==============================  
**0.01 days ago**

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”:“025eb0e1-59b4-42bd-92b3-6f7dcedf277c”,“status”:“401”,“title”:“Unauthorized”}]}

**0.66 days ago**

Response code: 204 Response :

**0.66 days ago**

Response code: 400 Response :{“errors”:[{“code”:null,“code\_name”:“DuplicateEntity”,“detail”:“Existing client for user and parent client”,“id”:“474dccde-6738-4cc0-9e09-af72904e404d”,“status”:“400”,“title”:“Duplicate entity”}]}

**0.66 days ago**

Response code: 204 Response :

**0.66 days ago**

Response code: 401 Response :{“error”: “invalid\_grant”}

**0.66 days ago**

Response code: 401 Response :{“error”: “invalid\_grant”}

**0.67 days ago**

Response code: 401 Response :{“error”: “invalid\_grant”}

**0.67 days ago**

Response code: 401 Response :{“error”: “invalid\_grant”}

**0.67 days ago**

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”:“5f72d47c-7d83-40a5-8631-9d4eba58c185”,“status”:“401”,“title”:“Unauthorized”}]}

**0.67 days ago**

Response code: 401 Response :{“error”: “invalid\_grant”}

**0.67 days ago**

Response code: 401 Response :{“error”: “invalid\_grant”}

**0.67 days ago**

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”:“eed3681b-96da-41d2-b88a-bc62aeaf3849”,“status”:“401”,“title”:“Unauthorized”}]}

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [June 8, 2020, 9:59pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/2 "2020-06-08T21:59:47Z")

</div>

Can you follow this tutorial to disconnect your site from Patreon and reconnect it and see if it fixes the issue?

> [@bulb How to upgrade your Patreon WordPress to use API v2](https://www.patreondevelopers.com/t/how-to-upgrade-your-patreon-wordpress-to-use-api-v2/3249):
>
> You can follow the below simple steps to upgrade your Patreon WordPress installation to use API v2, which is required by many advanced features like post sync. 1 - Visit “Patreon settings” menu in your WP admin 2 - Click ‘Connection details’ button 3 - Clear all fields which you can clear, and click Save. 4 - Visit the below page that lists the apps you have at Patreon: 5 - Find the app for your website. You can confirm the app by checking the ‘Redirect uri’ value for the app, visible in …

---

<div class="post-metadata">

**Author:** ![RAVASHEEN](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RAVASHEEN](https://www.patreondevelopers.com/u/RAVASHEEN)\
**Post date:** [June 8, 2020, 10:12pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/3 "2020-06-08T22:12:48Z")

</div>

Thanks for the quick response! I will try that right now 🙂

---

<div class="post-metadata">

**Author:** ![RAVASHEEN](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RAVASHEEN](https://www.patreondevelopers.com/u/RAVASHEEN)\
**Post date:** [June 8, 2020, 10:20pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/4 "2020-06-08T22:20:52Z")

</div>

Ok I did that and still no luck. And it is showing I used API V2. What’s weird is if I turn on password protect for the page, then the patreon thing works… but then after they connect with patreon they then have to enter a password. I am going to turn password protect back on for the moment.

Here are the most recent errors.

**0 days ago**

Response code: 204 Response :

**0 days ago**

Response code: 400 Response :{“errors”:[{“code”:null,“code\_name”:“DuplicateEntity”,“detail”:“Existing client for user and parent client”,“id”:“8381be3c-f23d-4df7-a5d3-af2d3531848a”,“status”:“400”,“title”:“Duplicate entity”}]}

**0 days ago**

Response code: 204 Response :

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [June 8, 2020, 10:42pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/5 "2020-06-08T22:42:47Z")

</div>

Can you try clearing all your cookies from your web browser (or only that domain’s cookies using Web Developer extension etc), and retry.

There seems to be something installed at your site which interferes with things.

But, it can also be your cache - caching plugins, opcache or other server side caching may interfere with the process and show gated/ungated versions of the content.

---

<div class="post-metadata">

**Author:** ![RAVASHEEN](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RAVASHEEN](https://www.patreondevelopers.com/u/RAVASHEEN)\
**Post date:** [June 8, 2020, 10:50pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/6 "2020-06-08T22:50:51Z")

</div>

Yea I tried that and also tried different web browsers in addition to having my patreons test it… I don’t have any cache plugins.

I don’t think I installed that php coding properly though so I might try that next. It is just this one page I need to block. If I install that coding will that override everything else and hopefully fix the issue? I ask cause I have to install a php plugin in order to add this.

---

<div class="post-metadata">

**Author:** ![RAVASHEEN](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RAVASHEEN](https://www.patreondevelopers.com/u/RAVASHEEN)\
**Post date:** [June 8, 2020, 11:51pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/7 "2020-06-08T23:51:00Z")

</div>

Update! I installed XYZ php code plug in and added the snippet, put the html of the page in between, and then added the php short code to my page. Working great now! If you go this route, you need to not enable the patreon restriction on the right, otherwise u will get two unlock content blocks on the page.

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [October 16, 2020, 3:53pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/8 "2020-10-16T15:53:04Z")

</div>

Yeah, the lock box on the right locks the entire page. If you lock partial content, that must not be on.

---

<div class="post-metadata">

**Author:** ![RAVASHEEN](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RAVASHEEN](https://www.patreondevelopers.com/u/RAVASHEEN)\
**Post date:** [April 7, 2021, 7:47am UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/9 "2021-04-07T07:47:56Z")

</div>

hi codebard, I am currently updating my entire site with the plan to host more patreon exclusive content on my webpage. I am still having to use the php snippet workaround which is not ideal. I would love to use all your features including some advertised by upgrading to pro. Is there any way I can trial the pro version on a demo site to see if it works properly? if the features don’t work properly, then there is really no benefit for me.

thanks!

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [April 7, 2021, 3:55pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/10 "2021-04-07T15:55:11Z")

</div>

There is a live demo site here:

[https://patron-plugin-pro-demo.codebard.com/](https://patron-plugin-pro-demo.codebard.com/)

But you cant particularly use it as an admin.

I dont know which php code you are using and for what. If you are using the PHP code provided to gate different parts of your site than your post content, that’s not something we can change due to the nature of WP.

---

<div class="post-metadata">

**Author:** ![RAVASHEEN](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RAVASHEEN](https://www.patreondevelopers.com/u/RAVASHEEN)\
**Post date:** [April 7, 2021, 10:31pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/11 "2021-04-07T22:31:20Z")

</div>

I responded to my old thread from a year ago where you initially tried to help me so you would have some connection/history. Your plugin does not work with my theme, so I had to make a snippet of PHP coding in order for it to accurately gate patrons (see initial post). The live demo site won’t tell me if it works with my theme. I would suggest removing the feature you say on your website that “it works with every theme” because it doesnt. And it is a bummer you don’t offer trials for you pro version because I won’t purchase unless I can verify it will actually work properly - the live demo doesn’t do me any good.

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [April 12, 2021, 3:27pm UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/12 "2021-04-12T15:27:59Z")

</div>

> [@RAVASHEEN](#):
>
> me, so I had to make a snippet of PHP coding in order for it to accurately gate patrons (see initial post).

If your theme is coded properly with WP standards, it should work. The major catch is it has to use the\_content filter for the post content. If it doesnt, there is nothing we can do to make your theme work other than providing custom code. There is a custom code which can be used for Patron Pro for these purposes too.

However if your theme is not using the\_content filter, i would recommend you look into that before trying out any of the plugins. Not using the\_content filter would break a lot of other plugins at wp repo.

---

<div class="post-metadata">

**Author:** ![RAVASHEEN](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@RAVASHEEN](https://www.patreondevelopers.com/u/RAVASHEEN)\
**Post date:** [April 18, 2021, 5:15am UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/13 "2021-04-18T05:15:28Z")

</div>

I feel like an idiot. I just realized a year later that your plugin is Patreon Pro… NOT the patreon standard plugin. So that is totally my fault. I did change my theme from an old one to using the more widely used elementor. Hoping that integrates nicely with your plugin! Thanks!

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [April 21, 2021, 12:53am UTC](https://www.patreondevelopers.com/t/content-not-properly-locking/3268/14 "2021-04-21T00:53:53Z")

</div>

Elementor based themes should apply the\_content properly. You shouldnt have any problem with any theme that applies the\_content to post content.
