Ko-Fi Button plugin undefined array keys
-
I have 2427x warning from the latest version of the plugin in the php error log (wp-content/plugins/ko-fi-button/class-ko-fi-button-widget.php wp-content/plugins/ko-fi-button/class-ko-fi.php).
The Ko-Fi Button widget class accesses array keys (title, text, color, hyperlink, code, button_alignment, html_title) without checking if they exist first. Widget options may not be initialized properly or defaults are missing.
I think it can be possibile to update the plugin to use isset() or array_key_exists() checks before accessing array values, or initialize default values for all expected widget options.
Hope to have feedback soon, and thanks for your work!
Edit: after rolling back to the previous version, everything is working properly again, just as an additional test and note.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.