Hi there
after updating all Plugins, X-Theme and Cornerstone, the home-page of my website had a fatal display error. In Cornerstone Builder, the start-page could not be displayed anymore and it seems to be a plugin-conflict or a error in the functions PHP file. I have deaktivated all plugins and the error was still there. I have checked the functions PHP file and when saving this file the following error appears:
Deine PHP-Code-Änderungen wurden aufgrund eines Fehlers in Zeile 86 der Datei wp-content/themes/x-child/functions.php zurückgesetzt. Bitte beheben und versuchen, erneut zu speichern.
Uncaught Error: Call to undefined function cs_get_raw_excerpt() in wp-content/themes/x-child/functions.php:86
Stack trace:
#0 wp-includes/shortcodes.php(343): x_shortcode_recent_posts_v2code(Array, ‘’, ‘x_recent_posts’)
#1 [internal function]: do_shortcode_tag(Array)
#2 wp-includes/shortcodes.php(218): preg_replace_callback(’/\[(\[?)(x_audi…’, ‘do_shortcode_ta…’, ‘\n<div class="e1…’)
#3 wp-includes/class-wp-hook.php(292): do_shortcode(’\n<div class="e1…’)
#4 wp-includes/plugin.php(212): WP_Hook->apply_filters(’\n<div class="e1…’, Array)
#5 wp-content/plugins/cornerstone/includes/utility/helpers.php(98): apply_filters(‘cs_expand_conte…’, ‘\n<div class="e1…’)
#6 wp-content/plugins/cornerstone/includes/elements/helpers.php(70): cs_expand_content(’\n<div class="e1…’)
#7 /home/tuccil
The code in line 86 looks like this:
$excerpt = ( $show_excerpt ) ? ‘
’ . preg_replace(’/<a.?more-link.?</a>/’, ‘’, cs_get_raw_excerpt() ) . ‘
Is there any possibility, to find the error in the code with this information? The page worked fine with the same code before updating Plugins, X-Theme and Cornerstone.
Thank you very much for your help!