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

Dreamweaver to Wordpress connection

New Here ,
May 20, 2011 May 20, 2011

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

TOPICS
Server side applications
2.8K
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
Engaged ,
May 23, 2011 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?

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
New Here ,
May 23, 2011 May 23, 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).

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
Engaged ,
May 23, 2011 May 23, 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.

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
New Here ,
May 23, 2011 May 23, 2011

No, I'm not trying to load any specific page. When I open it in my browser it works fine. What I'm trying to do is get it to display 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
Engaged ,
May 25, 2011 May 25, 2011

What is the name of the file you are viewing? Make sure you have all the function paths correct at the top of the page.

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
New Here ,
Jun 03, 2011 Jun 03, 2011

Have you add header file in the folder?

Regards:

Kevin

[Link removed by moderator]

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 ,
Jun 03, 2011 Jun 03, 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.

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
Explorer ,
Jan 07, 2012 Jan 07, 2012
LATEST

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

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
Aug 08, 2011 Aug 08, 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

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
New Here ,
Aug 10, 2011 Aug 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

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