Title: Bug: Array_filter() expects parameter 1 to be array, bool given
Last modified: November 18, 2020

---

# Bug: Array_filter() expects parameter 1 to be array, bool given

 *  Resolved [Niklas Johansson](https://wordpress.org/support/users/niklasjohansson/)
 * (@niklasjohansson)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/bug-array_filter-expects-parameter-1-to-be-array-bool-given/)
 * Hi,
 * Thanks for a simple and good plugin! I have the following error message showing
   up in emails to my clients, which is also visible on the settings page of the
   plugin:
 * `Warning: array_filter() expects parameter 1 to be array, bool given in /home/
   customer/www/lustfyllt-torslanda.se/public_html/wp-content/plugins/add-fields-
   to-checkout-page-woocommerce/classes/class-wc-checkout-field-editor.php on line
   218`
 * Everything else seems to work, but it of course decrease the customer experience.
 * Appreciate your support to have a look. Let me know if you would like the Wocoommerce
   status report.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [themelocation](https://wordpress.org/support/users/themelocation/)
 * (@themelocation)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/bug-array_filter-expects-parameter-1-to-be-array-bool-given/#post-13769297)
 * Can you send More details? This issue is not reported by any user
 *  Thread Starter [Niklas Johansson](https://wordpress.org/support/users/niklasjohansson/)
 * (@niklasjohansson)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/bug-array_filter-expects-parameter-1-to-be-array-bool-given/#post-13775893)
 * Hi,
 * Thanks for replying back. Which information do you need?
    I cannot attach pictures
   unfortunately, but the error message above is available both in the Settings 
   panel and in emails to client.
 * Just to test, I reset to theme Twenty Twenty-One and disabled all plugins except
   Woocommerce and WooCommerce Checkout & Account Field Editor, but the issue still
   persisted. Running version 1.2.4 and version 4.8.0 of WooCommerce.
 *  Plugin Author [themelocation](https://wordpress.org/support/users/themelocation/)
 * (@themelocation)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/bug-array_filter-expects-parameter-1-to-be-array-bool-given/#post-13875375)
 * Fixed with the Plugin update.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bug: Array_filter() expects parameter 1 to be array, bool given’ is closed
to new replies.

 * ![](https://ps.w.org/add-fields-to-checkout-page-woocommerce/assets/icon-128x128.
   png?rev=1786150)
 * [Custom WooCommerce Checkout Fields Editor](https://wordpress.org/plugins/add-fields-to-checkout-page-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/add-fields-to-checkout-page-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/add-fields-to-checkout-page-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-fields-to-checkout-page-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-fields-to-checkout-page-woocommerce/reviews/)

## Tags

 * [settings](https://wordpress.org/support/topic-tag/settings/)

 * 3 replies
 * 2 participants
 * Last reply from: [themelocation](https://wordpress.org/support/users/themelocation/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/bug-array_filter-expects-parameter-1-to-be-array-bool-given/#post-13875375)
 * Status: resolved