fatal error while creating posts

#181959
  • Resolved Marketing Atrium Ltd
    Rank Math free

    Hello,

    I’m contacting you because I’ve experienced a few issues while creating some posts.
    In some cases, when adjusting SEO elements through your plugin, the default settings disappeared, leaving just what you see in this screeshot http://atrium-ltd-uk.stackstaging.com/wp-content/uploads/2021/04/Screenshot-2021-03-28-at-20.09.51.png
    Also, I started to have a fatal error on a few posts just created, which forced me to delete the posts themselves because it was not possible to recover them.
    Here below you see the fatal error:

    Fatal error: Uncaught Error: preg_replace(): Argument #3 ($subject) must be of type array|string, WP_Error given
in /home/sites/14b/9/9e02be678f/public_html/wp-includes/kses.php on line 1644
    Call stack:
    1. preg_replace()
wp-includes/kses.php:1644
    2. wp_kses_no_null()
wp-includes/kses.php:751
    3. wp_kses()
wp-includes/kses.php:2038
    4. wp_kses_post()
wp-content/plugins/elementor-pro/modules/dynamic-tags/tags/post-terms.php:108
    5. ElementorPro\M\D\T\Post_Terms::render()
wp-content/plugins/elementor/core/dynamic-tags/tag.php:35
    6. Elementor\C\D\Tag::get_content()
wp-content/plugins/elementor/core/dynamic-tags/manager.php:216
    7. Elementor\C\D\Manager::get_tag_data_content()
    8. call_user_func_array()
wp-content/plugins/elementor/core/dynamic-tags/manager.php:109
    9. Elementor\C\D\Manager::parse_tag_text()
wp-content/plugins/elementor/core/dynamic-tags/manager.php:74
    10. Elementor\C\D\Manager::Elementor\C\D\{closure}()
    11. preg_replace_callback()
wp-content/plugins/elementor/core/dynamic-tags/manager.php:73
    12. Elementor\C\D\Manager::parse_tags_text()
wp-content/plugins/elementor/includes/controls/base-data.php:81
    13. Elementor\Base_Data_Control::parse_tags()
wp-content/plugins/elementor/includes/base/controls-stack.php:1154
    14. Elementor\Controls_Stack::parse_dynamic_settings()
wp-content/plugins/elementor/includes/base/controls-stack.php:1005
    15. Elementor\Controls_Stack::get_parsed_dynamic_settings()
wp-content/plugins/elementor/core/files/css/post.php:296
    16. Elementor\C\F\C\Post::render_styles()
wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php:32
    17. Elementor\C\D\Dynamic_CSS::render_styles()
wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php:36
    18. Elementor\C\D\Dynamic_CSS::render_styles()
wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php:36
    19. Elementor\C\D\Dynamic_CSS::render_styles()
wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php:36
    20. Elementor\C\D\Dynamic_CSS::render_styles()
wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php:36
    21. Elementor\C\D\Dynamic_CSS::render_styles()
wp-content/plugins/elementor/core/files/css/post.php:178
    22. Elementor\C\F\C\Post::render_css()
wp-content/plugins/elementor/core/files/css/base.php:617
    23. Elementor\C\F\C\Base::parse_content()
wp-content/plugins/elementor/core/files/base.php:166
    24. Elementor\C\F\Base::update_file()
wp-content/plugins/elementor/core/files/css/base.php:131
    25. Elementor\C\F\C\Base::update()
wp-content/plugins/elementor/core/files/css/base.php:207
    26. Elementor\C\F\C\Base::enqueue()
wp-content/plugins/elementor/core/files/css/post.php:199
    27. Elementor\C\F\C\Post::enqueue()
wp-content/plugins/elementor/core/dynamic-tags/manager.php:424
    28. Elementor\C\D\Manager::after_enqueue_post_css()
wp-includes/class-wp-hook.php:292
    29. WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:316
    30. WP_Hook::do_action()
wp-includes/plugin.php:484
    31. do_action()
wp-content/plugins/elementor/core/files/css/base.php:254
    32. Elementor\C\F\C\Base::enqueue()
wp-content/plugins/elementor/core/files/css/post.php:199
    33. Elementor\C\F\C\Post::enqueue()
wp-content/plugins/elementor-pro/modules/theme-builder/classes/locations-manager.php:92
    34. ElementorPro\M\T\C\Locations_Manager::enqueue_styles()
wp-includes/class-wp-hook.php:292
    35. WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:316
    36. WP_Hook::do_action()
wp-includes/plugin.php:484
    37. do_action()
wp-includes/script-loader.php:2027
    38. wp_enqueue_scripts()
wp-includes/class-wp-hook.php:292
    39. WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:316
    40. WP_Hook::do_action()
wp-includes/plugin.php:484
    41. do_action()
wp-includes/general-template.php:3009
    42. wp_head()
wp-content/themes/astra/header.php:26
    43. require_once()
wp-includes/template.php:730
    44. load_template()
wp-includes/template.php:676
    45. locate_template()
wp-includes/general-template.php:48
    46. get_header()
wp-content/themes/astra/single.php:15
    47. include()
wp-includes/template-loader.php:106
    48. require_once()
wp-blog-header.php:19
    49. require()
index.php:17

    I don’t know if the two things are related, but after deactivating the plugin I stopped having that fatal error.
    Please can you advise?

    Thank you very much
    My kindest regards

    Jenny

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    If the issue persists, please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Please do take a complete backup of your website before sharing the information with us.

    We really look forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘fatal error while creating posts’ is closed to new replies.