• Resolved StevenW123

    (@stevenw123)


    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

    (@wpmudevsupport11)

    Hi @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

    (@stevenw123)

    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

    (@wpmudevsupport12)

    Hi @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://www.ads-software.com/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.