Fatal Error caused by Theme X

Starting this morning, we started receiving the following fatal error on our site:

Fatal error : Uncaught Error: Call to undefined function cornerstone() in /var/www/wp-content/themes/x/framework/legacy/functions/plugins/gravity-forms.php:42 Stack trace: #0 /var/www/wp-includes/class-wp-hook.php(310): x_gravity_forms_checker(‘integrity’) #1 /var/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(’’, Array) #2 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /var/www/wp-content/themes/x/framework/legacy/functions/frontend/styles.php(43): do_action(‘x_enqueue_style…’, ‘integrity’, ‘-light’) #4 /var/www/wp-includes/class-wp-hook.php(308): x_enqueue_site_styles(’’) #5 /var/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #6 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /var/www/wp-includes/script-loader.php(2180): do_action(‘wp_enqueue_scri…’) #8 /var/www/wp-includes/class-wp-hook.php(308): wp_enqueue_scripts(’’) #9 /var/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #10 /var/www/wp-includes/plugin. in /var/www/wp-content/themes/x/framework/legacy/functions/plugins/gravity-forms.php on line 42

There has been a critical error on this website.

I reached out to Gravity Forms and they said that the fatal error is being caused by Theme X - specifically calling on a function that does not exist:

Fatal error: Uncaught Error: Call to undefined function cornerstone() in…
…/wp-content/themes/x/framework/legacy/functions/plugins/gravity-forms.php on line 42

When I de-activate the Gravity Forms plugin, we no longer receive the fatal error and the site is able to load, but the formatting is a bit off. As soon as I enable the Gravity Forms plugin, we receive the fatal error again.

We currently have Cornerstone 6.1.4 installed but it looks like 7.0.2 may update overnight.

When I go to the X tab in Wordpress admin, it says that the installed version is 10.0.2.

If you need any additional information, please let me know how to retrieve it and I can supply it.

I am hoping to get some help as to why this is happening all of a sudden. There shouldn’t have been any changes other than plugins updating. Our site is hosted at Godaddy as a part of their managed wordpress hosting.

I have some additional information:

WordPress version 6.1.1
Active theme: Child Theme (version 1.0.0)
Current plugin: (version )
PHP version 7.4.33

Error Details

An error of type E_ERROR was caused in line 53 of the file /var/www/wp-content/themes/x/framework/legacy/functions/admin/markup/page-home-box-design-cloud.php. Error message: Uncaught Error: Call to undefined function cornerstone() in /var/www/wp-content/themes/x/framework/legacy/functions/admin/markup/page-home-box-design-cloud.php:53
Stack trace:
#0 /var/www/wp-content/themes/x/framework/legacy/functions/admin/markup/page-home.php(52): include()
#1 /var/www/wp-content/themes/x/framework/legacy/functions/admin/setup.php(31): include(’/var/www/wp-con…’)
#2 /var/www/wp-includes/class-wp-hook.php(308): x_addons_page_home(’’)
#3 /var/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(’’, Array)
#4 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /var/www/wp-admin/admin.php(259): do_action(‘toplevel_page_x…’)
#6 {main}
thrown

I think you might have to upgrade cornerstone or install it. Let me know if this persists. Thanks.

So upgrade the cornerstone plugin from 6.1.4 to 7.0.2?

Correct if you are on X theme 10.0.2.

Updating cornerstone from 6.1.4 to 7.0.2 worked. Everything is displaying correctly and the gravity forms plugin is activated and working. Thank you!

You are most welcome, @ssw_ckolb

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