I installed WAMP server on Windows XP – it worked. I installed WordPress 3.4.2 into www.wordpress – no problem. In Dreamweaver CS5 I created a site with www.wordpress as root folder, and assigned a local test server – no problem.
The, in Dreamweaver, I opened twentyten theme – index.php – and pressed F12 to see the page in Firefox – and got:
Fatal error: Call to undefined function get_header()... - on line 16
This is a completely new and clear wordpress installation. Why is the function (get_header) – undefined? To check the server I copied another .php file into the same folder – F12 – it works.
When you click the F12 in Dreamweaver , it will open the file in the browser using the windows local path file system to the file, which wont work as you should run the file on localhost.
Using F12 file will open as
C:\\Wamp\Wordpress\index.php.But you should rather open it as
localhost/wordpress/.Also, you should be running
index.phpthat is in wordpress folder and not the index file that is in themes folder.