Title: Undefined array key warnings
Last modified: September 16, 2022

---

# Undefined array key warnings

 *  [janh2](https://wordpress.org/support/users/janh2/)
 * (@janh2)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-warnings-2/)
 * When Sassy Social Share has been enabled but not configured on a website, it 
   will produce PHP warnings because options are not yet set.
 * Warnings are coming from sassy-social-share/public/class-sassy-social-share-public.
   php:1222 and following lines because of $this->options[‘horizontal_bg_color_default’]!
   = ” which gets called in wp_enqueue_scripts while $this->options hasn’t been 
   filled with values.
 * Please initialize options with default / empty values, skip printing inline styles
   if configuration is missing, or use isset/empty/null coalescing operator.

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

 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-warnings-2/#post-16017526)
 * Default values are already set in the function `heateor_sss_save_default_options`
   in the main file of the plugin. I would suggest you check the `Delete all the
   options on plugin deletion` checkbox in the `Miscellaneous` section at the plugin
   configuration page, delete and then re-install the plugin.
 *  Thread Starter [janh2](https://wordpress.org/support/users/janh2/)
 * (@janh2)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-warnings-2/#post-16017586)
 * Thanks, that’s not the issue. The code is producing PHP warnings unless you’ve
   saved the options at least once which might not happen in a multi-site context.
 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-warnings-2/#post-16020617)
 * Oh, it’s Multisite. Then we will release the bugfix version within the next couple
   of days. I will keep you posted here.

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

The topic ‘Undefined array key warnings’ is closed to new replies.

 * ![](https://ps.w.org/sassy-social-share/assets/icon-128x128.png?rev=3258279)
 * [Social Sharing Plugin - Sassy Social Share](https://wordpress.org/plugins/sassy-social-share/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sassy-social-share/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sassy-social-share/)
 * [Active Topics](https://wordpress.org/support/plugin/sassy-social-share/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sassy-social-share/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sassy-social-share/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Heateor Support](https://wordpress.org/support/users/heateor/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-warnings-2/#post-16020617)
 * Status: not resolved