WPIntell

Source evidence

Undefined array key “ssba_bar_buttons”

Simple Share Buttons Adder · support · 2024-10-14T19:35:00+00:00

mixedsentiment
mediumseverity
0.85relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 22 rows with source links

27.3% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

16 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
joerij resolved
My php logs show this warning, every time a page loads: PHP Warning: Undefined array key "ssba_bar_buttons" in ../wp-content/plugins/simple-share-buttons-adder/php/class-buttons.php on line 602; Using WordPress 6.6.2 on PHP 8.2.24 with Simple Share Buttons Adder plugin version 8.5.1. This topic was modified 1 year, 7 months ago by joerij . Reason: added plugin version Hi @joerij , The warning you’re seeing is likely related to compatibility with PHP 8.2. While version 8.5.0 of the Simple Share Buttons Adder fixed many PHP 8.2 deprecation errors, this particular issue might still occur due to uninitialized array keys. Ensure your plugin is updated to the latest version, which you’ve already confirmed as 8.5.1. Try resetting the plugin settings by saving or resetting configurations in the settings menu to initialize all required keys. If you’re comfortable editing files, you can fix the issue temporarily by opening class-buttons.php , locating line 602, and replacing the code referencing ssba_bar_buttons with: $bar_buttons = $settings['ssba_bar_buttons'] ?? []; This change ensures the array key defaults to an empty array if not set. While the plugin is tested for PHP 8.2, some warnings might persist. If this affects functionality, consider downgrading to PHP 8.1 as a temporary workaround. Let us know if you need further assistance! — The ShareThis Support Team Configuring the plugin again solved the issue. Thanks for the support.

Comments

2 shown
ShareThis 2024-11-26T17:14:00+00:00

Hi @joerij , The warning you’re seeing is likely related to compatibility with PHP 8.2. While version 8.5.0 of the Simple Share Buttons Adder fixed many PHP 8.2 deprecation errors, this particular issue might still occur due to uninitialized array keys. Ensure your plugin is updated to the latest version, which you’ve already confirmed as 8.5.1. Try resetting the plugin settings by saving or resetting configurations in the settings menu to initialize all required keys. If you’re comfortable editing files, you can fix the issue temporarily by opening class-buttons.php , locating line 602, and replacing the code referencing ssba_bar_buttons with: $bar_buttons = $settings['ssba_bar_buttons'] ?? []; This change ensures the array key defaults to an empty array if not set. While the plugin is tested for PHP 8.2, some warnings might persist. If this affects functionality, consider downgrading to PHP 8.1 as a temporary workaround. Let us know if you need further assistance! — The ShareThis Support Team

joerij 2024-11-27T15:31:00+00:00

Configuring the plugin again solved the issue. Thanks for the support.