The other day I connected Patreon to my Wordpress site. At first it worked fine, the posts were synced and everything was fine.
After installing the plugin I’ve made two changes: I updated my Wordpress, and I tried to make the Patreon sync to Pages instead of Posts. Not sure if these might be related, but the error started occurring after the changes.
I can’t disconnect or reconnect the page. Deleting and re-installing the plugin doesn’t work.
I also tried deleting the API Client from Patreon itself, without any change.
This is what is in the error e-mail I received:
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.5.3
Current theme: Book Club (version 5.2.2)
Current plugin: Patreon Wordpress (version 1.6.9)
PHP version 7.4.13
An error of type E_ERROR was caused in line 2712 of the file /customers/9/6/d/[sitename].com/httpd.www/wp-content/plugins/patreon-connect/classes/patreon_wordpress.php. Error message: Uncaught Error: Cannot use object of type WP_Error as array in /customers/9/6/d/[sitename].com/httpd.www/wp-content/plugins/patreon-connect/classes/patreon_wordpress.php:2712
#0 /customers/9/6/d/[sitename].com/httpd.www/wp-content/plugins/patreon-connect/classes/patreon_options.php(488): Patreon_Wordpress->make_term_select(‘page’, ‘’, ‘20’)
#1 /customers/9/6/d/[sitename].com/httpd.www/wp-includes/class-wp-hook.php(287): Patreon_Options->patreon_plugin_setup_page(’’)
#2 /customers/9/6/d/[sitename].com/httpd.www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(’’, Array)
#3 /customers/9/6/d/[sitename].com/httpd.www/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#4 /customers/9/6/d/[sitename].com/httpd.www/wp-admin/admin.php(259): do_action(‘toplevel_page_p…’)