Title: &quot;Warning: array_key_exists() expects&#8230;&quot; error
Last modified: August 21, 2016

---

# "Warning: array_key_exists() expects…" error

 *  Resolved [hunterhogan](https://wordpress.org/support/users/hunterhogan/)
 * (@hunterhogan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/warning-array_key_exists-expects-error/)
 * Approximately 50% of the time, at the top of any admin page, just below the “
   WordPress Tool Bar”, I will see the following error written in plain text:
 * > Warning: array_key_exists() expects parameter 2 to be array, null given in /
   > home/content/h/u/n/hunterhogan/html/wp-content/plugins/addthis-smart-layers/
   > addthis-smart_layers.php on line 188
 * It makes me want to cry.
 * I use smart layers and AddThis Share plugins, but not the follow plugin or the
   SSI plugin, but I have installed those before. Both of them have been deactivated
   and deleted.
 * On the smart layers settings page, it shows the correct ID. To make sure, I changed
   it to a bogus ID, saved, then changed it back. I also saved it a few times.
 * On the share page, it shows the ID in two places. It said, “✔ Valid AddThis Profile
   ID”, but I revalidated the ID just to make sure and it stills says I am a valid
   person–or at least that my ID is valid. (I guess I could still be invalid even
   if I had a valid ID.)
 * [http://www.hunterthinks.com/](http://www.hunterthinks.com/)
 * (The home page is served by WP, but not all pages are served by WP. Smart Layers
   are only on WP-served pages.)
 * Oh, after this issue started (two days ago?), I started receiving database connection
   timeouts from WP. I have no idea if the two are related.
 * [https://wordpress.org/plugins/addthis-smart-layers/](https://wordpress.org/plugins/addthis-smart-layers/)

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

 *  Thread Starter [hunterhogan](https://wordpress.org/support/users/hunterhogan/)
 * (@hunterhogan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/warning-array_key_exists-expects-error/#post-4867090)
 * I deleted both layers and share. I reinstalled only share. Error immediately 
   came back.
 * New intermittent error now. On a blank white page
 * > Warning: array_key_exists() expects parameter 2 to be array, null given in /
   > home/content/h/u/n/hunterhogan/html/wp-content/plugins/addthis-smart-layers/
   > addthis-smart_layers.php on line 188
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /home/content/h/u/n/hunterhogan/html/wp-content/plugins/addthis-
   > smart-layers/addthis-smart_layers.php:188) in /home/content/h/u/n/hunterhogan/
   > html/wp-includes/pluggable.php on line 1121
 *  [AMGill](https://wordpress.org/support/users/amgill/)
 * (@amgill)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/warning-array_key_exists-expects-error/#post-4867134)
 * This is happening to me too. There was a reponse to this support ticket on AddThis
   site that said they are working on it but that was on April 28. hope it is fixed
   soon
    [http://support.addthis.com/customer/portal/questions/6413312-wordpress-warnings](http://support.addthis.com/customer/portal/questions/6413312-wordpress-warnings)
 *  Thread Starter [hunterhogan](https://wordpress.org/support/users/hunterhogan/)
 * (@hunterhogan)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/warning-array_key_exists-expects-error/#post-4867192)
 * For reasons not related to this error, I deactivated all plugins a few days ago.
   When I reactivated some of the plugins, the above error seemed to be gone. Starting
   yesterday, however, I received the “Warning: array_key_exists() expects parameter
   2 to be array, null given in /home/content/h/u/n/hunterhogan/html/wp-content/
   plugins/addthis-smart-layers/addthis-smart_layers.php on line 188” warning intermittenly
   on admin pages. Starting this morning (Cairo time), the warning has become persistent.
 * I have not seen the “Cannot modify header information” yet.
 * Any word on the status of this error? Since at least three people are having 
   the problem, is it possible that if we give some information to your developers
   that they will be able to isolate the problem? If so, what information would 
   be useful?
 *  [Srijith V](https://wordpress.org/support/users/srijithv/)
 * (@srijithv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/warning-array_key_exists-expects-error/#post-4867198)
 * Hello, we have updated the plugin with the fix added. Please update and let us
   know if it worked. Thanks for reporting this issue.

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

The topic ‘"Warning: array_key_exists() expects…" error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/addthis-smart-layers_216e9f.svg)
 * [Smart Layers by AddThis](https://wordpress.org/plugins/addthis-smart-layers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/addthis-smart-layers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/addthis-smart-layers/)
 * [Active Topics](https://wordpress.org/support/plugin/addthis-smart-layers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/addthis-smart-layers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/addthis-smart-layers/reviews/)

## Tags

 * [array_key_exists](https://wordpress.org/support/topic-tag/array_key_exists/)
 * [Cannot modify header information](https://wordpress.org/support/topic-tag/cannot-modify-header-information/)
 * [Intermittent](https://wordpress.org/support/topic-tag/intermittent/)

 * 4 replies
 * 3 participants
 * Last reply from: [Srijith V](https://wordpress.org/support/users/srijithv/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/warning-array_key_exists-expects-error/#post-4867198)
 * Status: resolved