Title: Undefined array keys &#8220;required_fields&#8221; and &#8220;email_fields&#8221;
Last modified: July 21, 2021

---

# Undefined array keys “required_fields” and “email_fields”

 *  Resolved [Tunn](https://wordpress.org/support/users/iuriem/)
 * (@iuriem)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-keys-required_fields-and-email_fields/)
 * Just installed the WordPress 5.8 with HTML Forms 1.3.22. Found two PHP Warnings
   in the error_log file after I tried to send a test message from a contact form
   created with HTML Forms plugin:
 * > Undefined array key “required_fields” in …/wp-content/plugins/html-forms/views/
   > tab-fields.php on line 21
   >  Undefined array key “email_fields” in …/wp-content/
   > plugins/html-forms/views/tab-fields.php on line 22
 * HTML Forms 1.3.22
    Wordpress 5.8

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

 *  [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-keys-required_fields-and-email_fields/#post-14690430)
 * What PHP version are you using?
    If you are not sure you can ask your webhost,
   or install a “phpinfo” plugin to see the version number.
 * Thanks for letting me know.
 *  Thread Starter [Tunn](https://wordpress.org/support/users/iuriem/)
 * (@iuriem)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-keys-required_fields-and-email_fields/#post-14692761)
 * PHP 8.0 (ea-php80).
 * Checked today again. The warning can be reproduced when a new form is added (
   probably after saving) with the default fields.
 * I don’t know, but maybe this warning is produced because of my HTML Forms custom
   hooks, I will check this later.
 *  [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-keys-required_fields-and-email_fields/#post-14692939)
 * Would be great if you can test without your custom hooks yes. And otherwise maybe
   see if it’s related to PHP8, switching to PHP 7.4 (as a test). If it is not your
   custom hooks, please do let us know what you find!!
 *  Thread Starter [Tunn](https://wordpress.org/support/users/iuriem/)
 * (@iuriem)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/undefined-array-keys-required_fields-and-email_fields/#post-14746414)
 * Ok, so far the problem has not been repeated, I guess the plugin was not the 
   cause, so we can consider it solved. Thank you for the support!
 *  [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/undefined-array-keys-required_fields-and-email_fields/#post-14746707)
 * Thanks for letting me know.

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

The topic ‘Undefined array keys “required_fields” and “email_fields”’ is closed 
to new replies.

 * ![](https://ps.w.org/html-forms/assets/icon-256x256.png?rev=1754345)
 * [HTML Forms - Simple WordPress Forms Plugin](https://wordpress.org/plugins/html-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/html-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/html-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/html-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/html-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/html-forms/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 5 replies
 * 2 participants
 * Last reply from: [Lap](https://wordpress.org/support/users/lapzor/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/undefined-array-keys-required_fields-and-email_fields/#post-14746707)
 * Status: resolved