Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
(birdeatsbug.com) or jam.dev)
This message appears in Bricks 1.7.1 but does not occur in previous versions. It appears upon selection of the ‘Edit with Bricks’ option in the adminbar on a CPT page (Accommodation) which contains 2 query loops with ACF relationships to another CPT (Features)
Fatal error : Uncaught Error: Object of class WP_Post could not be converted to string in /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/integrations/dynamic-data/providers/base.php:228 Stack trace: #0 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/integrations/dynamic-data/providers/base.php(228): implode(‘, ‘, Array) #1 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/integrations/dynamic-data/providers/provider-acf.php(420): Bricks\Integrations\Dynamic_Data\Providers\Base->format_value_for_context(Array, ‘acf_features’, 9754, Array, ‘text’) #2 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/integrations/dynamic-data/providers.php(201): Bricks\Integrations\Dynamic_Data\Providers\Provider_Acf->get_tag_value(‘acf_features’, Object(WP_Post), Array, ‘text’) #3 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/integrations/dynamic-data/providers.php(138): Bricks\Integrations\Dynamic_Data\Providers->get_tag_value(‘acf_features’, Object(WP_Post), ‘text’) #4 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/class-wp-hook.php(308): Bricks\Integrations\Dynamic_Data\Providers->render(’
{acf_feature…’, Object(WP_Post), ‘text’) #5 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘
{acf_feature…’, Array) #6 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/integrations/dynamic-data/providers.php(248): apply_filters(‘bricks/dynamic_…’, ‘
{acf_feature…’, Object(WP_Post), ‘text’) #7 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/functions.php(198): Bricks\Integrations\Dynamic_Data\Providers::render_content(‘
{acf_feature…’, 9754, ‘text’) #8 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/elements/base.php(3275): bricks_render_dynamic_data(‘
{acf_feature…’, 9754) #9 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/elements/text.php(64): Bricks\Element->render_dynamic_data(‘
{acf_feature…’) #10 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/elements/base.php(2078): Bricks\Element_Text->render() #11 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/ajax.php(303): Bricks\Element->init() #12 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/builder.php(2001): Bricks\Ajax::render_element(Array) #13 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/builder.php(1907): Bricks\Builder::query_content_type_for_elements_html(Array, 9754) #14 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/builder.php(259): Bricks\Builder::builder_data(9754) #15 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/class-wp-hook.php(308): Bricks\Builder->enqueue_scripts(‘’) #16 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #17 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #18 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/script-loader.php(2194): do_action(‘wp_enqueue_scri…’) #19 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/class-wp-hook.php(308): wp_enqueue_scripts(‘’) #20 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #21 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #22 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/general-template.php(3049): do_action(‘wp_head’) #23 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/header.php(7): wp_head() #24 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/template.php(783): require_once(‘/home/sites/25b…’) #25 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/template.php(718): load_template(‘/home/sites/25b…’, true, Array) #26 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #27 /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/template-parts/builder.php(2): get_header() #28 /home/sites/25b/1/1cc30232f5/public_html/wp-includes/template-loader.php(106): include(‘/home/sites/25b…’) #29 /home/sites/25b/1/1cc30232f5/public_html/wp-blog-header.php(19): require_once(‘/home/sites/25b…’) #30 /home/sites/25b/1/1cc30232f5/public_html/index.php(17): require(‘/home/sites/25b…’) #31 {main} thrown in /home/sites/25b/1/1cc30232f5/public_html/wp-content/themes/bricks/includes/integrations/dynamic-data/providers/base.php on line 228