Error - Can't update theme

Hello,

I just migrated a website over for my client and their X theme hadn’t been updated in a long time. I got a new license and updated the site, but it broke.

Here is the error:

PHP Fatal error: Uncaught Error: Call to undefined function cornerstone_register_static_style() in /nas/content/live/rockingrranch/wp-content/themes/x/framework/legacy/functions/frontend/styles.php:93\nStack trace:\n#0 /nas/content/live/rockingrranch/wp-includes/class-wp-hook.php(303): x_output_generated_styles(’’)\n#1 /nas/content/live/rockingrranch/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)\n#2 /nas/content/live/rockingrranch/wp-includes/plugin.php(470): WP_Hook->do_action(Array)\n#3 /nas/content/live/rockingrranch/wp-includes/script-loader.php(2083): do_action(‘wp_enqueue_scri…’)\n#4 /nas/content/live/rockingrranch/wp-includes/class-wp-hook.php(303): wp_enqueue_scripts(’’)\n#5 /nas/content/live/rockingrranch/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)\n#6 /nas/content/live/rockingrranch/wp-includes/plugin.php(470): WP_Hook->do_action(Array)\n#7 /nas/content/live/rockingrranch/wp-includes/general-template.php(3015): do_action(‘wp_head’)\n#8 /nas/content/live/rockingrranch/wp- in /nas/content/live/rockingrranch/wp-content/themes/x/framework/legacy/functions/frontend/styles.php on line 93

Any help with this would be very much appreciated. Thank you!

Hi Annette,

Thanks for reaching out!

It might be the PHP version is the reason behind your issue, I would suggest you upgrade the PHP version to 7.4 by contacting your Hosting Service provider and checking if that issue resolves or not.
After update please clear all type cache including the Style Cache from Cornerstone > Settings > System > Clear Style Cache and check in the incognito/private mode of the browser.

I have checked all the sites listed in your Themeco Account and found that the X theme is not updated, and it is having a very older version of X i.e. 7.1.2 and the Cornerstone version is 4.1.2. I suggest that you follow the steps below on how you can update the X theme properly.

  1. Delete the existing Cornerstone
  2. Update the X theme to the latest version on automatic updates
  3. After the X theme is updated, use the link in the dashboard to automatically install the Cornerstone. It will be at the latest version

If that does not resolve your issue, please provide login credentials for your staging site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password
– FTP/CPanel to access the files.

To create a secure note, click the key icon underneath any of your posts.

Hope that helps.

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