• Updating Simple Share Buttons Adder to version 6.0.2 makes my website spit out the following errors:

    Notice: Undefined index: ssba_custom_styles_enabled in [...]/wp-content/plugins/simple-share-buttons-adder/inc/ssba_styles.php on line 38

    Notice: Undefined index: ssba_additional_css in [...]/wp-content/plugins/simple-share-buttons-adder/inc/ssba_styles.php on line 138

    Examining ssba_styles.php reveals that the missing indices should come from
    `get_ssba_settings()´
    but where that function comes from is not clear to me.

    Any assistance would be greatly appreciated 🙂

    https://ww.wp.xz.cn/plugins/simple-share-buttons-adder/

Viewing 1 replies (of 1 total)
  • Thread Starter Esbilon

    (@esbilon)

    I came up with a hack that seems to solve my problem

    The two bits of code are included in if statements that activate if they are Y or non-empty respectively. My solution was to extend those if statements to also check whether the variable in question is set, like so:

    if (isset($arrSettings['ssba_custom_styles_enabled']) == '' || $arrSettings['ssba_custom_styles_enabled'] != 'Y') {

    if (isset($arrSettings['ssba_additional_css']) != '' && $arrSettings['ssba_additional_css'] != '') {

    It’s not particularly pretty, but it works.

Viewing 1 replies (of 1 total)

The topic ‘Undefined indices in version 6.0.2’ is closed to new replies.