Title: PHP Warning: array_key_exists expects parameter 2 to be array
Last modified: July 14, 2019

---

# PHP Warning: array_key_exists expects parameter 2 to be array

 *  Resolved [Rasheed Bydousi](https://wordpress.org/support/users/rasheed/)
 * (@rasheed)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2-to-be-array/)
 * Hello
 * At error_log file I just found an error related to Shortcoder Plugin:
 * `[14-Jul-2019 10:12:13 UTC] PHP Warning: array_key_exists() expects parameter
   2 to be array, string given in /home/username/public_html/wp-content/plugins/
   shortcoder/shortcoder.php on line 65`
 * I will be happy to know what causes the problem and how it can be solved.
 * I’ve already updated WordPress and all plugins but it doesn’t help
 * Thanks

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

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2-to-be-array/#post-11730333)
 * Hi [@rasheed](https://wordpress.org/support/users/rasheed/),
 * Can you please confirm no other plugin is causing this issue ?
    Because, [https://plugins.trac.wordpress.org/browser/shortcoder/trunk/shortcoder.php#L65](https://plugins.trac.wordpress.org/browser/shortcoder/trunk/shortcoder.php#L65)
   expects `$atts` to be array but string is received.
 * This can happen only when someother plugin is interfering.
 * Can you please confirm ?
 * Thanks,
    Aakash
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2-to-be-array/#post-11868447)
 * Closing this as there is no update.

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

The topic ‘PHP Warning: array_key_exists expects parameter 2 to be array’ is closed
to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [vaakash](https://wordpress.org/support/users/vaakash/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2-to-be-array/#post-11868447)
 * Status: resolved