Title: Error: Wrong parameter count for array_unique()
Last modified: December 20, 2017

---

# Error: Wrong parameter count for array_unique()

 *  Resolved [fabianpnke](https://wordpress.org/support/users/fabianpnke/)
 * (@fabianpnke)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/error-wrong-parameter-count-for-array_unique/)
 * Hello,
 * I’m getting the following Error, when I try to access the post-sitemap.xml:
 *     ```
       Warning: Wrong parameter count for array_unique() in /home/httpd/docs/deister_wp/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-image-parser.php on line 239
   
       Warning: Invalid argument supplied for foreach() in /home/httpd/docs/deister_wp/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-image-parser.php on line 84
       ```
   
 * Is this because my old PHP Version? I’m using PHP 5.2.6.
    Many thanks and kind
   regards

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

 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/error-wrong-parameter-count-for-array_unique/#post-9800663)
 * While we are unable to confirm whether this is an issue specific to the outdated
   PHP version or not yet, we’d like to have some more information to confirm:
    - Does the issue occurs with the latest WordPress version?
    - Does the issue occurs with the latest Yoast SEO version?
 *  Thread Starter [fabianpnke](https://wordpress.org/support/users/fabianpnke/)
 * (@fabianpnke)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/error-wrong-parameter-count-for-array_unique/#post-9800722)
 * I’m using WordPress 4.9.2 and Yoast SEO 6.0
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/error-wrong-parameter-count-for-array_unique/#post-9808862)
 * That sounds like a plugin or theme conflict. Can you try and gather as much information
   for us as possible? Please perform the following:
    1. [Check for conflicts](https://kb.yoast.com/kb/how-to-check-for-plugin-conflicts).
   2. 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.
 *  [Jerlyn](https://wordpress.org/support/users/jerparx/)
 * (@jerparx)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/error-wrong-parameter-count-for-array_unique/#post-9820573)
 * Closed due to inactivity.

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

The topic ‘Error: Wrong parameter count for array_unique()’ 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

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

 * 4 replies
 * 3 participants
 * Last reply from: [Jerlyn](https://wordpress.org/support/users/jerparx/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/error-wrong-parameter-count-for-array_unique/#post-9820573)
 * Status: resolved