• when enabling debug, it give that code :

    Fatal error: Uncaught TypeError: preg_replace(): Argument #3 ($subject) must be of type array|string, WP_Post given in /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/kses.php:1744 Stack trace: #0 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/kses.php(1744): preg_replace() #1 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/kses.php(752): wp_kses_no_null() #2 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/kses.php(2171): wp_kses() #3 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/tags/acf-text.php(85): wp_kses_post() #4 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/dynamic-tags/tag.php(35): ElementorPro\Modules\DynamicTags\ACF\Tags\ACF_Text->render() #5 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/dynamic-tags/manager.php(216): Elementor\Core\DynamicTags\Tag->get_content() #6 [internal function]: Elementor\Core\DynamicTags\Manager->get_tag_data_content() #7 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/dynamic-tags/manager.php(109): call_user_func_array() #8 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/dynamic-tags/manager.php(74): Elementor\Core\DynamicTags\Manager->parse_tag_text() #9 [internal function]: Elementor\Core\DynamicTags\Manager->Elementor\Core\DynamicTags\{closure}() #10 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/dynamic-tags/manager.php(73): preg_replace_callback() #11 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/includes/controls/base-data.php(91): Elementor\Core\DynamicTags\Manager->parse_tags_text() #12 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/includes/base/controls-stack.php(1301): Elementor\Base_Data_Control->parse_tags() #13 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/includes/base/controls-stack.php(1148): Elementor\Controls_Stack->parse_dynamic_settings() #14 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/files/css/post.php(298): Elementor\Controls_Stack->get_parsed_dynamic_settings() #15 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php(32): Elementor\Core\Files\CSS\Post->render_styles() #16 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php(36): Elementor\Core\DynamicTags\Dynamic_CSS->render_styles() #17 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php(36): Elementor\Core\DynamicTags\Dynamic_CSS->render_styles() #18 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/files/css/post.php(178): Elementor\Core\DynamicTags\Dynamic_CSS->render_styles() #19 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/files/css/base.php(677): Elementor\Core\Files\CSS\Post->render_css() #20 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/files/base.php(180): Elementor\Core\Files\CSS\Base->parse_content() #21 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/files/css/base.php(130): Elementor\Core\Files\Base->update_file() #22 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/files/css/base.php(226): Elementor\Core\Files\CSS\Base->update() #23 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/files/css/post.php(201): Elementor\Core\Files\CSS\Base->enqueue() #24 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/dynamic-tags/manager.php(488): Elementor\Core\Files\CSS\Post->enqueue() #25 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/class-wp-hook.php(324): Elementor\Core\DynamicTags\Manager->after_enqueue_post_css() #26 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #27 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/plugin.php(517): WP_Hook->do_action() #28 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/files/css/base.php(273): do_action() #29 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor/core/files/css/post.php(201): Elementor\Core\Files\CSS\Base->enqueue() #30 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/plugins/elementor-pro/modules/theme-builder/classes/locations-manager.php(142): Elementor\Core\Files\CSS\Post->enqueue() #31 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/class-wp-hook.php(324): ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager->enqueue_styles() #32 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #33 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/plugin.php(517): WP_Hook->do_action() #34 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/script-loader.php(2262): do_action() #35 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts() #36 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #37 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/plugin.php(517): WP_Hook->do_action() #38 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/general-template.php(3052): do_action() #39 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/themes/hello-elementor/header.php(24): wp_head() #40 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/template.php(790): require_once(‘/home/fouadmab/…’) #41 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/template.php(725): load_template() #42 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/general-template.php(48): locate_template() #43 /home/fouadmab/lmlcdcom/lmlcdv2/wp-content/themes/hello-elementor/index.php(15): get_header() #44 /home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/template-loader.php(106): include(‘/home/fouadmab/…’) #45 /home/fouadmab/lmlcdcom/lmlcdv2/wp-blog-header.php(19): require_once(‘/home/fouadmab/…’) #46 /home/fouadmab/lmlcdcom/lmlcdv2/index.php(17): require(‘/home/fouadmab/…’) #47 {main} thrown in?/home/fouadmab/lmlcdcom/lmlcdv2/wp-includes/kses.php?on line?1744

    any solutions ? Thank You in Advance

    • This topic was modified 1 year, 2 months ago by Fouad Mabchour. Reason: adding text
Viewing 1 replies (of 1 total)
  • Plugin Author David Baumwald

    (@davidbaumwald)

    @fouadmabchour I’m not sure where to start here, but it seems to be an issue in Elementor or some add-on for it by looking at the trace. I don’t see my plugin path in the trace at all. My guess is that even if you deactivate my plugin, you still get this error because there’s no kses related function calls in this plugin at all.

Viewing 1 replies (of 1 total)
  • The topic ‘Critical error when using ACF post object in field group’ is closed to new replies.