Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Awesome, thanks, @neosinner!

    I actually just ran into this error. I confirmed it’s happening on a brand new installation of WordPress with the only plugins installed and activated being ACF and MailPoet.

    Steps to reproduce:

    1) New WordPress 6.8.1 install
    2) Install and activate Mailpoet 5.12.7
    3) Install and activate Advanced Custom Fields 6.4.2
    4) Create a Field Group in ACF
    5) Attempt to set the Location Rules to “Show this field group if [Post Template]”

    It will result in the following error:

    Fatal error: Uncaught Error: Object of class WP_Block_Template could not be converted to string in /wp-includes/formatting.php:1096

    Stack trace:
    #0 /wp-includes/formatting.php(4664): wp_check_invalid_utf8(Object(WP_Block_Template))
    #1 /wp-content/plugins/advanced-custom-fields/includes/acf-input-functions.php(451): esc_html(Object(WP_Block_Template))
    #2 /wp-content/plugins/advanced-custom-fields/includes/acf-input-functions.php(436): acf_walk_select_input(Array, Array, 1)
    #3 /wp-content/plugins/advanced-custom-fields/includes/acf-input-functions.php(402): acf_walk_select_input(Array, Array)
    #4 /wp-content/plugins/advanced-custom-fields/includes/acf-input-functions.php(382): acf_get_select_input(Array)
    #5 /wp-content/plugins/advanced-custom-fields/includes/fields/class-acf-field-select.php(319): acf_select_input(Array)
    #6 /wp-includes/class-wp-hook.php(324): acf_field_select->render_field(Array)
    #7 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #8 /wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #9 /wp-content/plugins/advanced-custom-fields/includes/acf-hook-functions.php(113): do_action_ref_array('acf/render_fiel…', Array)
    #10 /wp-includes/class-wp-hook.php(324): _acf_apply_hook_variations(Array)
    #11 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #12 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #13 /wp-content/plugins/advanced-custom-fields/includes/acf-field-functions.php(807): do_action('acf/render_fiel…', Array)
    #14 /wp-content/plugins/advanced-custom-fields/includes/admin/views/acf-field-group/location-rule.php(65): acf_render_field(Array)
    #15 /wp-content/plugins/advanced-custom-fields/includes/api/api-helpers.php(350): include('/Users/…')
    #16 /wp-content/plugins/advanced-custom-fields/includes/admin/views/acf-field-group/location-group.php(18): acf_get_view('/Users/…', Array)
    #17 /wp-content/plugins/advanced-custom-fields/includes/api/api-helpers.php(350): include('/Users/…')
    #18 /wp-content/plugins/advanced-custom-fields/includes/admin/views/acf-field-group/locations.php(25): acf_get_view('/Users/…', Array)
    #19 /wp-content/plugins/advanced-custom-fields/includes/api/api-helpers.php(350): include('/Users/…')
    #20 /wp-content/plugins/advanced-custom-fields/includes/admin/views/acf-field-group/options.php(74): acf_get_view('/Users/…')
    #21 /wp-content/plugins/advanced-custom-fields/includes/api/api-helpers.php(350): include('/Users/…')
    #22 /wp-content/plugins/advanced-custom-fields/includes/admin/post-types/admin-field-group.php(435): acf_get_view('/Users/…')
    #23 /wp-admin/includes/template.php(1456): acf_admin_field_group->mb_options(Object(WP_Post), Array)
    #24 /wp-admin/edit-form-advanced.php(721): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))
    #25 /wp-admin/post.php(206): require('/Users/…')
    #26 /server.php(167): require('/Users/…')
    #27 {main} thrown in /wp-includes/formatting.php on line 1096

    Only stuff I cleaned up in that stack trace was removing the first part of home directory path and my server path.

    Once I deactivate MailPoet, I can refresh the Field Group view and it loads correctly.

    • This reply was modified 10 months, 3 weeks ago by nbltnow.
Viewing 2 replies - 1 through 2 (of 2 total)