WordPress.org

Forums

Smart Layers by AddThis
[resolved] "Warning: array_key_exists() expects..." error (5 posts)

  1. hunterhogan
    Member
    Posted 11 months ago #

    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/

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

  2. hunterhogan
    Member
    Posted 11 months ago #

    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

  3. AMGill
    Member
    Posted 11 months ago #

    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

  4. hunterhogan
    Member
    Posted 11 months ago #

    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?

  5. Srijith V
    AddThis Samurai
    Plugin Author

    Posted 10 months ago #

    Hello, we have updated the plugin with the fix added. Please update and let us know if it worked. Thanks for reporting this issue.

Reply

You must log in to post.

About this Plugin

  • Smart Layers by AddThis
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic