Problem updating X on wordpress site

Having an issue updating the website to the latest version, I have had to restore the site back to an earlier version.

We were receiving a fatal error:

Fatal error: Uncaught Error: Call to undefined function cornerstone_register_static_style() in /home/compassmarketing/production/twinstrology/wp-content/themes/x/framework/legacy/functions/frontend/styles.php:93 Stack trace: #0 /home/compassmarketing/production/twinstrology/wp-includes/class-wp-hook.php(287): x_output_generated_styles(’’) #1 /home/compassmarketing/production/twinstrology/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /home/compassmarketing/production/twinstrology/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/compassmarketing/production/twinstrology/wp-includes/script-loader.php(1999): do_action(‘wp_enqueue_scri…’) #4 /home/compassmarketing/production/twinstrology/wp-includes/class-wp-hook.php(287): wp_enqueue_scripts(’’) #5 /home/compassmarketing/production/twinstrology/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #6 /home/compassmarketing/production/twinstrology/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #7 /home/compa in /home/compassmarketing/production/twinstrology/wp-content/themes/x/framework/legacy/functions/frontend/styles.php on line 93
There has been a critical error on your website.

Hey @ddubois63,

Thanks for reaching out!

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.9.2
  • 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.

Hope that helps and let us know how it goes.

Hi, the hosting company server guys have said the conflict is with the cornerstone plugin - We need to download cornerstone again and reinstall. There full explanation in secure note. Please let us know where to find the plugin for download.
Many thanks

Having same problem. Already reinstalled Cornerstone, but still nothing working.

Hey @wikiconsultoria,

The issue has something to do with the compatibility between X and Cornerstone. Your X theme version is 7.2.3 while your Cornerstone is 5.3.3. That being said, I deleted the Cornerstone plugin and added the correct Cornerstone version that is compatible with X 7.2.3. Your website is now working properly.

On the other hand, I highly suggest updating your X theme and Cornerstone plugin to the latest version to avoid any security issues.

Hope that helps.

Thank you so very much Marc - really appreciate all your help here. You saved the day !
Thanks again :slight_smile:

You are most welcome, @ddubois63.

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