All Collections
FAQ's and Troubleshooting
How to resolve Fatal error: Uncaught Error: Call to undefined function get_header
How to resolve Fatal error: Uncaught Error: Call to undefined function get_header

Fix the Uncaught Error: Call to undefined function get_header

Eduard Ungureanu avatar
Written by Eduard Ungureanu
Updated over a week ago

The error Uncaught Error: Call to undefined function get_header() usually happens when the Divi theme has not been correctly installed, some of its core files become bugged, a 3rd party plugin conflict, or an incorrect child theme.

Reinstall the Divi theme

  1. Download a fresh copy of Divi from your Elegant Theme's account

  2. Go to WordPress Dashboard → Appearance → Themes → Add new

  3. Choose the zip file downloaded at step 1

  4. Install Divi

Note: Since Divi is already installed on the server, WordPress will display the following message: This theme is already installed.
Click on Replace active with uploaded button.

Reinstalling Divi Theme

Ensure that the error is not a 3rd party plugin conflict or Child Theme conflict

  1. Go to WordPress Dashboard → Divi → Support Center

  2. Enable the Safe Mode

  3. Check again and see if the error still appears

Note: While the Safe Mode is active, all 3rd party plugins, child themes and any other custom code will be deactivated. This only applies to the currently logged-in user. The website's visitors will not be affected by the Safe Mode being active

Did this answer your question?