Title: PHP 8.1 Warning: Undefined array key
Last modified: July 23, 2022

---

# PHP 8.1 Warning: Undefined array key

 *  [dashamiro](https://wordpress.org/support/users/dashamiro/)
 * (@dashamiro)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-1-warning-undefined-array-key/)
 * When changing from PHP 7.4 to 8.1
 * Warning: Undefined array key 0 in ..\OpenServer\domains\datt\wp-content\plugins\
   seo-image-optimizer\options\option-panel.php on line 141
 * Could you fix it, Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-1-warning-undefined-array-key/#post-15854956)
 * Hello [@dashamiro](https://wordpress.org/support/users/dashamiro/),
 * Thanks for using our plugin.
 * We recommend you to use php 8.0 because the php 8.1 is very new and plugins an
   themes still updating their code base support php 8.1.
 * we are working on updating the plugins to support the php 7.4, 8.0 and 8.1.
 * Thanks and regards.

Viewing 1 replies (of 1 total)

The topic ‘PHP 8.1 Warning: Undefined array key’ is closed to new replies.

 * ![](https://ps.w.org/seo-image-optimizer/assets/icon-256x256.png?rev=2350359)
 * [Image Optimization For SEO](https://wordpress.org/plugins/seo-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-image-optimizer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-1-warning-undefined-array-key/#post-15854956)
 * Status: not resolved