• Resolved vanessaaa

    (@vanessaaa)


    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)
  • 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

    (@maybellyne)

    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.
    3. Check for JavaScript errors with your 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 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 and receive our Premium email support and we can help you further.

    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 4 years, 6 months ago by baspisa.
    Plugin Support Michael Ti?a

    (@mikes41720)

    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 4 years, 6 months ago by Michael Ti?a.
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.