Theme error from x theme took down website

Hi im having an issue with the x theme. The site will not load and give an error on the live site that reads

“There has been a critical error on this website.”

The error log for the website looks like this:

[0[26-Mar-2021 08:44:03 America/Boise] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /path/wp-content/themes/Divi/index.php:1
Stack trace:
#0 {main}
thrown in /path/wp-content/themes/Divi/index.php on line 1
[21-May-2021 15:33:23 America/Boise] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /path/wp-content/themes/Divi/404.php:1
Stack trace:
#0 {main}
thrown in /path/wp-content/themes/Divi/404.php on line 1

Can you please help me sort this out? Our church website has been down since yesterday. As a temp fix i changed the them to the standard wordpress 2022 theme but all of the navigation is broken, content is missing, and styles are wrong.

Hello Freddy,

Thanks for writing in!

Based on the information you have send, the error message from the log seems to have came from the DIVI theme and not from the X theme.

0[26-Mar-2021 08:44:03 America/Boise] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /path/wp-content/themes/Divi/index.php:1
Stack trace:
#0 {main}
thrown in /path/wp-content/themes/Divi/index.php on line 1
[21-May-2021 15:33:23 America/Boise] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /path/wp-content/themes/Divi/404.php:1
Stack trace:
#0 {main}
thrown in /path/wp-content/themes/Divi/404.php on line 1

Please login to your FTP, browse to the themes folder, /path/wp-content/themes/ and remove the DIVI theme if you are not using this theme. You can then go to your WordPress dashboard, Appearance > Themes and activate the X theme.

If the above suggestion is not helping, please provide us your login details so that we can check 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

  • FTP hostname
  • FTP username
  • FTP password

- 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

Best Regards.

Hello Freddy,

It appears that you have updated the X theme and forgot to update the Cornerstone plugin to version 6.1.4. Kindly do the following instead:

  • Go to the Plugins section and deactivate the Cornerstone plugin.
  • Delete the newly deactivated Cornerstone plugin.
  • Go to Appearance > Themes and activate the X theme
  • Go to X > Validation and the install the bundled Cornerstone plugin.

Kindly let us know how it goes.

thank you so much, this fixed the issue and the website is now working correctly.

Hey Freddy,

We’re glad that it is now working properly on your end! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

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