Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #190697

    I thought I had solved this yesterday but the error log says I didn’t. Do you know what the problem is?

    Website: http://www.theinternational.com

    Error message:
    [19-Nov-2013 02:51:43] PHP Fatal error: Call to undefined function get_header() in /home3/theintj0/public_html/wp-content/themes/enfold/index.php on line 9

    Line 9:

    The website loads very slowly and I think it may be related to this error.


    Hey ubercool!

    Did you add any plugins prior to the issue? Please check Settings > Reading, don’t set any page.

    Best regards,


    It was a clean installation. All plug-ins were installed at the same time, including:

    Contact Form 7
    Digg Digg
    Enable Media Replace
    Gravity Forms
    Hover Image
    WordPress Importer
    WordPress SEO
    WP Google Fonts
    WP Retina
    WP Super Cache



    The get_header() function is a default WordPress function: http://codex.wordpress.org/Function_Reference/get_header . If it’s “undefined” wordpress doesn’t load properly. Please try to increase the allocated php memory to 128M: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    Best regards,


    While I did what you suggested, it didn’t solve the problem. I do want to draw attention to the fact this error log does not refer to the WordPress header but your own theme index.php page. I don’t know if that makes a difference:

    [21-Nov-2013 14:51:19] PHP Fatal error: Call to undefined function get_header() in /home3/theintj0/public_html/wp-content/themes/enfold/index.php on line 9


    Actually, I had PHP memory only set at 96MB, now it’s at 128MB and the site is definitely loading much faster. Perhaps this has actually solved the problem. I will keep monitoring the error_log.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘PHP Fatal Error on line 9 in index.php’ is closed to new replies.