Tagged: fatal error
-
AuthorPosts
-
November 19, 2013 at 7:27 pm #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 9Line 9:
get_header();The website loads very slowly and I think it may be related to this error.
November 20, 2013 at 1:55 am #190764Hey ubercool!
Did you add any plugins prior to the issue? Please check Settings > Reading, don’t set any page.
Best regards,
IsmaelNovember 20, 2013 at 9:41 am #190860It was a clean installation. All plug-ins were installed at the same time, including:
Akismet
bbPress
Contact Form 7
Digg Digg
Enable Media Replace
Gravity Forms
Hover Image
Redirection
WordPress Importer
WordPress SEO
WP Google Fonts
WP Retina
WP Super CacheNovember 21, 2013 at 10:26 am #191384Hey!
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,
PeterNovember 22, 2013 at 12:17 am #191676While 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
November 22, 2013 at 2:31 am #191697Actually, 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.
-
AuthorPosts
- The topic ‘PHP Fatal Error on line 9 in index.php’ is closed to new replies.
