-
AuthorPosts
-
June 17, 2014 at 5:31 pm #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.
June 17, 2014 at 11:08 pm #280253Hey Joseph!
Make sure you don’t have any theme files outside of /wp-content/themes/enfold.
Best regards,
JosueJune 17, 2014 at 11:21 pm #280260Hi 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,
JosephJune 17, 2014 at 11:25 pm #280263Hi,
Can you please create me an temporary FTP account? post it here as a private reply.
Regards,
JosueJune 18, 2014 at 12:41 am #280300This reply has been marked as private.June 18, 2014 at 12:44 am #280304Do you have access to the PHP log? normally, the answer is there when a blank page appears.
Regards,
JosueJune 18, 2014 at 1:09 am #280309This reply has been marked as private.June 18, 2014 at 1:21 am #280315Hi!
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,
DevinJune 18, 2014 at 1:31 am #280321This reply has been marked as private.June 18, 2014 at 1:33 am #280323Hope it gets resolved :)
Regards,
JosueJune 19, 2014 at 2:37 am #280904This reply has been marked as private.June 19, 2014 at 3:01 am #280912Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.