Custom Fields Error when Using Elementor:
-
Custom Fields Error when Using Elementor:
I just purchased this product. I’m using Royal Theme Add-ons Pro and the Advance Custom Fields (AFC) Pro that’s included. I get an error when I select a custom field (taxonomy) in the WordPress post editor.
The error occurs during my last step which is opening the page in Elementor to continue creating and designing the dynamic page.
The only plugins I have active are Royal Theme Add-ons and the included ACF pro.
This error seems to be only associated with <span style=”text-decoration: underline;”>ACF: Field Groups selected as taxonomies.</span> When the field group type is a basic text or image, Elementor does not crash. The data shows in the dynamic page until the crash.
Error Message: A critical error has occurred on your site….
I tested my it again by doing the following:
Field Group
- Created a field group called Test: Taxonomy.
- Created 10 fields with 3 different types (image, text, taxonomy).
- Selected taxonomy as the type of field to display movie ratings.
- Selected create terms, save terms, and load terms.
- Selected return value as Term ID
- Location Rules: Post Type is equal to Movie.
- Saved new field.
Create New Post
- Created a new movie post.
- The movie field drop-down appears and populates the correct taxonomy values. Selected a choice.
- Saved the post.
Elementor
- On the Post I selected Elementor Full Width.
- Opened post in Elementor.
- Loaded my pre-made template for the page.
- Selected Dynamic Tags then my Custom Fields test.
- Click save.
Here’s the error I received once saved.
Fatal error: Uncaught Error: str_contains(): Argument #1 ($haystack) must be of type string, array given
in /home/popcfxen/originals.popcorntrailer.com/wp-includes/blocks.php on line 1188Call stack:
str_contains()
wp-includes/blocks.php:1188filter_block_content()
wp-includes/formatting.php:5226wp_pre_kses_block_attributes()
wp-includes/class-wp-hook.php:324WP_Hook::apply_filters()
wp-includes/plugin.php:205apply_filters()
wp-includes/kses.php:946wp_kses_hook()
wp-includes/kses.php:754wp_kses()
wp-includes/kses.php:2171wp_kses_post()
wp-content/plugins/wpr-addons-pro/includes/dynamic-tags/tags/custom-field.php:72Wpr_Custom_Field::render()
wp-content/plugins/elementor/core/dynamic-tags/tag.php:35Elementor\C\D\Tag::get_content()
wp-content/plugins/elementor/core/dynamic-tags/manager.php:216Elementor\C\D\Manager::get_tag_data_content()call_user_func_array()
wp-content/plugins/elementor/core/dynamic-tags/manager.php:109Elementor\C\D\Manager::parse_tag_text()
wp-content/plugins/elementor/core/dynamic-tags/manager.php:74Elementor\C\D\Manager::Elementor\C\D\{closure}()preg_replace_callback()
wp-content/plugins/elementor/core/dynamic-tags/manager.php:73Elementor\C\D\Manager::parse_tags_text()
wp-content/plugins/elementor/includes/controls/base-data.php:91Elementor\Base_Data_Control::parse_tags()
wp-content/plugins/elementor/includes/base/controls-stack.php:1301Elementor\Controls_Stack::parse_dynamic_settings()
wp-content/plugins/elementor/includes/base/controls-stack.php:1148Elementor\Controls_Stack::get_parsed_dynamic_settings()
wp-content/plugins/elementor/includes/base/controls-stack.php:1235Elementor\Controls_Stack::get_settings_for_display()
wp-content/plugins/elementor/includes/widgets/text-editor.php:416Elementor\Widget_Text_Editor::render()
wp-content/plugins/elementor/includes/base/controls-stack.php:2297Elementor\Controls_Stack::render_by_mode()
wp-content/plugins/elementor/includes/base/widget-base.php:614Elementor\Widget_Base::render_content()
wp-content/plugins/elementor/includes/base/widget-base.php:738Elementor\Widget_Base::get_raw_data()
wp-content/plugins/elementor/includes/base/element-base.php:551Elementor\Element_Base::get_raw_data()
wp-content/plugins/elementor/includes/base/element-base.php:551Elementor\Element_Base::get_raw_data()
wp-content/plugins/elementor/core/base/document.php:1023Elementor\C\B\Document::get_elements_raw_data()
wp-content/plugins/elementor/core/base/document.php:679Elementor\C\B\Document::get_initial_config()
wp-content/plugins/elementor/includes/base/controls-stack.php:1042Elementor\Controls_Stack::get_config()
wp-content/plugins/elementor/core/editor/loader/common/editor-common-scripts-settings.php:34Elementor\C\E\L\C\Editor_Common_Scripts_Settings::get()
wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php:76Elementor\C\E\L\V\Editor_V1_Loader::enqueue_scripts()
wp-content/plugins/elementor/core/editor/editor.php:358Elementor\C\E\Editor::enqueue_scripts()
wp-includes/class-wp-hook.php:324WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348WP_Hook::do_action()
wp-includes/plugin.php:517do_action()
wp-includes/script-loader.php:2262wp_enqueue_scripts()
wp-includes/class-wp-hook.php:324WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348WP_Hook::do_action()
wp-includes/plugin.php:517do_action()
wp-includes/general-template.php:3052wp_head()
wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php:31include()
wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php:110Elementor\C\E\L\V\Editor_V1_Loader::print_root_template()
wp-content/plugins/elementor/core/editor/editor.php:163Elementor\C\E\Editor::init()
wp-includes/class-wp-hook.php:324WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348WP_Hook::do_action()
wp-includes/plugin.php:517do_action()
wp-admin/admin.php:419require_once()
wp-admin/post.php:12
The topic ‘Custom Fields Error when Using Elementor:’ is closed to new replies.