Title: Warning in_array() expects parameter 2 to be an array
Last modified: May 17, 2021

---

# Warning in_array() expects parameter 2 to be an array

 *  Resolved [Dan Stramer](https://wordpress.org/support/users/danstramer/)
 * (@danstramer)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-an-array/)
 * Hello
    We have been getting thus error: Warning: in_array() expects parameter
   2 to be array, string given in /public_html/wp-content/plugins/wordpress-seo/
   src/integrations/watchers/auto-update-watcher.php on line 183
 * How can this be resolved?
 * Thanks,
    Dan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-in_array-expects-parameter-2-to-be-an-array%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-an-array/#post-14450903)
 * Hi,
 * We’re sorry to hear that you received this error. Is this appearing in the front
   end or is it just appearing in your server logs? Did the error message appear
   when you updated to v16.2 of Yoast SEO for WordPress?
 * Please also do check if you are on the latest version of WordPress 5.7.2, have
   the latest version of your other plugins and themes, and meet all of the necessary
   [plugin requirements](https://yoast.com/help/plugin-requirements/).
 *  Thread Starter [Dan Stramer](https://wordpress.org/support/users/danstramer/)
 * (@danstramer)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-an-array/#post-14453017)
 * Hi,
    It’s appearing in the backend. I today updated to 16.3 but it’s still there.
   We are on 5.7.2. This is a screenshot of the error: [https://www.dropbox.com/s/ij279i39v7adbq0/2021-05-18_091202.jpg?dl=0](https://www.dropbox.com/s/ij279i39v7adbq0/2021-05-18_091202.jpg?dl=0)
 * and site details below, if that helps:
 *     ```
       ### wp-core ###
   
       version: 5.7.2
       site_language: en_US
       user_language: en_US
       timezone: America/Toronto
       permalink: /%year%/%monthnum%/%postname%/
       https_status: true
       multisite: false
       user_registration: 0
       blog_public: 1
       default_comment_status: open
       environment_type: production
       user_count: 16
       dotorg_communication: true
   
       ### wp-paths-sizes ###
   
       wordpress_path: /home/bclmkgyx/public_html
       wordpress_size: 391.08 MB (410078508 bytes)
       uploads_path: /home/bclmkgyx/public_html/wp-content/uploads
       uploads_size: 372.07 MB (390139859 bytes)
       themes_path: /home/bclmkgyx/public_html/wp-content/themes
       themes_size: 9.45 MB (9913804 bytes)
       plugins_path: /home/bclmkgyx/public_html/wp-content/plugins
       plugins_size: 108.77 MB (114057601 bytes)
       database_size: 21.79 MB (22844997 bytes)
       total_size: 903.16 MB (947034769 bytes)
   
       ### wp-dropins (1) ###
   
       advanced-cache.php: true
   
       ### wp-active-theme ###
   
       name: GeneratePress (generatepress)
       version: 3.0.3
       author: Tom Usborne
       author_website: https://tomusborne.com
       parent_theme: none
       theme_features: core-block-patterns, menus, automatic-feed-links, post-thumbnails, post-formats, woocommerce, title-tag, html5, customize-selective-refresh-widgets, align-wide, responsive-embeds, custom-logo, editor-style, widgets
       theme_path: /home/bclmkgyx/public_html/wp-content/themes/generatepress
   
       ### wp-themes-inactive (4) ###
   
       Rowling: version: 2.0.2, author: Anders Norén
       Twenty Nineteen: version: 2.0, author: the WordPress team
       Twenty Twenty: version: 1.7, author: the WordPress team
       Twenty Twenty-One: version: 1.3, author: the WordPress team
   
       ### wp-mu-plugins (3) ###
   
       InfiniteWP - Client Loader: author: Revmakx, version: (undefined)
       ManageWP - Worker Loader: author: GoDaddy, version: (undefined)
       WP Time Capsule: author: Revmakx, version: (undefined)
   
       ### wp-plugins-active (18) ###
   
       Akismet Anti-Spam: version: 4.1.9, author: Automattic, Auto-updates disabled
       Backup and Staging by WP Time Capsule: version: 1.22.1, author: Revmakx, Auto-updates disabled
       Beaver Builder Plugin (Lite Version): version: 2.4.2.2, author: The Beaver Builder Team, Auto-updates disabled
       Democracy Poll: version: 5.6.0, author: Kama, Auto-updates disabled
       GP Premium: version: 1.5.6, author: Tom Usborne (latest version: 2.0.2), Auto-updates disabled
       InfiniteWP - Client: version: 1.9.4.9, author: Revmakx, Auto-updates disabled
       List category posts: version: 0.84.2, author: Fernando Briano, Auto-updates disabled
       ManageWP - Worker: version: 4.9.8, author: GoDaddy, Auto-updates disabled
       Members: version: 3.1.5, author: MemberPress, Auto-updates disabled
       Really Simple SSL: version: 4.0.15, author: Really Simple Plugins, Auto-updates disabled
       Site Kit by Google: version: 1.32.0, author: Google, Auto-updates disabled
       Sucuri Security - Auditing, Malware Scanner and Hardening: version: 1.8.26, author: Sucuri Inc., Auto-updates disabled
       SyntaxHighlighter Evolved: version: 3.6.0, author: Alex Mills (Viper007Bond), Auto-updates disabled
       Weglot Translate: version: 3.3.5, author: Weglot Translate team, Auto-updates disabled
       WP-Polls: version: 2.75.6, author: Lester 'GaMerZ' Chan, Auto-updates disabled
       WP Super Cache: version: 1.7.3, author: Automattic, Auto-updates disabled
       Yoast Duplicate Post: version: 4.1.2, author: Enrico Battocchi & Team Yoast, Auto-updates disabled
       Yoast SEO: version: 16.3, author: Team Yoast, Auto-updates disabled
   
       ### wp-plugins-inactive (2) ###
   
       Jetpack by WordPress.com: version: 9.7, author: Automattic, Auto-updates disabled
       Wordfence Security: version: 7.5.3, author: Wordfence, Auto-updates disabled
   
       ### wp-media ###
   
       image_editor: WP_Image_Editor_Imagick
       imagick_module_version: 1802
       imagemagick_version: ImageMagick 7.0.10-10 Q16 x86_64 2020-07-09 https://imagemagick.org
       file_uploads: File uploads is turned off
       post_max_size: 64M
       upload_max_filesize: 64M
       max_effective_size: 64 MB
       max_file_uploads: 20
       imagick_limits: 
       	imagick::RESOURCETYPE_AREA: 126 GB
       	imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
       	imagick::RESOURCETYPE_FILE: 12288
       	imagick::RESOURCETYPE_MAP: 126 GB
       	imagick::RESOURCETYPE_MEMORY: 63 GB
       	imagick::RESOURCETYPE_THREAD: 1
       gd_version: bundled (2.1.0 compatible)
       ghostscript_version: 9.25
   
       ### wp-server ###
   
       server_architecture: Linux 3.10.0-962.3.2.lve1.5.39.el7.x86_64 x86_64
       httpd_software: Apache
       php_version: 7.3.27 64bit
       php_sapi: litespeed
       max_input_variables: 1000
       time_limit: 90
       memory_limit: 368M
       max_input_time: -1
       upload_max_filesize: 64M
       php_post_max_size: 64M
       curl_version: 7.71.0 OpenSSL/1.1.1d
       suhosin: false
       imagick_availability: true
       pretty_permalinks: true
       htaccess_extra_rules: true
   
       ### wp-database ###
   
       extension: mysqli
       server_version: 5.7.33-cll-lve
       client_version: 5.7.33
   
       ### wp-constants ###
   
       WP_HOME: undefined
       WP_SITEURL: undefined
       WP_CONTENT_DIR: /home/bclmkgyx/public_html/wp-content
       WP_PLUGIN_DIR: /home/bclmkgyx/public_html/wp-content/plugins
       WP_MEMORY_LIMIT: 40M
       WP_MAX_MEMORY_LIMIT: 368M
       WP_DEBUG: true
       WP_DEBUG_DISPLAY: true
       WP_DEBUG_LOG: false
       SCRIPT_DEBUG: false
       WP_CACHE: true
       CONCATENATE_SCRIPTS: undefined
       COMPRESS_SCRIPTS: undefined
       COMPRESS_CSS: undefined
       WP_LOCAL_DEV: undefined
       DB_CHARSET: utf8mb4
       DB_COLLATE: undefined
   
       ### wp-filesystem ###
   
       wordpress: writable
       wp-content: writable
       uploads: writable
       plugins: writable
       themes: writable
       mu-plugins: writable
   
       ### google-site-kit ###
   
       version: 1.32.0
       php_version: 7.3.27
       wp_version: 5.7.2
       reference_url: https://wptoronto.com
       amp_mode: no
       site_status: connected-site
       user_status: not authenticated
       connected_user_count: 1
       active_modules: site-verification, search-console, analytics, pagespeed-insights
       required_scopes: 
       	openid: ⭕
       	https://www.googleapis.com/auth/userinfo.profile: ⭕
       	https://www.googleapis.com/auth/userinfo.email: ⭕
       	https://www.googleapis.com/auth/siteverification: ⭕
       	https://www.googleapis.com/auth/webmasters: ⭕
       	https://www.googleapis.com/auth/analytics.readonly: ⭕
       capabilities: 
       	googlesitekit_authenticate: ✅
       	googlesitekit_setup: ✅
       	googlesitekit_view_posts_insights: ⭕
       	googlesitekit_view_dashboard: ⭕
       	googlesitekit_view_module_details: ⭕
       	googlesitekit_manage_options: ⭕
       enabled_features: 
       	ga4setup: ⭕
       	helpVisibility: ✅
       	ideaHubModule: ⭕
       	serviceSetupV2: ⭕
       	storeErrorNotifications: ⭕
       	userInput: ⭕
       	widgets.dashboard: ✅
       	widgets.pageDashboard: ✅
       	widgets.moduleScreens: ⭕
       search_console_property: https://wptoronto.com/
       analytics_account_id: 1778•••••
       analytics_property_id: UA-1778•••••••
       analytics_profile_id: 2290•••••
       analytics_use_snippet: yes
       ```
   
 *  [Jeroen Rotty](https://wordpress.org/support/users/jeroenrotty/)
 * (@jeroenrotty)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-an-array/#post-14453239)
 * Hey!
 * Thank you for getting back to us and sharing the screenshot and site health info.
 * Nothing really takes immediate attention, so we would like to know if the warning
   error also appears when Yoast SEO is the only plugin active. And if not, when
   it reappears when you start enabling other plugins again. We believe this to 
   be a plugin or theme conflict, as we can’t reproduce this with 16.3 free in a
   local environment where WP_DEBUG is set to true.
 * In order to test this, we encourage you to use the Health Check plugin troubleshooting
   mode, you can find the relevant steps to do this here: [https://yoast.com/help/how-to-check-for-plugin-conflicts/](https://yoast.com/help/how-to-check-for-plugin-conflicts/).
 * As a sidenote: we do see you have 3 must use plugins as well, which might filter
   or change the auto-updates specific options in your database. When every plugin
   but Yoast SEO is active and the warning does still persists, please temporary
   rename the mu-plugins directory in your WordPress installation and check if the
   warning still shows. If not, one of the 3 is interfering here.
    -  This reply was modified 4 years, 11 months ago by [Jeroen Rotty](https://wordpress.org/support/users/jeroenrotty/).
      Reason: extra information regarding to mu-plugins
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-an-array/#post-14477202)
 * We are going ahead and marking this issue as resolved due to inactivity. If you
   require any further assistance please create a new issue.

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

The topic ‘Warning in_array() expects 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/)

 * 4 replies
 * 4 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-an-array/#post-14477202)
 * Status: resolved