Fatal error in /wp-content/themes/Newspaper

Posted in: Newspaper
Post count: 12

Hi,
in Google search console appeared two 404 errors in the desktop version:

https://thekeenet.com/wp-content/themes/Newspaper
https://thekeenet.com/wp-content/themes/Newspaper/

I checked but the Newspaper folder is there in that position. If I click on the link this is what appears:

“Fatal error: Uncaught Error: Call to undefined function get_header() in /home/thekeene/public_html/wp-content/themes/Newspaper/index.php:6 Stack trace: #0 {main} thrown in /home/thekeene/public_html/wp-content/themes/Newspaper/index.php on line 6”

This is in the index.php file (at line 6) :

<?php
/* —————————————————————————-
the blog index template
*/

get_header();

//set the template id, used to get the template specific settings – this was the old home.php template
$template_id = ‘home’;

I’m using the header style 12. I set it in the theme panel/header style.
I don’t know the reason for the 404 errors.

Kind Regards
Francesca

Post count: 22421

Hello,

Please check this article for a solution:
https://ardamis.com/2011/06/02/fix-for-php-fatal-error-get_header-in-wordpress/

Thank you

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