Title: Warning: array_map(): Expected parameter 2 to be an array
Last modified: September 6, 2020

---

# Warning: array_map(): Expected parameter 2 to be an array

 *  Resolved [usefulinfolab](https://wordpress.org/support/users/usefulinfolab/)
 * (@usefulinfolab)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/warning-array_map-expected-parameter-2-to-be-an-array-2/)
 * Hello, Every time, When I go to edit post section. Cloud you please help me to
   understand. Why this issue is coming
 * Warning: array_map(): Expected parameter 2 to be an array, in /public_html/plugins/
   wordpress-seo/inc/class-wpseo-meta.php on line 1013
 * Thank you.
    -  This topic was modified 5 years, 8 months ago by [usefulinfolab](https://wordpress.org/support/users/usefulinfolab/).
    -  This topic was modified 5 years, 8 months ago by [usefulinfolab](https://wordpress.org/support/users/usefulinfolab/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-array_map-expected-parameter-2-to-be-an-array-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/warning-array_map-expected-parameter-2-to-be-an-array-2/#post-13367631)
 * [@usefulinfolab](https://wordpress.org/support/users/usefulinfolab/) Can you 
   please confirm you are using the most recent Yoast v14.9? You can learn more 
   about updating here: [https://kb.yoast.com/kb/how-can-i-update-my-free-plugin/](https://kb.yoast.com/kb/how-can-i-update-my-free-plugin/)
 * Can you also confirm you are using WordPress 5.4/5.5? You can check by clicking
   on the W in the top left and selecting About. If you need to update, please check
   with your host provider. Please know that if you are using an older version of
   WordPress Core you may experience unexpected behavior with Yoast. This guide 
   explains more: [https://yoast.com/why-we-dont-support-old-wordpress-versions/](https://yoast.com/why-we-dont-support-old-wordpress-versions/)
   ​​
   If you update to the most current version of WordPress and Yoast SEO, does this
   resolve the error?
 * If you have already confirmed that both Yoast SEO and WordPress are up to date
   and the issue is still occurring, we would next recommend performing a conflict
   check to determine whether another plugin or theme is interfering with the Yoast
   plugin.
 * The fastest way to do this is to **deactivate all non-Yoast plugins and switch
   to a standard theme** like [Twenty Nineteen](https://wordpress.org/themes/twentynineteen/).
   Test this on your development or staging site, if you have one. If not, we recommend
   using the [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/)
   plugin. This plugin allows you to run a conflict check **without affecting normal
   visitors to your site**.
 * If you’re unfamiliar with checking for conflicts, we have a step-by-step guide
   that will walk you through the process available here: [How to check for plugin conflicts](https://kb.yoast.com/kb/how-to-check-for-plugin-conflicts/).
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/warning-array_map-expected-parameter-2-to-be-an-array-2/#post-13397679)
 * We are going ahead and marking this issue as resolved due to inactivity. If you
   require any further assistance please create a new issue.
 *  [robreach](https://wordpress.org/support/users/robreach/)
 * (@robreach)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/warning-array_map-expected-parameter-2-to-be-an-array-2/#post-13561640)
 * I am now having a very similar issue:
 * Expected parameter 2 to be an array, object given in /Users/robcipolla/Desktop/
   Workspace/websites/pannatoni.co.uk/app/public/wp-content/plugins/wordpress-seo/
   admin/class-primary-term-admin.php on line 274
 * Everything is up to date… any ideas?

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

The topic ‘Warning: array_map(): Expected parameter 2 to be an array’ 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/)

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [robreach](https://wordpress.org/support/users/robreach/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/warning-array_map-expected-parameter-2-to-be-an-array-2/#post-13561640)
 * Status: resolved