Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

php works on apache - not live data view

Guest
Nov 17, 2009 Nov 17, 2009

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.

TOPICS
Server side applications
530
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 18, 2009 Nov 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 18, 2009 Nov 18, 2009
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines