-
Fatal Error?
At the top of every one of my pages(except for the index.php page) (http://vivid-avenue.net) I'm getting this:
Fatal error: Call to undefined function: get_header() in /homepages/31/d267335044/htdocs/layout/header.php on line 97
It's really strange because I was changing and moving things around but I didn't even go near the "get_header()" on that particular line. I have no idea what's going on. Help? :/
And sorry if this wasn't supposed to be in PHP.
-
1) There is an actual php function get_headers() which you may have misspelt as get_header()
2) You might have created your own function which has been misspelt as get_header()
3) You forgot to include the page that has got this function or you may have changed or deleted the location of this include .
Try to do one thing.. You have mentioned that you didn't get this error in index.php page... This means that you have either included the function properly in index.php or you haven't used it at all
Insert this code somewhere in index.php:
Code:
if (function_exists('get_header'))
{ echo "The function get_header is included in this page" ;}
If you get an output "The function get_header is included in this page" , then check which files you have included in index.php and find out which one you are missing in other pages...
-
I actually fixed it before I saw your reply. I think that particular code was not supposed to be on the header.php file, only on the index.php because when I took the code off of the header.php it was working properly on each page and my blog was displaying correctly as well. Thanks anyway!