Opened 19 years ago
Closed 19 years ago
#1530 closed defect (bug) (wontfix)
Fatal error: Call to undefined function: get_header() in every theme.
Reported by: | shrewby | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 1.5.2 |
Component: | Template | Keywords: | Fatal error |
Focuses: | Cc: |
Description
WordPress 1.5.1.3 Strayhorn
Visit the url
www.yourwebsite.com/BLOG_DIRECTORY/wp-content/themes/THEME_DIRECTORY/
or
www.yourwebsite.com/blog/wp-content/themes/blix/page.php index.php etc.
and you get
Fatal error: Call to undefined function: get_header()
Most blogs seem to list their theme directory in the source in the css link so joe naughty user can annoy.
Change History (3)
#2
@
19 years ago
Checked many other wordpress blogs on the net. So far of 14 checked only two didn't give the error.
A quick look at any of main files in the templates you can download you'll see they start with get_header(). The files are expected to be called from the wp main directory but if you access them directly they obviously will give out an error as the function doesnt exist.
I don't have this error following your steps on changeset [2729]
Everything looks normal.