Make WordPress Core

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's profile shrewby Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.5.2
Component: Template Keywords: Fatal error
Focuses: Cc:


WordPress Strayhorn

Visit the url

or 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)

#1 @EvilBeAr
19 years ago

I don't have this error following your steps on changeset [2729]

Everything looks normal.

#2 @shrewby
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.

#3 @markjaquith
19 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

This is to be expected. You're not meant to call themes directly.

Note: See TracTickets for help on using tickets.