• 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.

    • This topic was modified 4 days, 12 hours ago by Gioxx.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Cameron Jones

    (@cameronjonesweb)

    Hello @gioxx

    Thanks for letting us know. This indicates that the widget likely hasn’t been saved properly, and saving the widget will prevent the errors occuring.

    Without seeing the actual error it maybe difficult to diagnose, so if you could share the contents of the logs that would be appreciated.

    Thanks

    Thread Starter Gioxx

    (@gioxx)

    Sure, I can list some of the recurring log entries:

    [09-May-2026 22:01:03 UTC] PHP Warning:  Undefined array key "title" in /public_html/wp-content/plugins/ko-fi-button/class-ko-fi-button-widget.php on line 54
    [09-May-2026 22:01:03 UTC] PHP Warning: Undefined array key "text" in /public_html/wp-content/plugins/ko-fi-button/class-ko-fi-button-widget.php on line 55
    [09-May-2026 22:01:03 UTC] PHP Warning: Undefined array key "color" in /public_html/wp-content/plugins/ko-fi-button/class-ko-fi-button-widget.php on line 56
    [09-May-2026 22:01:03 UTC] PHP Warning: Undefined array key "hyperlink" in /public_html/wp-content/plugins/ko-fi-button/class-ko-fi-button-widget.php on line 57
    [09-May-2026 22:01:03 UTC] PHP Warning: Undefined array key "code" in /public_html/wp-content/plugins/ko-fi-button/class-ko-fi-button-widget.php on line 58
    [09-May-2026 22:01:03 UTC] PHP Warning: Undefined array key "button_alignment" in /public_html/wp-content/plugins/ko-fi-button/class-ko-fi-button-widget.php on line 59
    [09-May-2026 22:01:03 UTC] PHP Warning: Undefined array key "html_title" in /public_html/wp-content/plugins/ko-fi-button/class-ko-fi-button-widget.php on line 60
    [09-May-2026 22:01:03 UTC] PHP Warning: Undefined array key "" in /public_html/wp-content/plugins/ko-fi-button/class-ko-fi.php on line 244

    Keep in mind that the errors have stopped right now precisely because I rolled back to the previous version. The button on the home page is working normally again, with the correct colors, text, and so on. The problems started when the plugin updated automatically. If you’d like, I can manually update the plugin (I’ve actually disabled automatic updates for now) and see what happens. Or I can retrieve other logs (assuming I know which ones).

    Thanks!

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

You must be logged in to reply to this topic.