Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #280114

    Hello,

    I’ve been using the Enfold theme, but have been getting intermittent site outages. I checked the error logs and found the following error:

    PHP Fatal error: Call to undefined function get_header() in /var/www/vhosts/quadrixit.com/httpdocsnew/wp-content/themes/enfold/index.php on line 9

    That line of code is: get_header();

    Any ideas on what this would be from and how I can fix it? Thank you.

    – Joseph

    • This topic was modified 10 years, 6 months ago by josephgut.
    #280253

    Hey Joseph!

    Make sure you don’t have any theme files outside of /wp-content/themes/enfold.

    Best regards,
    Josue

    #280260

    Hi Josue,

    I double-checked and we don’t have any enfold theme files outside of enfold and enfold-child. We do have the basic WP themes that come with install in the root of the default WP themes directory (i.e. twentyfourteen, twentythirteen, and twentytwelve). Can you think of any other reason we’re getting this error?

    Thanks,
    Joseph

    #280263

    Hi,

    Can you please create me an temporary FTP account? post it here as a private reply.

    Regards,
    Josue

    #280300
    This reply has been marked as private.
    #280304

    Do you have access to the PHP log? normally, the answer is there when a blank page appears.

    Regards,
    Josue

    #280309
    This reply has been marked as private.
    #280315

    Hi!

    Unfortunately that doesn’t help much and indicates something wrong somewhere else. That function is a core WordPress function and if its not working then WordPress itself is having an error: http://codex.wordpress.org/Function_Reference/get_header

    The blank url when you go to the theme folder is correct. The theme itself isn’t a site with content so trying to access it would be incorrect behavior for a user and shouldn’t result in any content anyway.

    From here, try deactivating all plugins the next time it happens. In general, make sure everything is up to date and if you’ve done any php customization try removing it.

    Also try re-uploading the theme files just in case there was an error there.

    Best regards,
    Devin

    #280321
    This reply has been marked as private.
    #280323

    Hope it gets resolved :)

    Regards,
    Josue

    #280904
    This reply has been marked as private.
    #280912

    Hi Joseph!

    If you have made all the modifications using the child theme only you can re-install the parent theme without worry, just make sure it keeps the same folder name as before.

    Best regards,
    Josue

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.