Skip to main content
Participant
May 20, 2011
Question

Dreamweaver to Wordpress connection

  • May 20, 2011
  • 4 replies
  • 2783 views

Hello,
I'm trying to get a local wordpress site into dreamweaver. I defined a  testing server, but when I switch to live view I get this error:

------------------------------------------------------

Fatal error: Call to undefined function get_header() in  C:\wamp\www\Widget_Corp\wp-content\themes\BLANK-Theme\index.php on line 1

Call Stack
#     Time     Memory     Function     Location
1     0.0018     376432     {main}( )     ..\index.php:0

--------------------------------

Does anyone have any ideas on what might be causing this?

Thanks

This topic has been closed for replies.

4 replies

August 8, 2011

Hi,

I get the same error when viewing index.php files.... it was working fine when I started but studdenly I get the error when I turn to live view or multiscreen. I am working from my local sever.

Fatal error: Call to undefined function get_header() inC:\xampp\htdocs\wordpress\wp-content\themes\awesome\index.php on line 1

On my main browser it works fine. Am I missing something?

Benny

Message was edited by: Beneideho

Participant
August 10, 2011

Live View in Dreamweaver is still a browser mode. So the address has to read http://localhost/ when you load the index.php page it shows the address to the root and the live view doesn't understand it. Simply back out the extra in the address bar until you get http://localhost/ (this is the little address bar in dreamweaver under the "live view" button) and it should display immediately.

To edit check out this article

http://www.adobe.com/devnet/dreamweaver/articles/dw_wordpress_pt3.html

David_Powers
Inspiring
June 3, 2011

Dinoman19 wrote:

I'm trying to get a local wordpress site into dreamweaver. I defined a  testing server, but when I switch to live view I get this error:

------------------------------------------------------

Fatal error: Call to undefined function get_header() in  C:\wamp\www\Widget_Corp\wp-content\themes\BLANK-Theme\index.php on line 1

The only pages that you can load directly into Live view are the main index.php and wp-admin/index.php. Live view is a browser engine running in the Dreamweaver Document window. So, you need to access internal pages in a WordPress site by navigating from the main index page in Live view. Otherwise, Dreamweaver can't find the necessary files, such as those that define WordPress functions, such as get_header(). When navigating in Live view, hold down the Ctrl key (Cmd on Mac) when clicking a link. Alternatively, open the Live view options menu and select the option to follow links continuously. However, this is not a permanent option, you need to use it each time you launch Live view.

Participating Frequently
January 7, 2012

You can use LiveView directly on theme files, but you'll need a "Dreamweaver Aware" WordPress webserver.

http://www.youtube.com/watch?v=2bCTbjoBWa8#t=3m55s

Participant
June 3, 2011

Have you add header file in the folder?

Regards:

Kevin

[Link removed by moderator]

Inspiring
May 23, 2011

I am doing the same thing. Do you have the same version working online someplace and you are trying to duplicate it on your local computer?

Dinoman19Author
Participant
May 24, 2011

Hey, thanks for replying to my post. I downloaded the lastest version of WP and I'm using the Twenty-ten theme. I'm currently working on it through my local computer (localhost).

Inspiring
May 24, 2011

Are you trying to load a specific page? Try  loading localhost/...../wp-login/  in a browser and if that loads then get logged in and view the pages from there.