Tagged: fatal error
I thought I had solved this yesterday but the error log says I didn’t. Do you know what the problem is?
[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
The website loads very slowly and I think it may be related to this error.
Did you add any plugins prior to the issue? Please check Settings > Reading, don’t set any page.
It was a clean installation. All plug-ins were installed at the same time, including:
Contact Form 7
Enable Media Replace
WP Google Fonts
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
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
The topic ‘PHP Fatal Error on line 9 in index.php’ is closed to new replies.