Fatal Error showing after X theme and cornerstone updates

Hi there,

I very recently updated X theme (twice) and cornerstone and I’ve now got the following error showing on all pages:

Fatal error : Uncaught ArgumentCountError: Too few arguments to function Cornerstone_Element_Front_End::begin_excerpt(), 1 passed in /home/vapingha/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /home/vapingha/public_html/wp-content/plugins/cornerstone/includes/classes/elements/class-element-front-end.php:31 Stack trace: #0 /home/vapingha/public_html/wp-includes/class-wp-hook.php(287): Cornerstone_Element_Front_End->begin_excerpt(‘Variable Power …’) #1 /home/vapingha/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(‘Variable Power …’, Array) #2 /home/vapingha/public_html/wp-content/plugins/js_composer/include/params/vc_grid_item/attributes.php(357): apply_filters(‘get_the_excerpt’, ‘’) #3 /home/vapingha/public_html/wp-includes/class-wp-hook.php(287): vc_gitem_template_attribute_post_excerpt(’’, ‘’) #4 /home/vapingha/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(’’, Array) #5 /home/vapingha/public_html/wp-content/plugins/js_composer/include/params/vc_grid in /home/vapingha/public_html/wp-content/plugins/cornerstone/includes/classes/elements/class-element-front-end.php on line 31

Any help would be really appreciated.

Many thanks,
Callumn

Hi Callumn,

Thanks for reaching out. Would it be possible for you to share login credentials so I could take a closer look at this on your site? If this is ok you can add them in a secure note. Thanks!

Hi @alexander,

Thanks for your reply. I’ve added a secure note with login credentials.

Many thanks,
Callumn

Thanks Callumn! We were able to get this fixed today so I’ve updated your site to the latest version and it’s working now.

Hi @alexander,

Thanks for your reply. The update you carried out seemed to fix the problem. However I carried out further updates to X theme and cornerstone today and the problem has come back. It’s only showing on two of our landing pages this time (‘Reviews’ & ‘Calculators’) and we’re getting the same (or similar) message again:

Fatal error : Uncaught ArgumentCountError: Too few arguments to function Cornerstone_Element_Front_End::begin_excerpt(), 1 passed in /home/vapingha/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /home/vapingha/public_html/wp-content/plugins/cornerstone/includes/classes/elements/class-element-front-end.php:31 Stack trace: #0 /home/vapingha/public_html/wp-includes/class-wp-hook.php(287): Cornerstone_Element_Front_End->begin_excerpt(‘The Freemax Max…’) #1 /home/vapingha/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(‘The Freemax Max…’, Array) #2 /home/vapingha/public_html/wp-content/plugins/js_composer/include/params/vc_grid_item/attributes.php(357): apply_filters(‘get_the_excerpt’, ‘’) #3 /home/vapingha/public_html/wp-includes/class-wp-hook.php(287): vc_gitem_template_attribute_post_excerpt(’’, ‘’) #4 /home/vapingha/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(’’, Array) #5 /home/vapingha/public_html/wp-content/plugins/js_composer/include/params/vc_grid in /home/vapingha/public_html/wp-content/plugins/cornerstone/includes/classes/elements/class-element-front-end.php on line 31

If you wouldn’t mind taking a look again we’d really appreciate it.

Many thanks,
Callumn

Hi @VapingHardware,

I just check your two landing pages (Reviews and Calculator) and I don’t see any fatal error. I also check your X theme and Cornerstone plugin and they are up to date. Please let us know if you are still experiencing the issue.

Hope that helps.

Thank you.

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