call to undefined function get_header() LOCALHOST
-
I have been trying to solve this problem and checking the forums to find solutions, but even if sometimes the problem has been solved, I have no clue. I am using XAMPP to work with the localhost. I am using a customized template. I have siteurl and home links set in DB in phpmyadmin correctly for the localhost. I can see the main page of my site perfectly. However, the links from the website are not working.
In the template folder I have a index.php file which calls a header.php, footer.php and sidebar.php. All these three files called are located in the same template folder. The sidebar file call to a customized guide.php file, located in the same folder as well. The error is not appearing when loading index.php, but when loading guide.php, as I said called in the sidebar.php. I checked the sidebar file and the call to the guide file states like follows:
<div class="txt"> <h4>Visit our product guide</h4> <a href="<?php bloginfo('template_directory'); ?>/guide.php" class="boton">View guide</a> </div>
When I click on the button link for guide, the Fatal error appears. I read the way I am calling the file (guide.php) is not correct, but I would like to know in a specific way, which changes I have to apply in order to make it work. I am quite a begginer.
Thank you so much
- The topic ‘call to undefined function get_header() LOCALHOST’ is closed to new replies.