$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>php - Fatal error: Uncaught Error: Call to undefined function get_header()|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

php - Fatal error: Uncaught Error: Call to undefined function get_header()

matteradmin8PV0评论
Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 6 years ago.

Improve this question

Fatal error: Uncaught Error: Call to undefined function get_header() in C:\xampp\htdocs\allegiant\index.php:1 Stack trace: #0 {main} thrown in C:\xampp\htdocs\allegiant\index.php on line 1

I downloaded a template web free of wordpress, but i have problems with the code of this template web, when i´m going to open the file index.html, show me a mistake or

"Fatal error: Uncaught Error: Call to undefined function get_header()"

i has been try of give it a solution, but shows me this

"Call to undefined function get_header() "

and i can not see or put it together. searched for em all places, but i don´t found a solution for my problem i need help with this problem. here i will leave the code

i don´t speak your lenguage, sorry for my mistakes when i write :(

Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 6 years ago.

Improve this question

Fatal error: Uncaught Error: Call to undefined function get_header() in C:\xampp\htdocs\allegiant\index.php:1 Stack trace: #0 {main} thrown in C:\xampp\htdocs\allegiant\index.php on line 1

I downloaded a template web free of wordpress, but i have problems with the code of this template web, when i´m going to open the file index.html, show me a mistake or

"Fatal error: Uncaught Error: Call to undefined function get_header()"

i has been try of give it a solution, but shows me this

"Call to undefined function get_header() "

and i can not see or put it together. searched for em all places, but i don´t found a solution for my problem i need help with this problem. here i will leave the code

i don´t speak your lenguage, sorry for my mistakes when i write :(

Share Improve this question edited Mar 16, 2019 at 6:15 Tanmay Patel 8111 gold badge7 silver badges11 bronze badges asked Mar 15, 2019 at 22:00 cindhy Paraleloscindhy Paralelos 11 silver badge1 bronze badge 1
  • 3 The path to the theme doesn't look right: Have you installed WordPress? – Andy Macaulay-Brook Commented Mar 15, 2019 at 22:32
Add a comment  | 

1 Answer 1

Reset to default 1

get_header() is a Wordpress template tag, so only available within Wordpress. You are using a Wordpress theme and by mistake placed it in the root folder of your site.
Place it within your WordPress installation folder in wp-content/themes/ folder. And finally activate in through dashboard by navigating to Appearance -> Themes.

Post a comment

comment list (0)

  1. No comments so far