Title: Warning: array_key_exists() [function.array-key-exists]:
Last modified: August 21, 2016

---

# Warning: array_key_exists() [function.array-key-exists]:

 *  Resolved [David Swanson](https://wordpress.org/support/users/dsfinancial/)
 * (@dsfinancial)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/warning-array_key_exists-functionarray-key-exists-4/)
 * Hi, when I add the shortcode to a page I receive this error.
 * Warning: array_key_exists() [function.array-key-exists]: The second argument 
   should be either an array or an object in /(mydirectory)/wp-content/plugins/postaffiliatepro/
   Shortcode/Cache.class.php on line 25
 * I removed my true directory and used (mydirectory) since this is a public forum.
 * The shortcode still works but displays that error.
 * Please help.
 * [http://wordpress.org/extend/plugins/postaffiliatepro/](http://wordpress.org/extend/plugins/postaffiliatepro/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [David Swanson](https://wordpress.org/support/users/dsfinancial/)
 * (@dsfinancial)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/warning-array_key_exists-functionarray-key-exists-4/#post-3790939)
 * Found the error. In the shortcode [affiliate item=”loginurl” caption=”Log me 
   in!”/]
 * It does not like the “!” if you remove the ! it works just fine 🙂

Viewing 1 replies (of 1 total)

The topic ‘Warning: array_key_exists() [function.array-key-exists]:’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/postaffiliatepro_d0dfe6.svg)
 * [Post Affiliate Pro](https://wordpress.org/plugins/postaffiliatepro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postaffiliatepro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postaffiliatepro/)
 * [Active Topics](https://wordpress.org/support/plugin/postaffiliatepro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postaffiliatepro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postaffiliatepro/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [David Swanson](https://wordpress.org/support/users/dsfinancial/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/warning-array_key_exists-functionarray-key-exists-4/#post-3790939)
 * Status: resolved