• Hello,

    After the update to WP 5 (currently 5.0.1) I started seeing errors like this:

    PHP Fatal error:  Uncaught Error: Call to undefined function get_header() in /path/wp-content/themes/nirvana/404.php:10
    Stack trace:
    #0 {main}
      thrown in /path/wp-content/themes/nirvana/404.php on line 10

    This also is reported for files like index.php, archive.php or header.php.

    But it does not happen all the time. I see it gets into my php error file only occasionally, when some call is made.

    How could I troubleshoot this?

    Thank you

  • The topic ‘Call to undefined function get_header()’ is closed to new replies.