Wordpress Plugin Error on Activation


So, when I activate the plugin, I get 1 Fatal PHP error and an HTTP API Call on every page load, which is informed to me by Query Monitor Plugin.

The Fatal PHP error says that I do not have a .htaccess file.

I use NGINX server, so I do not use a .htaccess file. This is a concern because I am not sure the plugin works without it.

I also get the HTTP API Call that says 404 Unauthorized-
HTTP API Transport: curl, and the url is: https://api.patreon.com/oauth2/api/current_user/campaigns

The caller is: Caller: Patreon_API->__get_json() (Get Method).

Can someone help?


Nginx servers are not directly supported, but you can make them work using the rewrite rules that are given in the Image Feature topic for WPEngine host configuration.

However the plugin currently checks for a htaccess file and tries to modify it. This may cause a fatal error. You may just create a dud .htaccess file for plugin with relevant permissions for it to be able to modify it, and then try to enter nginx rules given in mentioned topic to your server config.

Hi. Thanks for the reply.

Is there a way to remove the HTTP API Call?

It seems the plugin loads it on every page. Why not make the call when needed?


The call for logged-in user’s Patreon details to update them on your site is currently done on every call. This is to make sure any change user makes in their Patreon info like name, vanity name etc, will be reflected on your site immediately.

I had queued this for review already some time ago and it will be brought to the attention of the team. If it is not so important to refresh these details immediately to WP sites, we may do it when a user logs in instead of every page load. Long story short its something thats going to be reviewed.

For now you can just comment out that action that is hooked to init.