Site definition error

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?

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.

Similar Messages

  • Preview versus Real View Not the Same, Site Definition Errors - Dreamweaver CS4

    I am having trouble working on sites where it seems that Dreamweaver wants me to specify different file locations for various "includes" depending on whether I want to view the site as a preview (F12) vs. on a local test server vs. on the real website server.  Note I am using Dreamweaver CS4 (ver. 10) on Windows, my local test server is Apache running via an Xampp installation on Windows, and my production server is also Apache, running at Hostgator.  I am building a fairly basic html site using SSI via SHTML files, rather than PHP or a more sophisticated method.  Here is what seems to be happening:
    1.  In my index.shtml file I call, for example, a subheader file called "header-nosub-menu.inc.htm."  I have my site definitions set to "relative to document root."  Using the insert -> SSI command, Dreamweaver links to the file with the following: My first problem is that, as specified, the subheader.menu.inc.htm file is not found and the preview gives me an error.  I get the same error if i try to display the file on my local test server (http://localhost/domainname).  However, if I upload the file to my production server, it seems to work fine.  If I change the include command to: #include virtual="./includes/subheader.menu.inc.htm," by manually inserting the "./" to change the directory reference, then the file seems to work in all three situations  Which is the correct directory specification, and why is Dreamweaver not generating it automatically?
    While I can make the manual changes in the directory specifications, I am concerned that if Dreamweaver is making an error in this instance, it may generate more serious problems that are harder to find later.
    2. The second issue seems to involve the Site Definition file configuration.I get an error message when I set up my site definition in what seems to be the correct way, specifically, using the following specifications:
    Local Root folder:  "C:\htdocs\domainname-dev\"
    http address:   "http://www.domainname/"
    testing server folder:  "C:\htdocs\domainname-dev"
    url prefix:  "http://localhost/domainname-dev"
    The error message is: "The site url prefix for the testing server does not match the site url prefix specified in the http address for the site."
    However, when I change the testing server url prefix to one that does not yield an error message ("http://localhost") I then have problems with the preview (F12) display.  Specifically, instead of a preview request generating the following url: "http://localhost/domainname-dev/TMPm393xnclqu.shtml" I find that it generates the following: "http://localhost/TMPm393xnclqu.shtml"  The so called incorrect definition seems to be the correct one, but  why is Dreamweaver not recognizing it as such?  Am I making a error somewhere else in my configuration?
    I would appreciate any assistance that anyone here can provide,
    Thanks,
    http://localhost/

    except for the Apache virtual host configuration, which I do not see a need for
    I wasn't suggesting that you use virtual hosts (although I have defined about 50 virtual hosts on my own development machine). I was trying to understand the url you listed:
    http://www.domainname/
    Without a virtual host definition, that would have no meaning and could not point to anything, unless you simply were leaving off the TLD in the example. (.com, .net, etc)
    I often use the PHP $_SERVER superglobal to define paths and handle differences between the development environment and the remote server environment. Examples:
    DOCUMENT_ROOT: D:/ZendServer/Apache2/htdocs/website/ranch (machine path)
    REQUEST_URI: /topic/calendar (url parameters)
    SCRIPT_NAME: index.php
    HTTP_REFERER: (the url of the script preceding the current script)
    HTTP_HOST: (this is the domain name. It is very useful for distinguishing between the local and remote environments)
    COMPLETE EXAMPLE:
    echo "<p><a class='noPrint' href='".$_SERVER['HTTP_REFERER']."'>RETURN TO PREVIOUS PAGE</a></p>";

  • Site definition giving http error: 0

    I just spent a whole night trying to do what should be a simple task: binding the sql data to a table I made. It's amazing: I spent A LOT of money on CS4 and it doesn't work as does FileZilla.
    I'm taking a course in Dreamweaver and have to complete an assignment using Dreamweaver. Can anyone tell me what needs to be tweaked in the software. The login, root directory, password and URL all work with Filezilla. Hostingrails insists that it's a problem with the site definition in DW.
    Help!

    You don't say which server model you're using, but there are instructions for getting CS4 running with PHP here: http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html.

  • Create a Site Definition file with Visual Web part in Visual Studio

    I tried to create a site definition file in Visual Studio 2013 and SharePoint 2013 by following the MSDN tutorial:
    Walkthrough: Create a Basic Site Definition Project. Near the end, I added a virtual web part control to the site definition and registered MyWebPartControls in the site definition's default ASPX page as written in the MSDN tutorial:
    Unfortunately, IntelliSense doesn't show any MyWebPartControls: tags, and VisualWebPart1 is highlighted with a warning “Element 'SMWebPart3' is not a known element. This can
    occur if there is a compilation error in the Web site, or the web.config file is missing.”
    Since it’s a warning, I went ahead to build and deploy the solution. However, when I used the site definition template to create a subsite, it returned a parser error:
    Unknown server tag 'MyWebPartControls:TestSiteDef1.VisualWebPart1'
    I spent half day researching and debugging, and finally solved the problem. The issue is on the registration line:
    <%@ Register Tagprefix="MyWebPartControls" Namespace="TestSiteDef.VisualWebPart1" Assembly="$SharePoint.Project.AssemblyFullName$" %>
    The $SharePoint.Project.AssemblyFullName$ is a replaceable parameter to provide values for SharePoint solution items whose actual values are not known at design time. Unfortunately, it does not find the right assembly name during the deployment. It should
    be replaced by the Assembly’s Strong Name. Here is how I fixed the problem step by step:
    In Solution Explorer, open the package node and double click Package.package
    Click Manifest tab in the Package.package.
    Copy the full assembly name in the package’s manifest. It may be similar like this:
              Assembly="TestSiteDef,
    Version=1.0.0.0, Culture=neutral, PublicKeyToken=a300f1f2da8ae976"
    Back to the site definition’s default.aspx page, replace the
                     Assembly="$SharePoint.Project.AssemblyFullName"
    in the registration line with the copied text:
    Assembly="TestSiteDef,
    Version=1.0.0.0, Culture=neutral, PublicKeyToken=a300f1f2da8ae976"
    Change the Namespace from
    Namespace="TestSiteDef.VisualWebPart1"
    to
    Namespace="TestSiteDef".
    The line to register the web part in a site definition file will look like this:
    <%@
    Register
    Tagprefix="MyWebPartControls"
    Namespace="TestSiteDef "
    Assembly="TestSiteDef, Version=1.0.0.0,
    Culture=neutral, PublicKeyToken=a300f1f2da8ae976"
    %>
    Clean, build and deploy the solution. It works like charm. (Note: the warning message on visual web part may still exist, but you can ignore it).

    Assuming your .ascx.vb file is inheriting from the web part class, you can add the custom properties in the same manor (language syntax aside).
    Be sure to use the attributes to correctly identify and scope the properties. (see:
    http://www.sbrickey.com/Tech/Blog/Post/SharePoint_Attributes_for_Web_Part_properties)
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com

  • Site definition/localhost trouble

    On advice of another poster, I scrapped an old site definition that may have a troublesome bad link for a fresh one.  It was not successful.
    I am receiving a "not found" error, as the URL for my formmail page is appearing incomplete.  It should be http://localhost/srbartending/srbregistermail.php
    but it is coming up http://localhost/srbregistermail.php
    If I hand type the correct URL, it's there.  The testing server site definition page is set properly.  It works on the remote server.
    I am mystified -- can anyone help?
    Thx, Ned

    I've noticed that too.
    But if I create a folder within the folder I want to go to, it will select the folder I wanted to go to.
    Thats my work around. I think it could be some cache problem.

  • Site Definition with Custom List Intance with Custom fields

    How to create VS 2012 > Site Definition with Custom List Instance with Custom fields?
    <site>
    <list>
    <field>

    Hi Sunil,
    it is the same way we create in VS 2010.
    Add a new empty SP project in VS2012 and then add, site, list and fields as per your requirement.
    Here are few references-
    Creating SharePoint 2010 Site Definitions in Visual Studio 2010
    http://msdn.microsoft.com/en-us/library/gg276356(v=office.14).aspx
    Creating SharePoint 2010 List Definitions in Visual Studio 2010
    http://msdn.microsoft.com/en-us/library/gg276355(v=office.14).aspx
    Walkthrough: Create a Basic Site Definition Project
    http://msdn.microsoft.com/en-us/library/ee231583.aspx
    and  I normally create a blank site with all required configuration and then create, import the template to hand craft the list and fields. this would minimize errors.
    see the below blog on this topic
    http://blogs.msdn.com/b/sambetts/archive/2013/10/17/creating-a-clean-visual-studio-solution-from-a-sharepoint-2013-site-template.aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if the reply helps you

  • Site definition DW-MX ver 6.1

    Site defintion will not let me input any information on
    'create new/edit site' to FTP with.
    It will not recognize FTP server info. But when I input exact
    info. in an FTP agent like SW-FTP
    connection is established everything works. I really think my
    DW-MX has been corrupted or
    something 'cause I should be able to use my site definition
    (FTP) in DW. Maybe Zone Alarm
    firewall problem. Please advise me how to get FTP to work and
    upload files. thanks

    did you read the technote i linked?
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16485
    Read that linked technote.
    "Dreamweaver TechNote
    Error when accessing sites: Server busy ... the other program
    is busy ...
    choose 'Switch To' to activate
    Issue
    When attempting to create a new site or edit an existing
    site, Dreamweaver
    fails with the following error:
    Server Busy
    This action cannot be completed because the other program is
    busy. Choose
    'Switch To' to activate the busy program and correct the
    problem.
    buttons: [Switch To...] [Retry] [Cancel] (grayed out)
    Note: This TechNote only applies to Windows XP Pro and
    Windows 2000 Pro
    users who have Microsoft Internet Information Services (IIS)
    installed"
    the fix is given further down.
    > Yes...I get a 550 error and/or server busy. On one site
    it tells me your
    > connected
    > but nothing is screened and freezes screen.

  • Site definition settings on FTP use in Dreamweaver CS4

    I work on a MackBook Pro, Mavericks OS, with Dreamweaver CS4. In filling in my settings in Site Definition dialog for local site and remote site, sometimes doing a Test I get the message that I am connected, but when I try to upload through Put arrow in Files Window I get the message "FTP error occurred cannot make connection to host. Your login or password is incorrect. Check your connection information."
    I do get the FTP transfer to work sometimes, but then it stops working. I have used a template to set up my pages. Could my settings using the template have something to do with it?

    I have used a template to set up my pages. Could my settings using the template have something to do with it?
    Definitely not.

  • Problems with site definition in CS5

    I am trying to define a new site in DW CS5. When I enter the site information in the dialogue box I get the following message:
    The spry assets folder is not inside the site. Please select a valid folder in your local site root.
    The program automatically creates a folder for Spry assets but the error message still appears. I tried creating a new folder, but had the same results. I can't get past this screen. Why is this happening?

    Randy,
    Thanks for your prompt response. The problem is, if I am defining a new site, there are no pre-existing folders. I am calling my site "HF", so Dreamweaver automatically chooses "/Users/Aaron/Documents/HF/SpryAssets" as the default folder for spry assets. If I use the "browse for folder" icon, I can select another folder, but what else would I choose? (I tried choosing other folders, as well as creating a new folder, and neither worked).I'm really stumped!
    Aaron
    Date: Mon, 7 Jun 2010 09:19:07 -0600
    From: [email protected]
    To: [email protected]
    Subject: Problems with site definition in CS5
    I am trying to define a new site in DW CS5. When I enter the site information in the dialogue box I get the following message: The spry assets folder is not inside the site. Please select a valid folder in your local site root.
    The program automatically creates a folder for Spry assets but the error message still appears. I tried creating a new folder, but had the same results. I can't get past this screen. Why is this happening?
    Yes, it's an annoying bug. In the Site Definition dialog, go to the Advanced > Spry tab and use the "browse for folder" dialog to select your SpryAssets folder and it will fix the path for you.
    HTH,
    Randy
    >

  • Lost site definition in CS5.5

    My IMac crashed and now l the Site Definitions file is lost, I have tried to do a restore from my Time Machine but I am unable to find the Site Definitions Folder
    I have even tried reinstalling Dreamweaver as per the instructions in the Adobe support site after reinstalling DW I am still unable to make a new site, I am getting an error message that tells me that the Sprite Assets folder is not inside the site
    Should I move the Dream Weaver application from the Applications Folder to the Trash and reinstall DW? or what?
    Some help will be appreciated

    Whenever DW starts acting up, the first thing I do is clear the program cache:
    Deleting a corrupted cache file
    If that doesn't take care of it, I move on to restoring preferences:
    http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
    If restoring preferences doesn't clear the issue, the "nuke it from orbit" option would be a fresh re-install using the Cleaner Tool:
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

  • PHP Site Definition

    Greetings! I accidentally deleted my site definition in DW CS4 and now can't remember how to define the url of the site's root folder. The site displays properly in DW's File tab and the pages display properly in design view but when I F12 to display in IE8 I get this; Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404 localhost 12/21/11 19:49:44 Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 The site is located in c:\xampp\htdocs\Milica I thought the url was http://localhost/xampp/htdocs/Milica but it doesn't work. Any suggestions? Do I have to change something in the xampp settings? Is the url wrong? Thanks!

    The HTDocs folder on a XAMPP installation is where the localhost is served from.  So:
    http://localhost/Milica = C:\xampp\htdocs\Milica

  • Unable to Retreive Site definition - Endeca 11.1

    Hi All,
    I am getting below exception.
    Can any one suggest on this?
    14:40:02,550 SEVERE [atg.endeca.assembler.multisite.ExtendedSiteManager] (http-/0.0.0.0:8080-5) Unable to retrieve site definition for site id: /homeSite: com.ende
    ca.store.exceptions.PathNotFoundException: No node found at path: [pages].

    Hi,
    If you are using the filestorefactory you should export the experience manager configurations to a directory and point the same directory in your assembler properties as well.
    This is a reason for the page not found error.
    It also throws the siteID definition is not available. So create a site named homeSite in the configuration files and do the configurations for the filestorefactory and continue with your work.
    By default if you have installed all components in a single server or machine you can just do the promote content and you will be able to work.
    Hope this solves you problem.
    Thanks,
    Karthik V

  • With site definition

    with site definition, when I try to open a file, I have an
    error message as below and it freezes my dw 8.
    "A script in file C:\Program Files|Macromedia|Dreamweaver
    8\Congifurartion\Translators\TranslationManager.js has been running
    for a long time"
    (I run CFMX 6.1 locally and defined the site mapping to CF
    root\wwwroot\applicationname)
    I patched Coldfusion and DW.
    Anyone can help?

    bkochbakke wrote:
    > I'm new to dreamweaver but have worked with WAMP
    architecture a lot. I have a
    > pre-packaged wamp architecture installed (WAMPServer by
    Romain Bourdon). I have
    > set up a virtual host for my site and the site displays
    fine when php includes
    > are used for displaying headers etc. I can't use any of
    the dreamweaver
    > database functions though. When I try I get prompted to
    set up my testing
    > server. I'm certain I have my paths correct -- set to
    the virtual host as
    > follows (where sitename is the name of my site as
    defined in the host config
    > file):
    > Server Model: PHP MySQL
    > Access: Local/Network
    > Testing server folder: C:\vhosts\sitename\
    > URL prefix:
    http://nxa/
    >
    > Any suggestions? I'm totally stumped here -- thinking it
    may have something to
    > do with how the wamp server is configured???
    Whats the url that works at the moment? Is it
    http://nxa/sitename/ or
    just
    http://nxa ?
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Bulk update site definition

    Hi,
    I'have migrated a wiki library from my Onprem SP 2013 to SP Online.
    After the migration I noticed that most of the pages were plain white pages.
    I then launched SharePoint designer and noticed a small "!" symbol. After reapplying the site definition, my pages were visible again.
    Is there a way to automate the "Apply site definition" in bulk mode, either with a tool or with Powershell ?
    Thanks.
    R.

    did you read the technote i linked?
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16485
    Read that linked technote.
    "Dreamweaver TechNote
    Error when accessing sites: Server busy ... the other program
    is busy ...
    choose 'Switch To' to activate
    Issue
    When attempting to create a new site or edit an existing
    site, Dreamweaver
    fails with the following error:
    Server Busy
    This action cannot be completed because the other program is
    busy. Choose
    'Switch To' to activate the busy program and correct the
    problem.
    buttons: [Switch To...] [Retry] [Cancel] (grayed out)
    Note: This TechNote only applies to Windows XP Pro and
    Windows 2000 Pro
    users who have Microsoft Internet Information Services (IIS)
    installed"
    the fix is given further down.
    > Yes...I get a 550 error and/or server busy. On one site
    it tells me your
    > connected
    > but nothing is screened and freezes screen.

  • Aargh - DW deleted all site definitions

    Hi there
    I've just installed DW8 without any problems - the whole
    process was smooth
    and all site definitions were ported across.
    I then (as instructed) went on to delete DWMX2004 and 'bang'
    suddenly all my
    site definitions are gone from DW8 and I'm back to square one
    I did do a backup of the DW MX2004 site profiles etc using
    the MM-Exporter
    tool (just in case) but trying to use this to recreate in DW8
    doesn't work
    as it says there are loads of files missing which it needs (I
    guess from the
    DW MX 2004 installation)
    Can anyone shed any words of wisdom before I have to go
    through and
    reconfigure 60 or 70 site definitions?
    Thanks
    Jos

    > I did do a backup of the DW MX2004 site profiles etc
    using the MM-Exporter
    > tool (just in case) but trying to use this to recreate
    in DW8 doesn't work
    > as it says there are loads of files missing which it
    needs (I guess from
    > the DW MX 2004 installation)
    What? The exporter works with DMX2004 to DW8. What kind of
    errors did you
    get? To tell you the truth, I haven't used it since DW began
    doing exports
    of multiple sites, which works just fine.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Jos Medinger" <[email protected]> wrote in
    message
    news:el8u2q$kpt$[email protected]..
    > Hi there
    >
    > I've just installed DW8 without any problems - the whole
    process was
    > smooth and all site definitions were ported across.
    >
    > I then (as instructed) went on to delete DWMX2004 and
    'bang' suddenly all
    > my site definitions are gone from DW8 and I'm back to
    square one :(
    >
    > I did do a backup of the DW MX2004 site profiles etc
    using the MM-Exporter
    > tool (just in case) but trying to use this to recreate
    in DW8 doesn't work
    > as it says there are loads of files missing which it
    needs (I guess from
    > the DW MX 2004 installation)
    >
    > Can anyone shed any words of wisdom before I have to go
    through and
    > reconfigure 60 or 70 site definitions?
    >
    > Thanks
    >
    > Jos
    >

Maybe you are looking for