Critical Error when adding Text element

Hi there,

We have a pretty major bug happening on our dev site every time we try to add Text element anywhere on the X Pro builder ie: header, footer, and body. Any other element seem to work fine except the Text Element.

Things we’ve tried:

  • deactivate all plugins
  • update X Pro themes
  • switch from Child to Pro themes
  • clear cache

Here’s a video that shows the critical error: Screen cast

Looking forward to hearing back - would love to get this solved as soon as possible.

Thank you,

Jay - FBC

Hello Jay,

Thanks for the very detailed post information. This seems that you have exhausted the PHP memory limit or an error 500 occurs after adding the element. Please increase your PHP limit. Check this out:

Or you can enable the debug mode. You can do this by opening wp-config.php and adding


define('WP_DEBUG', true);

/* That's all, stop editing! Happy blogging. */

When you revisit the page, you should have some error output describing the issue in more detail. If nothing is helping, provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
- Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

Best Regards.

Hi @ruenel,

Thanks for the reply, we’ere taking a look at setting the PHP limit higher this morning, and we’ll keep you posted on any updates.

Cheers,
Jay

Hi Jay,

Great, please let us know if you need any further help on this.

Thanks

Hi @tristup @ruenel,

We’ve increased the php limit to over 512mb, but it hasn’t fixed anything. We’ve enabled WP Debuggers and this was the error that we found. Help is definitely needed.

`Fatal error: Uncaught Error: Call to undefined function wp_filter_content_tags()
in /var/www/vhosts/fullblastcreative.ca/sureflame.fullblastcreative.ca/wp-content/themes/pro/cornerstone/includes/views/partials/text.php on line 112

Call stack:

include()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:176
X_View_Router::render()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:55
x_get_view()
wp-content/themes/pro/cornerstone/includes/utility/element-api.php:162
cs_get_partial_view()
wp-content/themes/pro/cornerstone/includes/elements/definitions/text.php:52
x_element_render_text()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:593
Cornerstone_Element_Definition::render_one()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:577
Cornerstone_Element_Definition::render()
wp-content/themes/pro/cornerstone/includes/elements/helpers.php:29
x_render_elements()
wp-includes/class-wp-hook.php:288
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:312
WP_Hook::do_action()
wp-includes/plugin.php:478
do_action()
wp-content/themes/pro/cornerstone/includes/views/elements-pro/layout-cell.php:58
include()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:176
X_View_Router::render()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:55
x_get_view()
wp-content/themes/pro/cornerstone/includes/elements/definitions-pro/layout-cell.php:117
x_element_render_layout_cell()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:593
Cornerstone_Element_Definition::render_one()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:577
Cornerstone_Element_Definition::render()
wp-content/themes/pro/cornerstone/includes/elements/helpers.php:29
x_render_elements()
wp-includes/class-wp-hook.php:288
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:312
WP_Hook::do_action()
wp-includes/plugin.php:478
do_action()
wp-content/themes/pro/cornerstone/includes/views/elements-pro/layout-grid.php:66
include()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:176
X_View_Router::render()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:55
x_get_view()
wp-content/themes/pro/cornerstone/includes/elements/definitions-pro/layout-grid.php:91
x_element_render_layout_grid()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:593
Cornerstone_Element_Definition::render_one()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:577
Cornerstone_Element_Definition::render()
wp-content/themes/pro/cornerstone/includes/elements/helpers.php:29
x_render_elements()
wp-includes/class-wp-hook.php:288
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:312
WP_Hook::do_action()
wp-includes/plugin.php:478
do_action()
wp-content/themes/pro/cornerstone/includes/views/elements/layout-column.php:58
include()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:176
X_View_Router::render()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:55
x_get_view()
wp-content/themes/pro/cornerstone/includes/elements/definitions/layout-column.php:83
x_element_render_layout_column()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:593
Cornerstone_Element_Definition::render_one()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:577
Cornerstone_Element_Definition::render()
wp-content/themes/pro/cornerstone/includes/elements/helpers.php:29
x_render_elements()
wp-includes/class-wp-hook.php:288
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:312
WP_Hook::do_action()
wp-includes/plugin.php:478
do_action()
wp-content/themes/pro/cornerstone/includes/views/elements/layout-row.php:66
include()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:176
X_View_Router::render()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:55
x_get_view()
wp-content/themes/pro/cornerstone/includes/elements/definitions/layout-row.php:86
x_element_render_layout_row()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:593
Cornerstone_Element_Definition::render_one()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:577
Cornerstone_Element_Definition::render()
wp-content/themes/pro/cornerstone/includes/elements/helpers.php:29
x_render_elements()
wp-includes/class-wp-hook.php:288
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:312
WP_Hook::do_action()
wp-includes/plugin.php:478
do_action()
wp-content/themes/pro/cornerstone/includes/views/elements/section.php:89
include()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:176
X_View_Router::render()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:55
x_get_view()
wp-content/themes/pro/cornerstone/includes/elements/definitions/section.php:74
x_element_render_section()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:593
Cornerstone_Element_Definition::render_one()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-definition.php:577
Cornerstone_Element_Definition::render()
wp-content/themes/pro/cornerstone/includes/elements/helpers.php:29
x_render_elements()
wp-content/themes/pro/cornerstone/includes/elements/helpers.php:69
x_render_region()
wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-front-end.php:93
Cornerstone_Element_Front_End::render_content()
wp-includes/shortcodes.php:325
do_shortcode_tag()
preg_replace_callback()
wp-includes/shortcodes.php:199
do_shortcode()
wp-includes/class-wp-hook.php:288
WP_Hook::apply_filters()
wp-includes/plugin.php:206
apply_filters()
wp-includes/post-template.php:253
the_content()
wp-content/themes/pro/framework/views/global/_content-the-content.php:17
include()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:180
X_View_Router::render()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:55
x_get_view()
wp-content/themes/pro/framework/views/renew/template-blank-4.php:18
include()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:180
X_View_Router::render()
wp-content/themes/pro/framework/functions/frontend/view-routing.php:55
x_get_view()
wp-content/themes/pro/template-blank-4.php:15
include()
wp-includes/template-loader.php:98
require_once()
wp-blog-header.php:19
require()
index.php:17`

Hi @FullBlast,

I just check your website and found out the issue but when I tried to update all the plugins and WordPress core version, the issue with the wp_filter_content_tags() is now gone. I guess it has something to do with your WordPress version.

Hope that helps.

Thank you.

1 Like

Thanks @marc_a. That seem to have fixed the issue.

I appreciate you looking into it.

All the best,

Jay - FBC

Hi Jay,

Glad that we are able to help you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.