Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I know this question has been asked a million times and i have tried to understand the answers, but i am just a beginner web developer and I still do not understand technical terms so please help me out by making your answer as understandable to someone who isn't technical as possible.

Okay so i have wamp and wordpress installed. My root directory is not htdocs, but C:\wamp\www. This is also the folder where I place the themes I want to test out. For instance, the theme i want to test is called "director". When I type "localhost/director, this error appears:

Fatal error: Call to undefined function get_header() in C:\wamp\www\director\index.php on line 1

Similarly when I test out individual .php files, for example I tested out localhost/director/front-page.php, this error appears:

Fatal error: Call to undefined function get_header() in C:\wamp\www\director\front-page.php on line 1

And it's the same for all the .php files.

Other files in the www folder include: 1.) wordpress folder 2.) director folder 3.) favicon 4.) index.php 5.) testmysql.php (i'm not sure why this is here)

My wp-config.php file is in the wordpress folder, and of course in that folder there's also an index.php file. So i'm not entirely sure why it is being overwritten.

Also you should know that when I zipped my theme (director.zip) and installed it in wordpress (just localhost though), the theme worked. It's just when I manually test the theme on localhost that the error occurs. I want to solve this because I wanna be able to test individual .php files on localhost first before I install it in wordpress.

Thanks a lot!! And please try not to be too technical.

share|improve this question
    
Is your director folder contains wordpress ? If not, you cannot test individual files outside the wordpress. –  Khushboo Jun 18 at 9:44
    
Seems you need basic understanding of Theme Development –  Rahil Wazir Jun 18 at 9:44
1  
First, try googling this. All of the first 10 hits look like they would be helpful. –  Mark M Jun 18 at 9:45
    
    
@Khushboo no it doesnt, but it's the folder for the theme? –  user3751159 Jun 18 at 9:54
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.