Title: PHP Warning: Undefined array key
Last modified: October 17, 2024

---

# PHP Warning: Undefined array key

 *  Resolved [Austin](https://wordpress.org/support/users/austyfrosty/)
 * (@austyfrosty)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-22/)
 * Please don’t assume there is an index key.
 * `PHP Warning: Undefined array key "deactivate" in /var/www/html/wp-content/plugins/
   social-pug/inc/class-social-pug.php on line 588`
 * In select environments, and user roles, there is no ‘deactivate’ key in the array(
   in our installs). Please add a check in this case if isset($links[‘deactivate’])
   or !empty($links[‘deactivate’]).

Viewing 1 replies (of 1 total)

 *  Plugin Author [NerdPress](https://wordpress.org/support/users/nerdpressteam/)
 * (@nerdpressteam)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-22/#post-18080250)
 * Hi [@austyfrosty](https://wordpress.org/support/users/austyfrosty/),
 * Thanks for reporting this! I’ve logged the warning and we’ll will work on addressing
   it soon. 🙂
 * (I’m going to mark this thread as resolved, just to keep things tidy here… but
   if there’s anything else to add, or if it’s causing problems beyond a warning
   in the logs, by all means let us know and I’ll escalate it further.)
 * Cheers,
   Andrew

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning: Undefined array key’ is closed to new replies.

 * ![](https://ps.w.org/social-pug/assets/icon-256x256.png?rev=3346569)
 * [Hubbub Lite - Fast, free social sharing and follow buttons](https://wordpress.org/plugins/social-pug/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/social-pug/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/social-pug/)
 * [Active Topics](https://wordpress.org/support/plugin/social-pug/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-pug/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-pug/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [NerdPress](https://wordpress.org/support/users/nerdpressteam/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-22/#post-18080250)
 * Status: resolved