• 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

    (@heateor)

    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

    (@janh2)

    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

    (@heateor)

    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.