Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › PHP Fatal Error with get header?
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › PHP Fatal Error with get header?
- This topic has 18 replies, 5 voices, and was last updated 8 years by Swift Ideas – Ed.
-
Posted in: Neighborhood
-
November 5, 2015 at 5:38 pm #226327
Hi – I keep getting these errors on the site due to the theme, and they are killing my server. I have updated everything appropriately and cannot fix these errors. Could you please advise what to do? It seems there may be a problem with the index file? Thank you,
126 [warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
4 [warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function add_action() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/plugins/hello.php on line 60
2 [Sat Sep 20 06:07:04 2014] [warn] mod_fcgid: stderr: PHP Fatal error: Out of memory (allocated 77594624) (tried to allocate 30720 bytes) in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/plugins/facebook/open-graph-protocol.php on line 794
1 [Wed Sep 24 18:17:23 2014] [warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
1 [Wed Sep 24 10:34:28 2014] [warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
1 [Wed Sep 24 03:22:59 2014] [warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
1 [Wed Sep 17 18:28:54 2014] [warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
1 [Wed Sep 17 11:09:54 2014] [warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
1 [Wed Sep 17 03:40:28 2014] [warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
1 [Wed Sep 10 17:46:27 2014] [warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1November 5, 2015 at 5:53 pm #226333Hi,
I am not getting any error as you reported. Your website looks perfect without any error.
Thanks
MohammadNovember 5, 2015 at 5:54 pm #226336Hi,
It seems that your server is running out of memory. You need to adjust/add you WordPress memory settings inside the wp-config.php file
Change your WordPress memory to 128M or a maximum 256M.
Also check the official documentation from WordPress in the link below.
https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHPLet us know after increasing the memory if the problem exists so we can look further.
-Rui
November 5, 2015 at 6:08 pm #226353I believe the problem is specifically here, in the index.php file, is it not?
“Call to undefined function get_header()”
How can I specifically fix this?
I did increase the memory as requested.
November 5, 2015 at 6:11 pm #226355We don’t have any similar situation so it can also be a plugin conflict.
Try to disable all plugins to see if the error still exist.-Rui
November 5, 2015 at 6:26 pm #226362What have you increased your memory size to?
That error is not something we can replicate locally, it’s likely caused by a memory issue on your server or a 3rd party plugin.
– David.
November 5, 2015 at 6:45 pm #226379Thank you for your help thus far; increased memory to 128MB.
It seems it’s the neighborhood’s index file is trying to call a header that doesn’t exist. Am I right?
November 5, 2015 at 6:55 pm #226385Are you aware those error logs are from 2014?
November 5, 2015 at 7:11 pm #226396Here are ones from today and the last few days – same thing.
[Wed Nov 04 00:25:21 2015] [warn] [client 192.155.92.112] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
[Wed Nov 04 00:25:22 2015] [error] [client 192.155.92.112] client denied by server configuration: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/index.php
[Wed Nov 04 00:25:22 2015] [error] [client 192.155.92.112] client denied by server configuration: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/index.php
[Wed Nov 04 07:43:58 2015] [warn] [client 192.155.92.112] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
[Wed Nov 04 07:43:58 2015] [error] [client 192.155.92.112] client denied by server configuration: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/index.php
[Wed Nov 04 07:43:58 2015] [error] [client 192.155.92.112] client denied by server configuration: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/index.php
[Wed Nov 04 15:19:33 2015] [warn] [client 192.155.92.112] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
[Wed Nov 04 15:19:33 2015] [error] [client 192.155.92.112] client denied by server configuration: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/index.php
[Wed Nov 04 15:19:33 2015] [error] [client 192.155.92.112] client denied by server configuration: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/index.php
[Wed Nov 04 22:50:15 2015] [warn] [client 192.155.92.112] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
[Wed Nov 04 22:50:15 2015] [error] [client 192.155.92.112] client denied by server configuration: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/index.php
[Wed Nov 04 22:50:15 2015] [error] [client 192.155.92.112] client denied by server configuration: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/index.php
[Thu Nov 05 01:46:48 2015] [error] [client 93.95.102.192] client denied by server configuration: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/plugins/akismet/akismet.php, referer: http://co54.secondmilewater.org/
[Thu Nov 05 06:06:06 2015] [warn] [client 192.155.92.112] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
[Thu Nov 05 06:06:06 2015] [error] [client 192.155.92.112] client denied by server configuration: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/index.php
[Thu Nov 05 06:06:06 2015] [error] [client 192.155.92.112] client denied by server configuration: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/index.phpNovember 5, 2015 at 8:03 pm #226406The problem is still happening today – any further advice regarding the get header line of code?
Thank you,
November 5, 2015 at 8:25 pm #226410Can you post us your FTP details privately here?
Can you also disable all plugins?
Thanks,
David.November 5, 2015 at 8:33 pm #226417This reply has been marked as private.November 7, 2015 at 11:52 pm #226862This sounds like an issue with your WordPress install – definitely not a theme issue. Try re-installing WordPress. You can also try testing with the default WordPress theme where you will see the same issue.
– Ed
November 16, 2015 at 9:35 pm #229190Thank you for your continued help. I reinstalled wordpress by the book and am still getting this PHP fatal error with get header, *based on the neighborhood index file as noted below*. Can you please further advise? Below is the most recent list. Thank you,
[Sun Nov 15 19:17:00 2015] [error] [client 192.155.92.112] Directory index forbidden by Options directive: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/
[Mon Nov 16 02:46:55 2015] [warn] [client 192.155.92.112] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
[Mon Nov 16 02:46:55 2015] [error] [client 192.155.92.112] Directory index forbidden by Options directive: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/
[Mon Nov 16 10:07:15 2015] [warn] [client 192.155.92.112] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-content/themes/neighborhood/index.php on line 1
[Mon Nov 16 10:07:15 2015] [error] [client 192.155.92.112] Directory index forbidden by Options directive: /var/www/vhosts/co54.secondmilewater.org/httpdocs/wp-includes/css/November 18, 2015 at 11:26 am #229592Can you activate the default Twenty15 theme and check if any errors are present. I cannot replicate this error.
Have you made any modifications to the core theme files?
Have you tested with all plugins deactivated?Thanks,
David. -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.