Fatal Error Cornerstone Update

I updated Cornerstone and it broke my webpage on wordpress. My host is saying we have the latest PHP, and they don’t have 7.4 ( saw that as an option to help fix).

I was able to get it opened back up in recovery mode, but can’t get the old version of the plugin back working. The backup restore to the dey before still leaves a broken plugin:

An error of type E_ERROR was caused in line 8 of the file /var/www/wp-content/plugins/cornerstone/includes/classes/classic/utility/class-shortcode-preserver.php . Error message: Cannot declare class Cornerstone_Shortcode_Preserver, because the name is already in use

Any other ideas? Our website is looking pretty awful (if you can even see it?) angeliniarchitects.com

Nevermind - after an hour on chat with GoDaddy to request the PHP 7.4 and ask why the restore feature totally broke the website and didn’t actually restore it, I was able to fix it myself by re-installing the theme and re-updating cornerstone. It seems to have worked this time…

Hi @kjensen,

We’re glad that you’re able to figure it out! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

Hello! I am having the same issue with walstondoorcompany.com and olympic-carwash.com/. I was able to contact my host to restore my backups so both sites are now up and running but I would like to know what to do from here so I can keep all my plugins up to date without breaking my sites again?
If I do like stated above and re-install the theme and reupdate cornerstone would that work without messing things up? If so, what steps would I take to complete this process of deleting the x theme and re-installing? Or is there a better option?
Thank you!

Hi @jmonroe08,

Thanks for reaching out!

In Cornerstone 6+ that file should be located here:

cornerstone/includes/classes/classic/elements/class-shortcode-preserver.php

But in the error above it claims to be here:

cornerstone/includes/classes/classic/utility/class-shortcode-preserver.php

I suspect what might have happened is the new files were added, but you still have the old files present in which case it would find both and crash like this.

Did you happen to update manually using FTP or a file manager? Often when updating that way it will replace existing files, and add files that don’t exist in the new locations but it doesn’t know to delete files that were relocated.

I would recommend fully deleting Cornerstone and reinstalling. A good way to do this would be:

  • Fully delete Cornerstone
  • Ensure X is on the latest version
  • Use the link provided by X in the dashboard to automatically install Cornerstone at the latest version.

Let us know how that goes.

Better than “fatal error” but still not perfect. The menus (primary and footer) are now messed up. Any idea how to fix that? I attached before and after pictures below but need to go ahead and do a backup restore of our customers.
OCWBefore

My other site is having the same problem. Here are some pictures of the messed up formatting but I also did a backup restore on this site until I have a solution to the problem. Any ideas? Thank you!!

Hi @jmonroe08,

Please do the following:

  • Ensure that you are fully up to date. WordPress, Theme, and Cornerstone (Version Compatibility)
  • Also make sure the PHP version is 7.4 or higher (WordPress recommends)
  • Remember to clear all your caching features (plugin, server-side, CDN, and browser’s cache) after updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

If the issue persists, please create your own thread and provide us login credentials in there in a “Secure Note” so we can take a closer look. Not here because the original poster will see it.

Thanks,

Thank you I’m still having the same problem even with the above recommendations. I will create a new thread/secure note.

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