Fatal error

Posted in: Newspaper
Post count: 8

Hello, I have this error happens on my server on localhost

Fatal error: Call to undefined function get_header() in /home/planetat/public_html/wp-content/themes/Newspaper/index.php on line 6

http://tutarotistaonline.com/wp-content/themes/Newspaper/

what’s this? how can I fix it? thank you very much

Post count: 8

happens in any installation, clean installation on my vps and yambien localhost Thanks

http://tutarotistaonline.com/

Post count: 8

discovered that is not the case of newspaper theme, I step in all domains, sorry for the inconvenience, thank you

Post count: 6600

Hi,

This happens because you try to access the theme’s index.php file directly and this is caused by the theme’s inability to locate the WordPress get_header function as it dose not passed trough WordPress when the request is made and in that case the function doesn’t “exist”.
You can read more about this and also have a solution for this here: http://ardamis.com/2011/06/02/fix-for-php-fatal-error-get_header-in-wordpress/

Thanks

Post count: 8

thank you very much, I got to remove the error by making a redirection in cloudflare adding a rule otherwise could not get, thank you very much, wonderful job of newspaper

Post count: 6600

Glad you managed to fix it!
Thanks for letting us know!

Post count: 95

I get this errors as well. How do you make redirection in cloudflare. Redirect of index? to where ? Can you explain ? Thx.

Post count: 20685

Hi,


@cstyn
The same solution should work, here are also some more similar topics and discussion
https://forum.tagdiv.com/topic/a-few-errors/
https://forum.tagdiv.com/topic/fetching-with-google/

Thanks

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