# WordPress plugin error

**URL:** <https://www.patreondevelopers.com/t/wordpress-plugin-error/2902>\
**Category:** Wordpress Plugin\
**Created:** [March 28, 2020, 12:10pm UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902 "2020-03-28T12:10:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewAgeContentService](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@NewAgeContentService](https://www.patreondevelopers.com/u/NewAgeContentService)\
**Post date:** [March 28, 2020, 12:10pm UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/1 "2020-03-28T12:10:50Z")

</div>

Hi

I tried to get the WP plugin going but it keeps giving me this error. I deleted the plugin and downloaded it and then uploaded it but still am getting the same error.

Thanks

```
				Fatal error: Uncaught Error: Call to undefined method Patreon_API::create_refresh_client() in /home2/mql9ji8l/public_html/wp-content/plugins/patreon-connect/classes/patreon_routing.php:329 Stack trace: #0 /home2/mql9ji8l/public_html/wp-includes/class-wp-hook.php(288): Patreon_Routing->parse_request(Object(WP)) #1 /home2/mql9ji8l/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #2 /home2/mql9ji8l/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array) #3 /home2/mql9ji8l/public_html/wp-includes/class-wp.php(387): do_action_ref_array('parse_request', Array) #4 /home2/mql9ji8l/public_html/wp-includes/class-wp.php(729): WP->parse_request('') #5 /home2/mql9ji8l/public_html/wp-includes/functions.php(1255): WP->main('') #6 /home2/mql9ji8l/public_html/wp-blog-header.php(16): wp() #7 /home2/mql9ji8l/public_html/index.php(17): require('/home2/mql9ji8l...') #8 {main} thrown in /home2/mql9ji8l/public_html/wp-content/plugins/patreon-connect/classes/patreon_routing.php on line 329

```

There has been a critical error on your website.

---

<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:** [March 30, 2020, 5:09pm UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/2 "2020-03-30T17:09:56Z")

</div>

Have you installed the plugin before, like a year ago or a similar duration?

---

<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:** [March 31, 2020, 1:10am UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/3 "2020-03-31T01:10:38Z")

</div>

There is a fix in the below branch, if you can download and use github.

> **[Patreon/patreon-wordpress](https://github.com/Patreon/patreon-wordpress/tree/api_version_detection_fix)**
>
> Contribute to Patreon/patreon-wordpress development by creating an account on GitHub.

Youll have to delete your existing plugin and upload the zip downloaded from above.

I tried to upload an installable package to dropbox, but its timing out on their end. Ill try tomorrow again.

---

<div class="post-metadata">

**Author:** ![NewAgeContentService](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@NewAgeContentService](https://www.patreondevelopers.com/u/NewAgeContentService)\
**Post date:** [March 31, 2020, 2:08am UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/4 "2020-03-31T02:08:16Z")

</div>

Hi. Thanks for your reply. No, I created an account only last week on Patreon & last week itself I tried installing the plugin. Incidentally, I have another website and there, the plugin worked great. It is only on this website that this error is coming up. I deleted the WP plugin and downloaded it again in zip file and uploaded (not from GitHub) but from your WP Plugin site. But it still gives the same error. 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:** [March 31, 2020, 8:22pm UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/5 "2020-03-31T20:22:26Z")

</div>

> but from your WP Plugin site

Which particular site?

---

<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:** [March 31, 2020, 10:04pm UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/6 "2020-03-31T22:04:21Z")

</div>

In any case, 1.5.3 is out with a fix for this particular issue and similar issues.

Just upgrade to 1.5.3 from your WP admin, and you can retry connecting/reconnecting your site again.

---

<div class="post-metadata">

**Author:** ![NewAgeContentService](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@NewAgeContentService](https://www.patreondevelopers.com/u/NewAgeContentService)\
**Post date:** [April 1, 2020, 1:10am UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/7 "2020-04-01T01:10:11Z")

</div>

Hi

Thanks. Will do that and get back.

---

<div class="post-metadata">

**Author:** ![NewAgeContentService](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@NewAgeContentService](https://www.patreondevelopers.com/u/NewAgeContentService)\
**Post date:** [April 1, 2020, 1:31am UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/8 "2020-04-01T01:31:30Z")

</div>

Hi. Ok I used the new version of the WP Plugin but now it gives this error, " Sorry - to connect your site to Patreon you need to be an admin user." I am the Admin for my Site. Can you let me know what this is? 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 1, 2020, 2:47am UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/9 "2020-04-01T02:47:04Z")

</div>

Now this is somewhat informative - are you using WP multisite?

The plugin checks for ‘manage\_options’ privilege. If this privilege does not exist for that particular account, it does not allow site connection.

---

<div class="post-metadata">

**Author:** ![NewAgeContentService](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@NewAgeContentService](https://www.patreondevelopers.com/u/NewAgeContentService)\
**Post date:** [April 1, 2020, 2:49am UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/10 "2020-04-01T02:49:50Z")

</div>

Hi. Yes, I am using WP Multisite and I have only one site there. So what should be my next move? I am also the admin for multisite as well as that 1 site. 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 1, 2020, 4:31am UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/11 "2020-04-01T04:31:33Z")

</div>

Can you try connecting your site using the Network admin instead of that site’s admin?

Or, vice versa? If you were using Network admin, try using the site’s admin to connect that particular site.

Note that you cannot connect entire master network to Patreon. Each site must be connected separately.

---

<div class="post-metadata">

**Author:** ![NewAgeContentService](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@NewAgeContentService](https://www.patreondevelopers.com/u/NewAgeContentService)\
**Post date:** [April 1, 2020, 5:07am UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/12 "2020-04-01T05:07:42Z")

</div>

Hi, Okay it worked! I am now connected. Thank you very much for your time & patience.

---

<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 1, 2020, 3:56pm UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/13 "2020-04-01T15:56:45Z")

</div>

Great to hear. Good luck with your patrons.

---

<div class="post-metadata">

**Author:** ![LauraHilliger](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/laurahilliger/32/1356_2.png) [@LauraHilliger](https://www.patreondevelopers.com/u/LauraHilliger)\
**Post date:** [June 19, 2020, 10:58am UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/14 "2020-06-19T10:58:39Z")

</div>

Hello! I updated the Patreon plugin today and set the settings to import posts. Then I went and did something else. When I came back, it had thrown a fatal error, and my site was down showing a critical error. I was able to disable the plugin. I’m not sure what kind of other info you might need from me too debug, so I thought I would just post this here and see if we can figure out what’s going on. lmk if you want/need a list of other plugins? Maybe some sort of conflict that you’re already aware of…

When seeking help with this issue, you may be asked for some of the following information:  
WordPress version 5.4.2  
Current theme: Hestia Pro (version 3.0.1)  
Current plugin: Patreon Wordpress (version 1.5.7)  
PHP version 7.1.1

Here’s the log:

An error of type E\_ERROR was caused in line 2728 of the file /wp-content/plugins/patreon-connect/classes/patreon\_wordpress.php. Error message: Uncaught Error: Call to undefined method Patreon\_API::add\_post\_webhook() in wp-content/plugins/patreon-connect/classes/patreon\_wordpress.php:2728  
Stack trace:  
#0 /wp-includes/class-wp-hook.php(287): Patreon\_Wordpress-\>check\_post\_sync\_webhook(’’)  
#1 /wp-includes/class-wp-hook.php(311): WP\_Hook-\>apply\_filters(NULL, Array)  
#2 /wp-includes/plugin.php(478): WP\_Hook-\>do\_action(Array)  
#3 /wp-settings.php(540): do\_action(‘init’)  
#4 /wp-config.php(89): require\_once(’/\*\*…’)  
#5 /sl.re

---

<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 19, 2020, 12:28pm UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/15 "2020-06-19T12:28:12Z")

</div>

Did you see a warning saying that if you turn on post sync while using api v1, you may get errors? It should have appeared with this release.

In any case, when you upgrade your installation to v2, it will go away and post sync will also work:

> [@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:** ![Transcendent\_Studios](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@Transcendent\_Studios](https://www.patreondevelopers.com/u/Transcendent_Studios)\
**Post date:** [July 29, 2020, 2:46pm UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/16 "2020-07-29T14:46:51Z")

</div>

I am receiving the error of the above user but am not able to connect my site

i get the  
Sorry - to connect your site to Patreon you need to be an admin user.

error even with a newly created Admin user on the specific site. I also get it with the super admin user for multi-site

---

<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:** [July 29, 2020, 5:03pm UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/17 "2020-07-29T17:03:15Z")

</div>

Ill be looking into multisite compatibility this week.

---

<div class="post-metadata">

**Author:** ![Transcendent\_Studios](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@Transcendent\_Studios](https://www.patreondevelopers.com/u/Transcendent_Studios)\
**Post date:** [July 29, 2020, 6:43pm UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/18 "2020-07-29T18:43:16Z")

</div>

Thank you so much for your support and response

---

<div class="post-metadata">

**Author:** ![awsj007](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@awsj007](https://www.patreondevelopers.com/u/awsj007)\
**Post date:** [March 28, 2022, 10:31am UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/19 "2022-03-28T10:31:29Z")

</div>

Hi, my website showing “There has been a critical error on this website. Please check your site admin email inbox for instructions.” When I go to the post sync it showing me this error…

---

<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:** [March 28, 2022, 7:26pm UTC](https://www.patreondevelopers.com/t/wordpress-plugin-error/2902/20 "2022-03-28T19:26:11Z")

</div>

You can contact your web host and ask them to tell you what is the exact error that appears in your site’s logs. If you know how to do that, you can do it yourself from your site’s control panel at your host.
