Skip to main content
May 9, 2010
Question

Wordpress, Dreamweaver CS5, XAMPP...

  • May 9, 2010
  • 2 replies
  • 25742 views

I set up XAMPP as my local testing server using this excellent walkthrough

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

I synced my website so I had all the right files, and moved the folder into xampp/htdocs

I'm pretty sure everything went right, because if I creathe the sample php file that shows the current time/date (as instructed in the walkthrough) in my website folder, everything is working fine.

I set the Site specific code hinting to Wordpress, with everything as recursive scanning.

But when I click on index.php DW complains that I have to click "Discover" and then in the same small top bar, it complains about a Server error.

Help please... I was really looking forward to not having to 'live' test my adjustments - did I forget to do something to get Wordpress to work in Dreamweaver CS5?

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    January 7, 2012

    Use ServerPress.com's spin on XAMPP. It will enable LiveView directly on just the theme template page parts for realtime feedback. You don't have to flip back to the browser every 5 seconds or index.php in the root. Plus, you can click on the elements in LiveView and see the code associated with it in Code view.

    It also automatically generates a site definition file for you so you don't have to guess the settings, manage multiple projects, yadda yadda

    Pretty snazzy, ehh?

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

    Participating Frequently
    May 9, 2010

    I am having the exact same issue, but it's on Joomla.  I followed the same tutorial, I set up the XAMPP.  I synced my files between my local folder, my testing etc.

    My issue varies here slightly and when I click on "Live View" of my local setup site (XAMPP running correctly) it says "database error:can't connect to the mysql_database".  Here is where it's weird:  If I go to the "database" connection on my index.php file and set up for my local XAMPP server to connect to the mysql database for the site, it says "Connection Made" and there are no errors in connecting to the mysql database.  I can even see the mysql database tables in the browser and view information about them.  If I try to view the index.php file in DW I get the the same "database error: can't connect to the mysql database" EVEN AFTER IT JUST CONNECTED IN THE MYSQL DATABASE.

    This is really causing some confusion.  The tutorial does talk a bit about creating a NEW mysql database and PHP files etc. but it does not talk about importing the mysql database from an existing Joomla or Wordpress site (which will also have mysql table associated).  Using the XAMPP server I take it is simply like making a new copy of the files and structure, as well as the mysql database, to run on your computer locally.  That's why I am super confused as to how I can see it connect to the db fine in DW but when I view the index.php within DW it says it cannot connect to the DB.

    From what the OP is saying, you didn't import your DB with phpmyadmin?  Is this not a required step?  So far using Dreamweaver on an existing Joomla site is extremely difficult and time consuming, so much so, that it has taken my about 6 hours of trying and failing and troubleshooting and have gotten nowhere.

    Has anyone got this working?  I haven't really heard of any success stories on Joomla.  Regardless, sorry for the lengthy post any help would be appreciated.

    -Matt

    Participating Frequently
    May 9, 2010

    I have been able to work in Joomla, WordPress and Drupal using Xampp  - not without some speedbumps but not DW related. In Joomla you should check your configuration.php in the root directory and verify that Joomla knows all the correct site paths and server. 99% of problems I have had in the past connecting to a database could be resolved in this file.

    Participating Frequently
    February 21, 2011

    Hi

    sorry I should have been more clear in my post yes Ive installed XAMPP  (laptop is on windows 7) and set up a local server.

    my problem is when I hit live view I get the folllowing:

    Fatal error:  call to undefined function get_header() in C:xampp\htdocs\wp-content\themes\twentyten\index.php online 16

    I know  someone earlier on in this thread had the same problem but I dont seem to be able to overcome this

    but later on tonight or tomorrow I will go through Daniels post above step to step

    many thanks for taking the time to post a reply to this,  it really is much appreciated  


    You'll be annoyed at this one.

    You are opening the index.php for the twentyten theme,

    you have to open the wordpress index.php.

    If you have all the folders closed in dreamweaver then
    the index.php you should open is right below the wp-includes folder,

    when you open it and discover, then live view, you

    should get the live site

    Daniel