Fatal error: Uncaught Error: Call to undefined function cornerstone

Your system did an auto update on the theme and this has cased my site to crash showing this error!

Fatal error : Uncaught Error: Call to undefined function cornerstone_register_static_style() in /home/customer/www/shopforclimatechange.org/public_html/wp-content/themes/x/framework/legacy/functions/frontend/styles.php:93 Stack trace: #0 /home/customer/www/shopforclimatechange.org/public_html/wp-includes/class-wp-hook.php(303): x_output_generated_styles(’’) #1 /home/customer/www/shopforclimatechange.org/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #2 /home/customer/www/shopforclimatechange.org/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #3 /home/customer/www/shopforclimatechange.org/public_html/wp-includes/script-loader.php(2083): do_action(‘wp_enqueue_scri…’) #4 /home/customer/www/shopforclimatechange.org/public_html/wp-includes/class-wp-hook.php(303): wp_enqueue_scripts(’’) #5 /home/customer/www/shopforclimatechange.org/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #6 /home/customer/www/shopforclimatechange.org/public_ht in /home/customer/www/shopforclimatechange.org/public_html/wp-content/themes/x/framework/legacy/functions/frontend/styles.php on line 93

https://www.shopforclimatechange.org/

i’ve updated a number of plugins after disabling them all to problem solve this. Need to know what caused this cant have it happening again!

Hello Amin,

Thanks for writing in! Did you updated the X Theme first? Usually an error exist when you forgot to update the Cornerstone plugin. Just make sure that everything is up to date. Our latest versions are:

  • X theme 9.1.4
  • Cornerstone 6.1.4
  • WordPress 5.8
  • PHP 7.4

This latest release contains fixes for several issues so be sure to check out the changelog:

After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

If the updates do not help, we would love to check your site. Please provide us access to your site. You can create a secure note in your next reply 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

Please let us know how it goes.

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