Title: wpforms critical error input class
Last modified: March 29, 2023

---

# wpforms critical error input class

 *  Resolved [Agunter999](https://wordpress.org/support/users/agunter999/)
 * (@agunter999)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wpforms-critical-error-input-class/)
 * Hi,
 * We have just updated our website and plugins to the latest version of everything
   and this error has appaeared
 * Any help?
 *     ```wp-block-code
       Warning: Undefined array key "input_class" in /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/mailchimp-for-wp/integrations/wpforms/class-field.php on line 193
   
       Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/mailchimp-for-wp/integrations/wpforms/class-field.php:193 Stack trace: #0 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/mailchimp-for-wp/integrations/wpforms/class-field.php(193): array_map('sanitize_html_c...', NULL) #1 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/wpforms/includes/fields/class-base.php(2620): MC4WP_WPForms_Field->field_display(Array, Array, Array) #2 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/wpforms/includes/fields/class-base.php(2594): WPForms_Field->field_display_classic(Array, Array) #3 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/class-wp-hook.php(308): WPForms_Field->field_display_proxy(Array, Array, Array) #4 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #5 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/wpforms/src/Frontend/Frontend.php(2313): do_action('wpforms_display...', Array, Array, Array) #7 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/wpforms/src/Frontend/Frontend.php(797): WPForms\Frontend\Frontend->render_field(Array, Array) #8 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/class-wp-hook.php(308): WPForms\Frontend\Frontend->fields(Array, NULL, false, false, Array) #9 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #10 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/wpforms/src/Frontend/Frontend.php(297): do_action('wpforms_fronten...', Array, NULL, false, false, Array) #12 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/wpforms/src/Frontend/Frontend.php(2129): WPForms\Frontend\Frontend->output('7461', false, false) #13 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/shortcodes.php(355): WPForms\Frontend\Frontend->shortcode(Array, '', 'wpforms') #14 [internal function]: do_shortcode_tag(Array) #15 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(wpform...', 'do_shortcode_ta...', '\t\t\t<div class=...') #16 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/class-wp-hook.php(308): do_shortcode('\t\t\t<div class=...') #17 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/plugin.php(205): WP_Hook->apply_filters('\t\t\t<div class=...', Array) #18 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/post-template.php(255): apply_filters('the_content', '<!-- wp:grimloc...') #19 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/grimlock/inc/grimlock-template-functions.php(730): the_content() #20 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/class-wp-hook.php(308): grimlock_page_content(Array) #21 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #22 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #23 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/grimlock/inc/component/class-grimlock-page-component.php(41): do_action('grimlock_page_t...', Array) #24 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/grimlock/inc/class-grimlock.php(674): Grimlock_Page_Component->render() #25 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/class-wp-hook.php(308): Grimlock->page('') #26 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #27 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #28 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/grimlock/templates/page-templates/template-full-width-narrower.php(28): do_action('grimlock_page') #29 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-includes/template-loader.php(106): include('/homepages/39/d...') #30 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-blog-header.php(19): require_once('/homepages/39/d...') #31 /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/index.php(17): require('/homepages/39/d...') #32 {main} thrown in /homepages/39/d646555586/htdocs/clickandbuilds/TheRejoinEUParty/wp-content/plugins/mailchimp-for-wp/integrations/wpforms/class-field.php on line 193
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwpforms-critical-error-input-class%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wpforms-critical-error-input-class/#post-16608462)
 * Hey [@agunter999](https://wordpress.org/support/users/agunter999/),
 * Thanks for reaching out to us.
 * Can you please let us know which version of our plugin you are using?
 *  Thread Starter [Agunter999](https://wordpress.org/support/users/agunter999/)
 * (@agunter999)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wpforms-critical-error-input-class/#post-16609358)
 * 4.9.2 the free version.
 *  [spca67](https://wordpress.org/support/users/spca67/)
 * (@spca67)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wpforms-critical-error-input-class/#post-16613478)
 * We have the same problem. It auto-updated and our entire website broke.
 * I’ve had to deactivate the plugin. We are also using the free version.
 * Version 4.9.2
 * I’ll have to find another plugin because we can’t be without this, as a charity
   organisation.
 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wpforms-critical-error-input-class/#post-16613913)
 * We are working on a solution right now, thanks for letting us know about the 
   issue. 
   The issue seems to have been caused by a change in the WpForms plugin(
   they removed a value from that array).While we’ve not been able to reproduce 
   the issue on our own test servers, from the errors that you’ve shared we should
   be able to solve the problem. Thanks again for reporting the issue. We will let
   you know here once a solution is available.
 *  Thread Starter [Agunter999](https://wordpress.org/support/users/agunter999/)
 * (@agunter999)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wpforms-critical-error-input-class/#post-16613934)
 * Thanks, rolling back the plugin has provided me a temporary fix but I look forward
   to the update. 
   Thanks
 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wpforms-critical-error-input-class/#post-16613949)
 * Did you roll back MC4WP or WpForms?
 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wpforms-critical-error-input-class/#post-16613955)
 * A new version of MC4WP has been released (v4.9.3). Please update to the latest
   version that will solve the fatal error. Thanks again for reporting the issue!

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

The topic ‘wpforms critical error input class’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Lap](https://wordpress.org/support/users/lapzor/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/wpforms-critical-error-input-class/#post-16613955)
 * Status: resolved