I was working on the WP admin about an hour ago, all good. I was able to browse to difference pages. I didn't log off. Now, when I try to go to the /wp-admin/ page I get blank white. I navigate to the log files and this is whats on the bottom lines.
[16-Mar-2020 15:20:30 America/Boise] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /home3/tcokchal/public_html/launch/index.php:18 Stack trace: # 0 {main} thrown in /home3/tcokchal/public_html/launch/index.php on line 18
I was working on the WP admin about an hour ago, all good. I was able to browse to difference pages. I didn't log off. Now, when I try to go to the /wp-admin/ page I get blank white. I navigate to the log files and this is whats on the bottom lines.
Share Improve this question edited Mar 17, 2020 at 13:20 Chetan Vaghela 2,4084 gold badges10 silver badges16 bronze badges asked Mar 16, 2020 at 21:30 Peter FriedlanderPeter Friedlander 32 bronze badges 1[16-Mar-2020 15:20:30 America/Boise] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /home3/tcokchal/public_html/launch/index.php:18 Stack trace: # 0 {main} thrown in /home3/tcokchal/public_html/launch/index.php on line 18
- You say you were working, but what exactly were you doing? get_header is an essential part of themes so I guess you were modifying a template? Perhaps try and restore that. – TomC Commented Mar 17, 2020 at 13:28
1 Answer
Reset to default 0It sounds like you are missing a file from the WP 'core'.
Make a backup copy of your wp-settings.php file, then upload a freshly-downloaded copy of WordPress. Don't upload the wp-settings.php file - that contains your database configuration.
Your plugins and themes will still be there, as will your database.