Skip navigation
jcurtis66
Currently Being Moderated

Site definition error

May 23, 2013 10:48 AM

I've setup a test server environment using xampp.  I downloaded the existing site I want to work with.  It's made up of PHP scripts, html and some text files, no database connections.  If I put all the files in the htdocs directory the site runs fine, when viewed through a browser.  However when I define this location in Dreamweaver I always get the error "Dynamically-related files could not be resolved because the site definition is not correct for this server."

 

Site name:  testsite

Local Site Folder: C:\xampp\htdocs

 

Server name: testserver

connect using: Local/Network

Server folder: C:\xampp\htdocs\

Web URL: http://localhost

 

Advanced

 

Server Model PHP MySQL

 

I've tried many setups, including a sub directory in htdocs, but then the site does not run, and I still get the same Dreamweaver error about incorrect site definition.  I can create other test sites, create simple PHP scirpts, and they work no errors.

 

In the present setup the site runs, so why do I keep getting the same error message in Dreamweaver?

 
Replies
  • Currently Being Moderated
    May 23, 2013 4:58 PM   in reply to jcurtis66

    Just to confirm, the check box in the server manager where you define local/remote, that is checked for local correct?  And XAMPP is running?

     

    If that is the case, is this a downloaded script like Wordpress? If so, which one?

     
    |
    Mark as:
  • Currently Being Moderated
    May 23, 2013 5:10 PM   in reply to jcurtis66

    Site name:  testsite

    Local Site Folder: C:\xampp\htdocs\yourSiteFolder\

     

    Server name: testserver

    connect using: Local/Network

    Server folder: C:\xampp\htdocs\yourSiteFolder\

    Web URL: http://localhost/yourSiteFolder/

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 24, 2013 3:38 AM   in reply to jcurtis66

    When you browse to /localhost, you see the site's home page?

     
    |
    Mark as:
  • Currently Being Moderated
    May 24, 2013 12:51 PM   in reply to jcurtis66

    Do you have <head> tag information in a server-side include? 

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 26, 2013 6:27 AM   in reply to jcurtis66

    She is asking -

     

    1. Are you using SSI on this page?

    2. If you are, is there any <head> content, or are there <head></head> tags in the include file?

     
    |
    Mark as:
  • Currently Being Moderated
    May 26, 2013 10:35 AM   in reply to MurraySummers

    Exactly right Murray.  Thanks.

     

    To clarify, I have a PHP site configured to use a server-side include for common <head> tag data.  The <head> tags contain links to scripts and CSS files that are common to all site pages.   Since its in an include file called head.php, I can conveniently modify content in my <head> tags on all site pages at once by editing just one file.  Server-side includes are very efficient this way. 

     

    However, because of this configuration, DW cannot reconcile links inside that file and continues to throw the annoying "dynamically-related files could not be resolved because the site definition is not correct for this server" message.  In fact, my site definition is correct and the site works perfectly. So I ignore the message.

     

    I'm guessing you have a similarly configured PHP site.

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 26, 2013 3:37 PM   in reply to jcurtis66

    Is that an include fragment file, or an include parent file? In other words, is that file being included in some other file?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points