-
AuthorPosts
-
February 28, 2016 at 8:54 am #590374
Hello
I have 12 websites with Enfold, and with all of theme if I try to go to: http://www.my-domain.com/wp-content/themes/enfold/ I get an 500 error.
Also, the error_log file within the Enfold theme folder is full of:
[21-Jul-2015 05:02:18 UTC] PHP Fatal error: Call to undefined function get_header() in /home/XXXX/public_html/wp-content/themes/enfold/index.php on line 9(I do not have any memory problems my servers are dedicated server with 8Go Ram and wp-config always increase the allocated php memory to 1024)
I just saw this error in Google Search Console because Googe Bots was trying to access this folder.
And I also read:
https://kriesi.at/support/topic/php-fatal-error-on-line-9-in-index-php/
Enfold theme is the last 3.4.6 and allready re-ploaded.
I give you in PRIVATE (so please do not talk about this site in public) one of those site.
Thanks
February 28, 2016 at 1:55 pm #590406Hey!
That error is expected, a visitor (an user or a google crawler) shouldn’t be able to access the WP folders directly, the fix would be to create a
robots.txt
file in the root of your install and place the following in it:User-agent: * Disallow: /wp-admin Disallow: /wp-includes Disallow: /wp-content/plugins Disallow: /wp-content/cache Disallow: /wp-content/themes Disallow: /wp-includes/js Disallow: /trackback Disallow: /category/*/* Disallow: */trackback Disallow: /*?* Disallow: /*? Disallow: /*~* Disallow: /*~
Best regards,
JosueFebruary 28, 2016 at 3:56 pm #590440Hello Josue
I do not use a robots.txt since a long time because of Google recomandations.
With thoses lines :
Disallow: /wp-content/themes
Disallow: /wp-includes/js
> You prevent Google bots to crawl JS and CSS filesPlease look at: https://developers.google.com/webmasters/mobile-sites/mobile-seo/common-mistakes?hl=en-US#blocked-resources
February 28, 2016 at 9:34 pm #590490Hi!
Never seen that issue before or ever read regarding that point ( with the blocked – resources ).
Please disable the plugin and let us know if the issue regarding the Fatal Error is been solved.Now, regarding the blocked resources, I am not sure not blocking is the best ideal result…
Cheers!
BasilisFebruary 28, 2016 at 9:39 pm #590493Hello Basilis
Never seen that issue before or ever read regarding that point
Easy to reproduce, just go with Chrome to: http://www.your-website.com/wp-content/theme/enfold/ anf you’ll get an 500 error
and if you have Log error, just look ath them.You said “Please disable the plugin” but I never talk about any plugin…
Now, regarding the blocked resources, I am not sure not blocking is the best ideal result…
Yes it is, Google say: do no hide anything, it’a as simple at that…February 28, 2016 at 10:01 pm #590497It’s fine if you want to keep it that way but unfortunately there’s no way to prevent those errors to come up (note that this has nothing to do with Enfold, it will happen with any other theme that uses
get_header
or any other WP function).get_header
simply won’t work in a non-WordPress environment.Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.