Fatal Error: Cannot declare class Cornerstone_Header

I updated Pro to the latest version today for a website I’m building at alzni.wpengine.com and received a critical error. After debugging, the message I received was:

Fatal error : Cannot declare class Cornerstone_Header, because the name is already in use in /nas/content/live/alzni/wp-content/themes/pro/cornerstone/includes/classes/regions/class-header.php on line 3

I’ve updated and disabled all plugins and the issue still persists. Can you help?

For anyone looking for a solution to this or a similar problem, I have found the solution:

  1. Access your server via FTP

  2. Navigate to wp_content > themes

  3. Delete the pro theme. It’s important to delete the files first as opposed to overwriting them. (In my case, I use Pro_child alongside Pro. If you’re using a child theme, keep that theme in tact.)

  4. Upload a fresh version of pro in the wp_content>themes folder. (You can download this from your account at https://theme.co/account/pro).

  5. Clear your cache and refresh your website.

Hi @btabor23,

We’re glad you sorted it out and thank you for sharing the solution with us.

Cheers!

Thank you for the follow up fix btabor23, I was able to fix the site in less than 5 minutes. I appreciate you sharing the information!

Happy to help!

@sjones1787, glad to hear you resolved it as well! Thanks again @btabor23 for the detailed solution.

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