• Resolved bhkh

    (@bhkh)


    Hello! I just installed your plugin and it’s awesome. It lets me do exactly what I want.

    But… Now I’m getting a fatal error in my dashboard. When I am looking at posts (or custom post types) and I try to filter the posts, I get this error (scrubbed of personal info)

    Notice: Array to string conversion in /home/my_user/mywebsite.org/wp-admin/edit.php on line 319

    Warning: Cannot modify header information – headers already sent by (output started at /home/my_user/mywebsite.org/wp-admin/edit.php:319) in /home/my_user/mywebsite.org/wp-admin/admin-header.php on line 9

    Fatal error: Uncaught Error: Call to a member function get_field() on bool in /home/my_user/mywebsite.org/wp-content/plugins/forminator/library/model/class-base-form-model.php:377 Stack trace: #0 /home/my_user/mywebsite.org/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/my_user/mywebsite.org/wp-content/plugins/forminator/admin/classes/class-admin.php(320): Forminator_Admin->has_old_stripe_forms() #2 /home/my_user/mywebsite.org/wp-includes/class-wp-hook.php(287): Forminator_Admin->show_stripe_updated_notice(”) #3 /home/my_user/mywebsite.org/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #4 /home/my_user/mywebsite.org/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #5 /home/my_user/mywebsite.org/wp-admin/admin-header.php(281): do_action(‘admin_notices’) #6 /home/my_user/mywebsite.org/wp-admin/edit.ph in /home/my_user/mywebsite.org/wp-content/plugins/forminator/library/model/class-base-form-model.php on line 377

    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    I still get this error when all other plugins are disabled. I get the first two errors even without Forminator, but they don’t seem to have been causing a problem before.

    It’s strange because filtering posts on the dashboard doesn’t have anything to do with Forminator, right? And everything else on the site seems to work fine.

    I have tested on php 7.4 and 7.3.
    I am running wordpress 5.4.2
    Forminator Version 1.13.3

    Please let me know if you need other information.

    Thanks for the great plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @bhkh ,

    Can you try to re-install the plugin? Disable it, delete and install again? This fatal error can be caused by corrupted installation.
    Let us know how it goes.

    kind regards,
    Kasia

    Thread Starter bhkh

    (@bhkh)

    Thanks for such a fast response!

    I kept working on troubleshooting and found that when I removed this custom function, it started working with no error.

    // includes custom post type sutta in tag archive page
    function themeprefix_show_cpt_archives( $query ) {
     if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
     $query->set( 'post_type', array(
     'post', 'nav_menu_item', 'sutta'
     ));
     return $query;
     }
    }
    add_filter( 'pre_get_posts', 'themeprefix_show_cpt_archives' );

    Thanks for the awesome plugin. I needed something that could send context information about the page where the form was filled and your plugin worked immediately for that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Uncaught Error: Call to a member function get_field() on bool’ is closed to new replies.