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
happens in any installation, clean installation on my vps and yambien localhost Thanks
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
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
