Title: array_map(): Expected parameter 2 to be an array, bool given
Last modified: May 5, 2020

---

# array_map(): Expected parameter 2 to be an array, bool given

 *  Resolved [vanessaaa](https://wordpress.org/support/users/vanessaaa/)
 * (@vanessaaa)
 * [6 years ago](https://wordpress.org/support/topic/array_map-expected-parameter-2-to-be-an-array-bool-given/)
 * After migrate my web site to a new host i’m getting those errors:
 * array_map(): Expected parameter 2 to be an array, bool given
    wp-content/plugins/
   wordpress-seo/src/actions/indexation/indexable-post-type-archive-indexation-action.
   php:155 Plugin: wordpress-seo
 * Warning array_diff(): Expected parameter 2 to be an array, null given
    wp-content/
   plugins/wordpress-seo/src/actions/indexation/indexable-post-type-archive-indexation-
   action.php:113
 * Plugin: wordpress-seo
    Warning count(): Parameter must be an array or an object
   that implements Countable

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

 *  [baspisa](https://wordpress.org/support/users/baspisa/)
 * (@baspisa)
 * [6 years ago](https://wordpress.org/support/topic/array_map-expected-parameter-2-to-be-an-array-bool-given/#post-12787274)
 * I have the same message;
    Warning: array_map(): Expected parameter 2 to be an
   array, bool given in /wp-content/plugins/wordpress-seo/src/actions/indexation/
   indexable-post-type-archive-indexation-action.php on line 154
 * Warning: array_diff(): Expected parameter 2 to be an array, null given in /wp-
   content/plugins/wordpress-seo/src/actions/indexation/indexable-post-type-archive-
   indexation-action.php on line 113
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /wp-content/plugins/wordpress-seo/src/actions/indexation/indexable-post-type-
   archive-indexation-action.php on line 65
 * Not after migrating but after trying to speed up things in my DB. So if some 
   knows an solution…..
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [6 years ago](https://wordpress.org/support/topic/array_map-expected-parameter-2-to-be-an-array-bool-given/#post-12789613)
 * Hello,
 * That sounds like a plugin or theme conflict. Can you perform the following:
    
   1. Make sure the issue doesn’t persist when Yoast SEO is disabled. 2. [Check for conflicts](https://kb.yoast.com/kb/how-to-check-for-plugin-conflicts).
   3. Check for [JavaScript errors with your console](https://kb.yoast.com/kb/how-to-find-javascript-errors-with-your-browsers-console).
   If you find any JavaScript errors related to Yoast SEO or if there is a conflict
   with a plugin or a theme, you can create a [new GitHub issue](https://github.com/Yoast/wordpress-seo/issues/new)
   for our developers. Please report the issue to a third party developer as well.
   If you didn’t find any conflicts or errors, we think the issue is specific to
   your site. We’d need to investigate further but are unable to do so on these 
   forums. You can [purchase Yoast SEO Premium](https://yoast.com/wordpress/plugins/seo/)
   and receive our Premium email support and we can help you further.
 *  [baspisa](https://wordpress.org/support/users/baspisa/)
 * (@baspisa)
 * [6 years ago](https://wordpress.org/support/topic/array_map-expected-parameter-2-to-be-an-array-bool-given/#post-12790453)
 * I did what you described above.
    When still on twenty twenty theme and with only
   the Yoast SEO pluging enabled these warning messages appear. So to me it seems
   an issues with or the plugin or the tables used by the plugin.
 * I submitted an issue on GitHub.
    -  This reply was modified 6 years ago by [baspisa](https://wordpress.org/support/users/baspisa/).
 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [6 years ago](https://wordpress.org/support/topic/array_map-expected-parameter-2-to-be-an-array-bool-given/#post-12801188)
 * Upon checking the GitHub issue, it looks like this has been resolved by using
   the Yoast Test Helper plugin.
    - Install and activate the Yoast Test Helper plugin
    - Go to Tools > Yoast Test
    - Hit the “Reset indexables tables & migrations” button
    - Delete the Yoast SEO plugin from your site
    - Re-install the plugin
    - Click the “Click here to speed up your site now” button
    - Setting this to resolved.
 *  -  This reply was modified 6 years ago by [Michael Tiña](https://wordpress.org/support/users/mikes41720/).

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

The topic ‘array_map(): Expected parameter 2 to be an array, bool given’ is closed
to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/array_map-expected-parameter-2-to-be-an-array-bool-given/#post-12801188)
 * Status: resolved