500 Internal Server Error

Posted in: Newspaper
Post count: 2

I’m having a persistent problem with a 500 Internal Server Error from Bingbot and Google crawls of the folder /wp/wp-content/themes/Newspaper/. All the folders and files within newspaper folder are being crawled just fine. This is the only crawl error on the site. Browsers display site front end just fine. I’m allowing everything to be crawled right now.

My error log is showing “PHP Fatal error: Call to undefined function get_header() in… /wp/wp-content/themes/Newspaper/index.php” But I have no idea is this related to the problem or not, or a separate issue I need to resolve.

Advice?

Post count: 285

Hi @brett707,

Open your index.php

On the line 6 you have get_header();

replace this line with:

if (function_exists('get_header')) {
get_header();
}else{
/* Redirect browser */
header("Location: http://domain.com/ ");
/* Make sure that code below does not get executed when we redirect. */
exit;
};

and change “domain” with your domain

Post count: 2

Fixed! Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.