Skip to main content
November 17, 2009
Question

php works on apache - not live data view

  • November 17, 2009
  • 2 replies
  • 527 views

Fatal error: Call to undefined function get_header() in C:\Program Files\Apache Group\Apache\htdocs\fast-weight-loss-diets\wp-content\themes\super-review\index.php on line 2

Line 2 says

1 <?php

2 get_header();

3 ?>

Other php pages will work, but this one doesn't. what am i doing wrong? Please help me.

This topic has been closed for replies.

2 replies

November 18, 2009

Thank you Sir for your help. Now i can move on with my project.

David_Powers
Inspiring
November 18, 2009

buffbill wrote:

Fatal error: Call to undefined function get_header()

The error message says it all: get_header() is an undefined function. It's a custom function in WordPress. When you view a WordPress blog, the blog application knows where to find the get_header() definition. However, it sounds as though you are trying to view index.php directly in Dreamweaver Live Data view, and Dreamweaver can't find the function's definition.

Long story short: you can't view WordPress pages directly in Live Data view. You need to display the page in a browser, and save a static copy of it to work with in Dreamweaver.