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

admin2025-06-02  1

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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748796381a313792.html

最新回复(0)