Archive.php error

Posted in: Newspaper
Post count: 105

Hello,

Seems like since August I have an error in wp-content/themes/Newspaper/error_log (I usually don’t check this log file, therefore I didn’t notice it until now)

This looks like

Stack trace:
#0 {main}
thrown in wp-content/themes/Newspaper/archive.php on line 6
[07-Oct-2017 11:23:03 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in wp-content/themes/Newspaper/archive.php:6
Stack trace:
#0 {main}
thrown in wp-content/themes/Newspaper/archive.php on line 6

For what is worth, all the files in this folder (Newspaper) are untouched

Post count: 20687
Post count: 105

Hi Simon,

Why isn’t this solution implemented directly in the theme?
Sure, I can go and change one of these files to fix it now, but the problem is that once I decide to update the theme, the change is gone.
And 2 years from now I’m pretty sure I won’t remember to add some code to a file every time I update the theme…

Post count: 20687
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.