I get an error in my site logs: Call to undefined function get_header()

So, your site works fine and you never had the opportunity to see this error yourself, but when you page through the error logs you see consistently every day you have new of lines of this error in your error log.

PHP Fatal error: Call to undefined function get_header() in /home/jakets/public_html/blog/wp-content/themes/exile/index.php on line 1

This is nothing to be worried about. You’re only seeing this in your error log because some internet bots and incredibly lost people are trying to access your site at /wp-content/themes/your-theme-name/index.php .

The error is entirely normal for that location since theme functions are designed to be called from the blog directory, not from the theme directory.

You can limit the bot access to your theme files by creating a text file titled robots.txt in your main directory with the following content:

User-agent: *
Disallow: /blog/wp-content/themes/