• Resolved lieslehlers

    (@lieslehlers)


    Hi,
    For the first time looked at the content of the error_log and realised that this error is coming up on a number of pages:

    PHP Fatal error: Call to undefined function get_header() in…

    I am not a PHP developer, and prefer to stay away from functions…so I know I didn’t change anything wittingly…

    The content of the page is:
    <?php get_header(); ?>
    <?php hu_get_content( ‘tmpl/404-tmpl’); ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Have a child theme set-up, not sure if that would impact the error message.

    Thank you!
    Liesl

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,
    that’s pretty weird as the get_header function is a WordPress function and must be available in any template file.
    Is what you copied, the content of the file 404.php?

    Thread Starter lieslehlers

    (@lieslehlers)

    Hi
    Yes it’s a copy of the content of the page. I’ve also upgraded WordPress to the latest version today to see if it will self correct. Will look at the log to see if the error reoccurs.
    Thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error – get_header()’ is closed to new replies.