Title: must be of type array, GF_Field_HTML given
Last modified: May 7, 2021

---

# must be of type array, GF_Field_HTML given

 *  [gaborkukucska](https://wordpress.org/support/users/gaborkukucska/)
 * (@gaborkukucska)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/must-be-of-type-array-gf_field_html-given/)
 * Hi David,
 * Our server is ubuntu nginx php7.4-fpm
 * When submitting the gravity form the user gets a critical php error right before
   the success confirmation redirect and the email.
    The submission actually is 
   successful, the post is created with all the data including all the keywords 
   entered into the taxonomy field. It just fails before the emails get sent or 
   the success page is shown so users keep re submitting 🙂
 * The error from our log file:
 * PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array)
   must be of type array, GF_Field_HTML given in /wp-content/plugins/gravity-forms-
   custom-post-types/gfcptaddonbase.php:468
    Stack trace: #0 /wp-content/plugins/
   gravity-forms-custom-post-types/gfcptaddonbase.php(442): GFCPTAddonBase->delete_custom_taxonomies()#
   1 /wp-includes/class-wp-hook.php(294): GFCPTAddonBase->save_taxonomies() #2 /
   wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #3 /wp-includes/
   plugin.php(484): WP_Hook->do_action() #4 /wp-content/plugins/gravityforms/gravityforms.
   php(6110): do_action() #5 /wp-content/plugins/gravityforms/forms_model.php(4831):
   gf_do_action() #6 /wp-content/plugins/gravityforms/common.php(4300): GFFormsModel::
   create_post() #7 /wp-content/plugins/gravityforms/form_display.php(1533): GF”
 * Any ideas?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmust-be-of-type-array-gf_field_html-given%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [claygriffiths](https://wordpress.org/support/users/claygriffiths/)
 * (@claygriffiths)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/must-be-of-type-array-gf_field_html-given/#post-14520635)
 * Hi [@gaborkukucska](https://wordpress.org/support/users/gaborkukucska/), sorry
   for the delay getting back to you!
 * I had a hard time reproducing the exact error you are running into, but I put
   a speculative fix into 3.1.20, which I’m hoping will help. 🙂
 * Let me know how it works for you!

Viewing 1 replies (of 1 total)

The topic ‘must be of type array, GF_Field_HTML given’ is closed to new replies.

 * ![](https://ps.w.org/gravity-forms-custom-post-types/assets/icon-256x256.png?
   rev=2542252)
 * [Gravity Forms + Custom Post Types](https://wordpress.org/plugins/gravity-forms-custom-post-types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-custom-post-types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [claygriffiths](https://wordpress.org/support/users/claygriffiths/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/must-be-of-type-array-gf_field_html-given/#post-14520635)
 * Status: not resolved