# Php error stopping me from completing settup

**URL:** <https://www.patreondevelopers.com/t/php-error-stopping-me-from-completing-settup/4322>\
**Category:** Uncategorized\
**Created:** [March 20, 2021, 4:13pm UTC](https://www.patreondevelopers.com/t/php-error-stopping-me-from-completing-settup/4322 "2021-03-20T16:13:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShavedApe](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/shavedape/32/1662_2.png) [@ShavedApe](https://www.patreondevelopers.com/u/ShavedApe)\
**Post date:** [March 20, 2021, 4:13pm UTC](https://www.patreondevelopers.com/t/php-error-stopping-me-from-completing-settup/4322/1 "2021-03-20T16:13:01Z")

</div>

Below is basically what happens on my settings page:

**Post type and category for synced posts**

Set which post type and category/taxonomy will be used for synced posts.

**Warning** : count(): Parameter must be an array or an object that implements Countable in **/home/kujwdyga/public\_html/wp-content/plugins/patreon-connect/classes/patreon\_wordpress.php** on line **2741**

**Fatal error** : Uncaught Error: Cannot use object of type WP\_Error as array in /home/kujwdyga/public\_html/wp-content/plugins/patreon-connect/classes/patreon\_wordpress.php:2743 Stack trace: #0 /home/kujwdyga/public\_html/wp-content/plugins/patreon-connect/classes/patreon\_options.php(488): Patreon\_Wordpress-\>make\_term\_select(‘page’, ‘’, ‘9’) #1 /home/kujwdyga/public\_html/wp-includes/class-wp-hook.php(292): Patreon\_Options-\>patreon\_plugin\_setup\_page(’’) #2 /home/kujwdyga/public\_html/wp-includes/class-wp-hook.php(316): WP\_Hook-\>apply\_filters(’’, Array) #3 /home/kujwdyga/public\_html/wp-includes/plugin.php(484): WP\_Hook-\>do\_action(Array) #4 /home/kujwdyga/public\_html/wp-admin/admin.php(259): do\_action(‘toplevel\_page\_p…’) #5 {main} thrown in **/home/kujwdyga/public\_html/wp-content/plugins/patreon-connect/classes/patreon\_wordpress.php** on line **2743**

There has been a critical error on this website. Please check your site admin email inbox for instructions.

---

<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 22, 2021, 4:13pm UTC](https://www.patreondevelopers.com/t/php-error-stopping-me-from-completing-settup/4322/2 "2021-03-22T16:13:21Z")

</div>

Warnings should not be enabled for production sites. This warning should not cause any issue with your site’s operation. You can just disable warnings and go through post setup again.

---

<div class="post-metadata">

**Author:** ![ShavedApe](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/shavedape/32/1662_2.png) [@ShavedApe](https://www.patreondevelopers.com/u/ShavedApe)\
**Post date:** [March 22, 2021, 4:58pm UTC](https://www.patreondevelopers.com/t/php-error-stopping-me-from-completing-settup/4322/3 "2021-03-22T16:58:46Z")

</div>

I disabled warnings but still cant complete the set up as it still says:

> **Post type and category for synced posts**
> 
> Set which post type and category/taxonomy will be used for synced posts.
> 
> There has been a critical error on this website. Please check your site admin email inbox for instructions.

There are no drop downs or anything to select and its clear it hasnt completed what its doing so how can i simply start a fresh I tried to uninstall that didnt work as it didnt allow me to run the wizard.

---

<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 22, 2021, 6:41pm UTC](https://www.patreondevelopers.com/t/php-error-stopping-me-from-completing-settup/4322/4 "2021-03-22T18:41:22Z")

</div>

Arent there any categories in your WP site?

---

<div class="post-metadata">

**Author:** ![ShavedApe](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/shavedape/32/1662_2.png) [@ShavedApe](https://www.patreondevelopers.com/u/ShavedApe)\
**Post date:** [March 22, 2021, 7:31pm UTC](https://www.patreondevelopers.com/t/php-error-stopping-me-from-completing-settup/4322/5 "2021-03-22T19:31:20Z")

</div>

yes there are 7 catagories

I removed all the database entries which allowed me to start again and the error is now gone I have no idea what was causing the error but at least its now gone.

---

<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 24, 2021, 2:31am UTC](https://www.patreondevelopers.com/t/php-error-stopping-me-from-completing-settup/4322/6 "2021-03-24T02:31:25Z")

</div>

Then there was probably a problem with categories at your WP site. That dropdown should come in empty only when categories are not present or categories cannot be acquired.
