Support » Plugins and Hacks » Smart Layers by AddThis » [Resolved] "Warning: array_key_exists() expects…" error

[Resolved] "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.)


    (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.


Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    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

    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?

    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 ‘[Resolved] "Warning: array_key_exists() expects…" error’ is closed to new replies.
Skip to toolbar