Title: Error: Undefined array key &#8220;plugins&#8221;
Last modified: September 27, 2023

---

# Error: Undefined array key “plugins”

 *  [burnuser](https://wordpress.org/support/users/burnuser/)
 * (@burnuser)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-undefined-array-key-plugins/)
 * WP 6.3.1 on PHP 8.1
 * When updating other plugins, I get sometimes such an error message:
 * Warning: Undefined array key “plugins” in …\wp-content\plugins\tk-google-fonts\
   includes\admin\admin.php on line 27
 * Warning: foreach() argument must be of type array|object, null given in …\wp-
   content\plugins\tk-google-fonts\includes\admin\admin.php on line 27
 * Everything seems to work (no error in website), but the error message is very
   irritating.
 * I hope this can be fixed, because I like your plugin! I recommended it to others
   in the past and would like to do so in the future.

The topic ‘Error: Undefined array key “plugins”’ is closed to new replies.

 * ![](https://ps.w.org/tk-google-fonts/assets/icon-256x256.png?rev=1371356)
 * [TK Google Fonts GDPR Compliant](https://wordpress.org/plugins/tk-google-fonts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tk-google-fonts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tk-google-fonts/)
 * [Active Topics](https://wordpress.org/support/plugin/tk-google-fonts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tk-google-fonts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tk-google-fonts/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [burnuser](https://wordpress.org/support/users/burnuser/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/error-undefined-array-key-plugins/)
 * Status: not resolved