Title: Custom Fields Error when Using Elementor:
Last modified: January 3, 2024

---

# Custom Fields Error when Using Elementor:

 *  Resolved [anistatik](https://wordpress.org/support/users/anistatik/)
 * (@anistatik)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/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**
    1. Created a field group called Test: Taxonomy.
    2. Created 10 fields with 3 different types (image, text, taxonomy).
    3. Selected taxonomy as the type of field to display movie ratings.
    4. Selected create terms, save terms, and load terms.
    5. Selected return value as Term ID
    6. Location Rules: Post Type is equal to Movie.
    7. Saved new field.
 * **Create New Post**
    1. Created a new movie post.
    2. The movie field drop-down appears and populates the correct taxonomy values.
       Selected a choice.
    3. Saved the post.
 * **Elementor**
    1. On the Post I selected Elementor Full Width.
    2. Opened post in Elementor.
    3. Loaded my pre-made template for the page.
    4. Selected Dynamic Tags then my Custom Fields test.
    5. 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 **1188**
 * Call stack:
    1.  `str_contains()`
        wp-includes/blocks.php:1188
    2.  `filter_block_content()`
        wp-includes/formatting.php:5226
    3.  `wp_pre_kses_block_attributes()`
        wp-includes/class-wp-hook.php:324
    4.  `WP_Hook::apply_filters()`
        wp-includes/plugin.php:205
    5.  `apply_filters()`
        wp-includes/kses.php:946
    6.  `wp_kses_hook()`
        wp-includes/kses.php:754
    7.  `wp_kses()`
        wp-includes/kses.php:2171
    8.  `wp_kses_post()`
        wp-content/plugins/wpr-addons-pro/includes/dynamic-tags/tags/
        custom-field.php:72
    9.  `Wpr_Custom_Field::render()`
        wp-content/plugins/elementor/core/dynamic-tags/
        tag.php:35
    10. `Elementor\C\D\Tag::get_content()`
        wp-content/plugins/elementor/core/dynamic-
        tags/manager.php:216
    11. `Elementor\C\D\Manager::get_tag_data_content()`
    12. `call_user_func_array()`
        wp-content/plugins/elementor/core/dynamic-tags/manager.
        php:109
    13. `Elementor\C\D\Manager::parse_tag_text()`
        wp-content/plugins/elementor/core/
        dynamic-tags/manager.php:74
    14. `Elementor\C\D\Manager::Elementor\C\D\{closure}()`
    15. `preg_replace_callback()`
        wp-content/plugins/elementor/core/dynamic-tags/manager.
        php:73
    16. `Elementor\C\D\Manager::parse_tags_text()`
        wp-content/plugins/elementor/includes/
        controls/base-data.php:91
    17. `Elementor\Base_Data_Control::parse_tags()`
        wp-content/plugins/elementor/includes/
        base/controls-stack.php:1301
    18. `Elementor\Controls_Stack::parse_dynamic_settings()`
        wp-content/plugins/elementor/
        includes/base/controls-stack.php:1148
    19. `Elementor\Controls_Stack::get_parsed_dynamic_settings()`
        wp-content/plugins/
        elementor/includes/base/controls-stack.php:1235
    20. `Elementor\Controls_Stack::get_settings_for_display()`
        wp-content/plugins/elementor/
        includes/widgets/text-editor.php:416
    21. `Elementor\Widget_Text_Editor::render()`
        wp-content/plugins/elementor/includes/
        base/controls-stack.php:2297
    22. `Elementor\Controls_Stack::render_by_mode()`
        wp-content/plugins/elementor/includes/
        base/widget-base.php:614
    23. `Elementor\Widget_Base::render_content()`
        wp-content/plugins/elementor/includes/
        base/widget-base.php:738
    24. `Elementor\Widget_Base::get_raw_data()`
        wp-content/plugins/elementor/includes/
        base/element-base.php:551
    25. `Elementor\Element_Base::get_raw_data()`
        wp-content/plugins/elementor/includes/
        base/element-base.php:551
    26. `Elementor\Element_Base::get_raw_data()`
        wp-content/plugins/elementor/core/
        base/document.php:1023
    27. `Elementor\C\B\Document::get_elements_raw_data()`
        wp-content/plugins/elementor/
        core/base/document.php:679
    28. `Elementor\C\B\Document::get_initial_config()`
        wp-content/plugins/elementor/
        includes/base/controls-stack.php:1042
    29. `Elementor\Controls_Stack::get_config()`
        wp-content/plugins/elementor/core/
        editor/loader/common/editor-common-scripts-settings.php:34
    30. `Elementor\C\E\L\C\Editor_Common_Scripts_Settings::get()`
        wp-content/plugins/
        elementor/core/editor/loader/v1/editor-v1-loader.php:76
    31. `Elementor\C\E\L\V\Editor_V1_Loader::enqueue_scripts()`
        wp-content/plugins/
        elementor/core/editor/editor.php:358
    32. `Elementor\C\E\Editor::enqueue_scripts()`
        wp-includes/class-wp-hook.php:324
    33. `WP_Hook::apply_filters()`
        wp-includes/class-wp-hook.php:348
    34. `WP_Hook::do_action()`
        wp-includes/plugin.php:517
    35. `do_action()`
        wp-includes/script-loader.php:2262
    36. `wp_enqueue_scripts()`
        wp-includes/class-wp-hook.php:324
    37. `WP_Hook::apply_filters()`
        wp-includes/class-wp-hook.php:348
    38. `WP_Hook::do_action()`
        wp-includes/plugin.php:517
    39. `do_action()`
        wp-includes/general-template.php:3052
    40. `wp_head()`
        wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.
        php:31
    41. `include()`
        wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.
        php:110
    42. `Elementor\C\E\L\V\Editor_V1_Loader::print_root_template()`
        wp-content/plugins/
        elementor/core/editor/editor.php:163
    43. `Elementor\C\E\Editor::init()`
        wp-includes/class-wp-hook.php:324
    44. `WP_Hook::apply_filters()`
        wp-includes/class-wp-hook.php:348
    45. `WP_Hook::do_action()`
        wp-includes/plugin.php:517
    46. `do_action()`
        wp-admin/admin.php:419
    47. `require_once()`
        wp-admin/post.php:12

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

 *  [wprsupport](https://wordpress.org/support/users/wprsupport/)
 * (@wprsupport)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-error-when-using-elementor/#post-17318242)
 * Hi [@anistatik](https://wordpress.org/support/users/anistatik/),
 * Thank you for choosing our plugin and service.
 * We’ve received the issue you reported through our email address. As you are a
   Pro user, we’ll continue this conversation via email messaging to ensure dedicated
   and efficient support.
 * Kindly check your email, and we’ll address your concerns promptly. If you have
   any further questions or need assistance, feel free to reach out.
 * Kind Regards
 *  Thread Starter [anistatik](https://wordpress.org/support/users/anistatik/)
 * (@anistatik)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-error-when-using-elementor/#post-17342572)
 * I checked my email and I’ve been patient. 11 days later I still have not gotten
   any support for my issue.
 * Note: I purchased the product 11 days ago as well.
 * Jan 3, 2024, 11:36 AM (11 days ago)
 * Vako emailed:
 * > We received login details for your website, accessed it when we tried to start
   > the investigation process, but someone on your website was already working 
   > on AFC fields, please see the screenshot.
   > ~ Vako
 * I fixed that access issue instantly after receiving the email.
 * Jan 3, 2024, 12:52 PM (11 days ago)
 * > Could you try again? That was me attempting to troubleshoot. I’ve now completely
   > signed out of WordPress.
   > ~ Tim
 * Don’t use the excuse that you couldn’t get into my account. I sent 2 emails the
   same day to verify if they could access the account. I did not receive a confirmation
   or reply. I followed up.
 * Jan 3, 2024, 2:21 PM (11 days ago)
 * > Are you able to get in WP?
   > ~ Tim
 * I finally got a message back the next day.
 * Jan 4, 2024, 10:30 AM (10 days ago)
 * > We started the investigation process of the issue, please don’t change the 
   > login details till our next response.
   > ~ Vako
 * I understand troubleshooting takes time but non-communication after so many days
   is ridiculous. This is pro support?
 * I find it astonishing that I’ve received no updates from the support team regarding
   my initial issues **for 11 days**. No updates or anything.
 * I don’t even see signs that someone has logged in to my admin for troubleshooting.
 * **But you sent me an email asking for a product review?**
 * Furthermore, I wanted to share with your support team that I created a staging
   site for them to use to avoid any issues since the site is now stable.
 * This taxonomy issue causes my live site to crash and I still can’t use the Related
   Post query with the taxonomies I’ve saved.
 *  Thread Starter [anistatik](https://wordpress.org/support/users/anistatik/)
 * (@anistatik)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-fields-error-when-using-elementor/#post-17343100)
 * This has been incorrectly been marked as resolved. This issue is not resolved.
 *  Plugin Contributor [George](https://wordpress.org/support/users/rubeushagrid13/)
 * (@rubeushagrid13)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/custom-fields-error-when-using-elementor/#post-17365623)
 * As long as we’ve fixed existing issues I’ll remark it as resolved.
   Kind regards,
   George
 *  Thread Starter [anistatik](https://wordpress.org/support/users/anistatik/)
 * (@anistatik)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/custom-fields-error-when-using-elementor/#post-17365731)
 * Yes, this issue is resolved. Thank you for your help and insight. I’ll open a
   new ticket for the other issue I mentioned in the email.

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

The topic ‘Custom Fields Error when Using Elementor:’ is closed to new replies.

 * ![](https://ps.w.org/royal-elementor-addons/assets/icon-128x128.gif?rev=2604295)
 * [Royal Addons for Elementor – Addons and Templates Kit for Elementor](https://wordpress.org/plugins/royal-elementor-addons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/royal-elementor-addons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/royal-elementor-addons/)
 * [Active Topics](https://wordpress.org/support/plugin/royal-elementor-addons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/royal-elementor-addons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/royal-elementor-addons/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [anistatik](https://wordpress.org/support/users/anistatik/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/custom-fields-error-when-using-elementor/#post-17365731)
 * Status: resolved