Title: Ko-Fi Button plugin undefined array keys
Last modified: May 10, 2026

---

# Ko-Fi Button plugin undefined array keys

 *  [Gioxx](https://wordpress.org/support/users/gioxx/)
 * (@gioxx)
 * [4 days, 6 hours ago](https://wordpress.org/support/topic/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.
    -  This topic was modified 4 days, 6 hours ago by [Gioxx](https://wordpress.org/support/users/gioxx/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fko-fi-button-plugin-undefined-array-keys%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Cameron Jones](https://wordpress.org/support/users/cameronjonesweb/)
 * (@cameronjonesweb)
 * [4 days, 6 hours ago](https://wordpress.org/support/topic/ko-fi-button-plugin-undefined-array-keys/#post-18903863)
 * Hello [@gioxx](https://wordpress.org/support/users/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](https://wordpress.org/support/users/gioxx/)
 * (@gioxx)
 * [2 days, 20 hours ago](https://wordpress.org/support/topic/ko-fi-button-plugin-undefined-array-keys/#post-18905169)
 * Sure, I can list some of the recurring log entries:
 *     ```wp-block-code
       [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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fko-fi-button-plugin-undefined-array-keys%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/ko-fi-button/assets/icon-256x256.png?rev=3252422)
 * [Ko-fi Button](https://wordpress.org/plugins/ko-fi-button/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ko-fi-button/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ko-fi-button/)
 * [Active Topics](https://wordpress.org/support/plugin/ko-fi-button/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ko-fi-button/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ko-fi-button/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Gioxx](https://wordpress.org/support/users/gioxx/)
 * Last activity: [2 days, 20 hours ago](https://wordpress.org/support/topic/ko-fi-button-plugin-undefined-array-keys/#post-18905169)
 * Status: not resolved