Title: critical errors
Last modified: August 5, 2020

---

# critical errors

 *  Resolved [StevenW123](https://wordpress.org/support/users/stevenw123/)
 * (@stevenw123)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/critical-errors-5/)
 * Hi,
    I got a number of critical errors when using another plugin through my dashboard.
   As you can see below in the error details, it’s forminator that is causing the
   problem (I’ve xxx-ed out my site). Can you fix this, please? Thanks, Steve Error
   Details ============= An error of type E_ERROR was caused in line 377 of the 
   file /home/customer/www/xxxxxxxxxxxxxxpublic_html/wp-content/plugins/forminator/
   library/model/class-base-form-model.php. Error message: Uncaught Error: Call 
   to a member function get_field() on bool in /home/customer/www/xxxxxxxxxxxxxxpublic_html/
   wp-content/plugins/forminator/library/model/class-base-form-model.php:377 Stack
   trace: #0 /home/customer/www/xxxxxxxxxxxxxxpublic_html/wp-content/plugins/forminator/
   admin/classes/class-admin.php(224): Forminator_Base_Form_Model->get_models_by_field_and_version(‘
   stripe-1’, ‘1.9-alpha.1’) #1 /home/customer/www/xxxxxxxxxxxxxxpublic_html/wp-
   content/plugins/forminator/admin/classes/class-admin.php(320): Forminator_Admin-
   >has_old_stripe_forms() #2 /home/customer/www/xxxxxxxxxxxxxxpublic_html/wp-includes/
   class-wp-hook.php(287): Forminator_Admin->show_stripe_updated_notice(”) #3 /home/
   customer/www/xxxxxxxxxxxxxxpublic_html/wp-includes/class-wp-hook.php(311): WP_Hook-
   >apply_filters(NULL, Array) #4 /home/customer/www/xxxxxxxxxxxxxxpublic_html/wp-
   includes/plugin.php(478): WP_Hook->do_action(Array) #5 /home/customer/www/xxxxxxxxxxxxxxpublic_html/
   wp-admin/admin-header.php(281):

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

 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/critical-errors-5/#post-13217330)
 * Hi [@stevenw123](https://wordpress.org/support/users/stevenw123/),
 * That’s an odd issue, could we know you notice the above conflict with which exact
   plugin?
 * Could you please go to the reported file ie /plugins/forminator/library/model/
   class-base-form-model.php
 * And change the line 376 from:
    `foreach ( $data as $model ) {`
 * To:
 *     ```
       foreach ( array_filter( $data ) as $model ) {
       ```
   
 * And see whether you still get the same issue or not? Please do let us know how
   that goes so that we could check further if needed regarding this in the plugin
   side.
 * Kind Regards,
    Nithin
 *  Thread Starter [StevenW123](https://wordpress.org/support/users/stevenw123/)
 * (@stevenw123)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/critical-errors-5/#post-13221707)
 * Hi Nithin,
    Thanks for the info.
 * Pretty Link is the plugin Forminator caused problems for.
 * I never mess with code if I can help it. Can’t you just update the plugin because
   I can’t be the only one having this issue? (Just because I’m the only one to 
   report it doesn’t mean some people haven’t tested the plugin, suffered the error,
   so deleted it without a second thought.)
 * Steve
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/critical-errors-5/#post-13229113)
 * Hi [@stevenw123](https://wordpress.org/support/users/stevenw123/)
 * Thank you for the update.
 * I found that this is a reported issue and our developers are already working 
   on a fix and I will check if this can be included on the upcoming update.
 * I’m also adding this ticket as one more report so our developers will know more
   users are having the problem.
 * I checked the provided solution on [https://wordpress.org/support/topic/critical-errors-5/#post-13217330](https://wordpress.org/support/topic/critical-errors-5/#post-13217330)
   and it worked as expected, could you please try to implement this fix for now?
 * Kindly let us know if this worked for you.
    Best Regards Patrick Freitas

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

The topic ‘critical errors’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

 * [critical errors](https://wordpress.org/support/topic-tag/critical-errors/)

 * 3 replies
 * 3 participants
 * Last reply from: [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/critical-errors-5/#post-13229113)
 * Status: resolved