• Resolved cigaai

    (@cigaai)


    I’m getting fatal errors when using the ACF plugin integrated with elementor PRO and dynamic tags.

    Is there a bug on ACF’s part or a solution that you can suggest?

    Fatal error: Uncaught TypeError: str_contains(): Argument #1 ($haystack) must be of type string, array given in /home/fococria/dev.fococriativo.pt/wp-includes/blocks.php:1188 Stack trace: #0 /home/fococria/dev.fococriativo.pt/wp-includes/blocks.php(1188): str_contains(Array, ‘<!–‘) #1 /home/fococria/dev.fococriativo.pt/wp-includes/formatting.php(5226): filter_block_content(Array, ‘post’, Array) #2 /home/fococria/dev.fococriativo.pt/wp-includes/class-wp-hook.php(324): wp_pre_kses_block_attributes(Array, ‘post’, Array) #3 /home/fococria/dev.fococriativo.pt/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #4 /home/fococria/dev.fococriativo.pt/wp-includes/kses.php(946): apply_filters(‘pre_kses’, Array, ‘post’, Array) #5 /home/fococria/dev.fococriativo.pt/wp-includes/kses.php(754): wp_kses_hook(Array, ‘post’, Array) #6 /home/fococria/dev.fococriativo.pt/wp-includes/kses.php(2171): wp_kses(Array, ‘post’) #7 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/tags/acf-text.php(85): wp_kses_post(Array) #8 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/dynamic-tags/tag.php(35): ElementorPro\Modules\DynamicTags\ACF\Tags\ACF_Text->render() #9 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/dynamic-tags/manager.php(216): Elementor\Core\DynamicTags\Tag->get_content() #10 [internal function]: Elementor\Core\DynamicTags\Manager->get_tag_data_content(‘a63468e’, ‘acf-text’, Array) #11 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/dynamic-tags/manager.php(109): call_user_func_array(Array, Array) #12 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/dynamic-tags/manager.php(74): Elementor\Core\DynamicTags\Manager->parse_tag_text(‘[elementor-tag …’, Array, Array) #13 [internal function]: Elementor\Core\DynamicTags\Manager->Elementor\Core\DynamicTags\{closure}(Array) #14 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/dynamic-tags/manager.php(73): preg_replace_callback(‘/\\[elementor-ta…’, Object(Closure), ‘[elementor-tag …’) #15 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/includes/controls/base-data.php(91): Elementor\Core\DynamicTags\Manager->parse_tags_text(‘[elementor-tag …’, Array, Array) #16 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/includes/base/controls-stack.php(1269): Elementor\Base_Data_Control->parse_tags(‘[elementor-tag …’, Array) #17 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/includes/base/controls-stack.php(1116): Elementor\Controls_Stack->parse_dynamic_settings(Array) #18 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/files/css/post.php(298): Elementor\Controls_Stack->get_parsed_dynamic_settings() #19 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php(32): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Widget_Heading)) #20 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php(36): Elementor\Core\DynamicTags\Dynamic_CSS->render_styles(Object(Elementor\Widget_Heading)) #21 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php(36): Elementor\Core\DynamicTags\Dynamic_CSS->render_styles(Object(Elementor\Includes\Elements\Container)) #22 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php(36): Elementor\Core\DynamicTags\Dynamic_CSS->render_styles(Object(Elementor\Includes\Elements\Container)) #23 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/files/css/post.php(178): Elementor\Core\DynamicTags\Dynamic_CSS->render_styles(Object(Elementor\Includes\Elements\Container)) #24 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/files/css/base.php(677): Elementor\Core\Files\CSS\Post->render_css() #25 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/files/base.php(155): Elementor\Core\Files\CSS\Base->parse_content() #26 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor-pro/modules/loop-builder/skins/skin-loop-base.php(157): Elementor\Core\Files\Base->get_content() #27 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor-pro/modules/loop-builder/skins/skin-loop-base.php(143): ElementorPro\Modules\LoopBuilder\Skins\Skin_Loop_Base->print_dynamic_css(1670, ‘1341’) #28 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor-pro/modules/loop-builder/skins/skin-loop-base.php(129): ElementorPro\Modules\LoopBuilder\Skins\Skin_Loop_Base->render_post_content(‘1341’) #29 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor-pro/modules/posts/skins/skin-base.php(876): ElementorPro\Modules\LoopBuilder\Skins\Skin_Loop_Base->render_post() #30 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor-pro/modules/loop-builder/skins/skin-loop-base.php(89): ElementorPro\Modules\Posts\Skins\Skin_Base->render() #31 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/includes/base/skin-base.php(79): ElementorPro\Modules\LoopBuilder\Skins\Skin_Loop_Base->render() #32 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/includes/base/widget-base.php(607): Elementor\Skin_Base->render_by_mode() #33 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/includes/base/widget-base.php(750): Elementor\Widget_Base->render_content() #34 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Widget_Base->print_content() #35 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element() #36 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content() #37 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/base/document.php(1739): Elementor\Element_Base->print_element() #38 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/core/base/document.php(1134): Elementor\Core\Base\Document->print_elements(Array) #39 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/includes/frontend.php(1179): Elementor\Core\Base\Document->print_elements_with_wrapper(Array) #40 /home/fococria/dev.fococriativo.pt/wp-content/plugins/elementor/includes/frontend.php(1074): Elementor\Frontend->get_builder_content(1333) #41 /home/fococria/dev.fococriativo.pt/wp-includes/class-wp-hook.php(324): Elementor\Frontend->apply_builder_in_content(‘<style>/*! elem…’) #42 /home/fococria/dev.fococriativo.pt/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<style>/*! elem…’, Array) #43 /home/fococria/dev.fococriativo.pt/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘<style>/*! elem…’) #44 /home/fococria/dev.fococriativo.pt/wp-content/themes/hello-elementor/template-parts/single.php(25): the_content() #45 /home/fococria/dev.fococriativo.pt/wp-includes/template.php(792): require(‘/home/fococria/…’) #46 /home/fococria/dev.fococriativo.pt/wp-includes/template.php(725): load_template(‘/home/fococria/…’, false, Array) #47 /home/fococria/dev.fococriativo.pt/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #48 /home/fococria/dev.fococriativo.pt/wp-content/themes/hello-elementor/index.php(21): get_template_part(‘template-parts/…’) #49 /home/fococria/dev.fococriativo.pt/wp-includes/template-loader.php(106): include(‘/home/fococria/…’) #50 /home/fococria/dev.fococriativo.pt/wp-blog-header.php(19): require_once(‘/home/fococria/…’) #51 /home/fococria/dev.fococriativo.pt/index.php(17): require(‘/home/fococria/…’) #52 {main} thrown in/home/fococria/dev.fococriativo.pt/wp-includes/blocks.phpon line1188

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support ACF Support

    (@acfsupport)

    Hi @cigaai

    ACF Support Team here. This forum is generally used by ACF users to help each other out. 

    However, we would love to continue investigating and troubleshooting this issue, please can you create a ticket using our ​support form and we can look into it further.

    Thread Starter cigaai

    (@cigaai)

    Thank you. I’ll create a ticket.

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

The topic ‘Fatal error using ACF and Elementor Pro with Loop Dynamic Tags functionality’ is closed to new replies.