Title: PHP Warning: Undefined array key &#8220;name&#8221;
Last modified: January 29, 2023

---

# PHP Warning: Undefined array key “name”

 *  Resolved [clauded007](https://wordpress.org/support/users/clauded007/)
 * (@clauded007)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-name-2/)
 * Getting this error when a HTML field is present in forms with version 1.6.16 
   of weForms:
 * `PHP Warning: Undefined array key "name" in /home/my_site/public_html/wp-content/
   plugins/weforms/includes/fields/class-field-html.php on line 26`

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

 *  [Elana Davis](https://wordpress.org/support/users/elanasparkle/)
 * (@elanasparkle)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-name-2/#post-16426130)
 * Hello [@clauded007](https://wordpress.org/support/users/clauded007/),
 * ​Thank you for reaching out to support! This warning seams to indicate there 
   might be something with the name of your form, are you able to change the name
   of your form and see if that resolves that warning? Also, WordPress warnings 
   can be safely be ignored and you can remove the warnings by putting the below
   code in your wp-config.php in the root directory of your site.
 *     ```wp-block-code
       define( 'WP_DEBUG', false );
   
       define( 'WP_DEBUG_DISPLAY', false );
       ```
   
 *  Thread Starter [clauded007](https://wordpress.org/support/users/clauded007/)
 * (@clauded007)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-name-2/#post-16427644)
 * Thanks for the reply but unfortunatly, changing the name of the form doesn’t 
   remove the warning. Is it possible that the error is refering to the name of 
   the field (and a html field has no name)?
 *  [brandonco](https://wordpress.org/support/users/brandonco/)
 * (@brandonco)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-name-2/#post-16429998)
 * Hi [@clauded007](https://wordpress.org/support/users/clauded007/), I just want
   to make you aware that this is just a warning and not an error. If you use the
   code Elana provided above in your **wp-config.php** file it will safely ignore
   the warning.
 * I hope this helps!
 *  Thread Starter [clauded007](https://wordpress.org/support/users/clauded007/)
 * (@clauded007)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-name-2/#post-16431698)
 * I’m aware it’s only a warning however I think it’s a symptom of a programming
   error.
 *  [brandonco](https://wordpress.org/support/users/brandonco/)
 * (@brandonco)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-name-2/#post-16446088)
 * Hi [@clauded007](https://wordpress.org/support/users/clauded007/),
 * Sorry I just wanted to make sure you were aware. We did identify this as a bug
   and there will be a fix for this in the upcoming WeFroms update.
 * We appreciate you for bringing this issue to our attention.

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

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

 * ![](https://ps.w.org/weforms/assets/icon-256x256.png?rev=1978687)
 * [weForms - Easy Drag & Drop Contact Form Builder For WordPress](https://wordpress.org/plugins/weforms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/weforms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/weforms/)
 * [Active Topics](https://wordpress.org/support/plugin/weforms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weforms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weforms/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [brandonco](https://wordpress.org/support/users/brandonco/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-name-2/#post-16446088)
 * Status: resolved