• OK, I am not a whiz at this stuff and looking at code makes me appreciate good programmers. I have this error and would like to simply correct it and move on:

    Fatal error: Call to undefined function get_header() in /home/content/b/a/b/babyfun/html/wp-admin/page.php on line 1

    Reading through the Forum I do not quite know what to look for as an answer. Can anyone help, please?

Viewing 6 replies - 1 through 6 (of 6 total)
  • There shouldn’t be a page.php in the wp-admin folder. It should be inside the theme folder, ie /wp-content/themes/your-theme/page.php.

    Thread Starter babyfun

    (@babyfun)

    Thanks Joseph, that was quick. Again, pardon my ignorance in this reply. Should the line then read ‘wp-content/themes/theme905/page.php’? That doesn’t work and I get a ‘404’. And should the page be numbered?

    Sorry for my ignorance.

    Thanks,

    Ron

    What were you doing which resulted in the error?

    The error suggest you were accessing page.php in a directory (the wp-admin folder) where the file shouldn’t exist.

    Thread Starter babyfun

    (@babyfun)

    Trying to Edit a Page, that is it. All Pages error the same. I don’t understand how to get past this and what I should type?

    Appreciate all your help and patience.

    Try re-uploading the wp-admin and wp-includes folders from a fresh download of your version of WordPress.

    Thread Starter babyfun

    (@babyfun)

    Other thoughts please?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error: Call to undefined function get_header’ is closed to new replies.