New Landing How can we help? Themeforest Theme Support Neighborhood PHP Fatal Error with get header?

Viewing 15 posts - 1 through 15 (of 19 total)
  • #226327
    modbayco
    Member
    Post count: 16

    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 1

    #226333
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am not getting any error as you reported. Your website looks perfect without any error.
    Thanks
    Mohammad

    #226336
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    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_PHP

    Let us know after increasing the memory if the problem exists so we can look further.

    -Rui

    #226353
    modbayco
    Member
    Post count: 16

    I 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.

    #226355
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    We 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

    #226362
    David Martin – Support
    Moderator
    Post count: 20834

    What 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.

    #226379
    modbayco
    Member
    Post count: 16

    Thank 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?

    #226385
    David Martin – Support
    Moderator
    Post count: 20834

    Are you aware those error logs are from 2014?

    #226396
    modbayco
    Member
    Post count: 16

    Here 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.php

    #226406
    modbayco
    Member
    Post count: 16

    The problem is still happening today – any further advice regarding the get header line of code?

    Thank you,

    #226410
    David Martin – Support
    Moderator
    Post count: 20834

    Can you post us your FTP details privately here?

    Can you also disable all plugins?

    Thanks,
    David.

    #226417
    modbayco
    Member
    Post count: 16
    This reply has been marked as private.
    #226862
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    This 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

    #229190
    modbayco
    Member
    Post count: 16

    Thank 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/

    #229592
    David Martin – Support
    Moderator
    Post count: 20834

    Can 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.

Viewing 15 posts - 1 through 15 (of 19 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register