Soft 404 URL Error Detected by Google Crawl

Posted in: Newspaper
Post count: 17

A few days ago a soft 404 error appeared in Google Webmaster, as far as I can tell it doesn’t affect the functioning of the site but I’m curious how to go about removing it?

The soft 404 is at appears at this address http://www.mywebsite.com/wp-content/themes/Newspaper

And this is what shows up on the page

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

Post count: 9544

Simply mark it as fixed in your Google account.

This happens when changing or updating theme, as temporarily there is no theme index content working, and so throws error. The ‘theme’ directory is not a public directory.

Post count: 17

Perfect, thank you.

Post count: 9544

About the only way to stop this is to put an index.php file in there with something like a message not a public page with noindex and redirect to main site. Drop that into the theme folder before FTP update. Or, use some kind of ‘maintenance’ plugin, when doing theme changes/updates. I’ve done both, and neither 🙂

Post count: 6

thanks

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.