Poriblems with Server Side Include

I amtrying to convert to Spry Menus using SSI. into a template.  been beating my head against the wall on what can go in and what can't in an include fil but that turns out not be my big problem
when in using Dredamweaver CS5   and  do a server side I have major issues at the differeent levels
i have the file in a directory off the site root called  Includes
the file i am trying to include
using a page at the root level my statement using document relation is
<!--#include file="Includes/Navbar.html" -->
works fine   channg to site relation does not work   Ok so far so good
however a page in a lower level director gets the dreaded
[an error occurred while processing this directive]
and i get an error
[Sat Sep 01 16:51:42 2012] [error] [client 174.57.220.98] unable to include file "../Includes/Navbar.html" in parsed file /usr/local/www/kasdivi.com/blog/beachguide.html
and also
Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/memcache.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/memcache.so&quot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/apc.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/apc.so&quot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/pdf.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/pdf.so&quot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/memcache.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/memcache.so&quot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/apc.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/apc.so&quot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/pdf.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/pdf.so&quot;
the php errors don't seem mahor although they seem to have i have another iisue or are the related
but that aside
If I move the include file to the same level as the pade with approprirate include statement no problem it works
if i move it to a subditrectory  then it doesn't work
summary
i can get SSI to work for page on the root level using Includes from a subdirectory
but on other level I must have the include in the same directory with the page
any thoughts??

Your menu links are inside an include file.  There should be nothing else inside that file except the list tags, classes & hyperlinks.  Links are relative to the parent page(s) in which they will occur.
All supporting scripts and CSS go inside the parent page -- in your case, the Template.dwt file.
Local Files Panel:
     -Includes
          menu.html
          footer.html
     +Styles
     +SpryAssets
     -Templates
          main.dwt
     about.shtml
     contact.shtml
     index.shtml
     services.shtml
Problems will occur if you use document relative link paths with pages that are located inside sub and sub-sub folders. Obviously, you want to avoid doing that.  For best results, keep all your site pages at root level.
Hope this helps,
Nancy O.

Similar Messages

  • Tabbed with Server Side Include

    Has anyone had any problems adding Server Side Include to the Spry Tabbed Pannels, everytime the I add a SSI to the tabbed content is locks up the tabs.
    Where the hell are to get support is this an interAKT, ADOBE or your on your own.

    Hello,
    I don't have an answer to your problem, because I've never tried this approach.
    However, I can tell you that this is an USER-TO-USER forum. If you need to request technical support from Adobe, you need to go here:
    http://www.adobe.com/go/support/
    regards,
    Ionut

  • Problem with server side includes

    Hi - I have a page with two php includes which no longer display properly. They were fine when I set them up, and I haven't changed anything.  They don't display online - and also don't display on my local server (Apache).  I have identical code on other sites which does display properly, both on my server and online.  There's nothing wrong with the file paths as they display correctly on the DW display screen, and also on live display, so I'm completely baffled.
    Can anyone shed any light?
    Here's a sample page - http://www.lucidinsight.com/travelprev.shtml
    The includes should both be displaying on the right side of the page (hence the two error messages)
    Thanks!

    Hi...contrary to all logic and expectations, shtml pages DO process php includes.  I appreciate that this seems very strange but I have several examples on my sites, with identical code to that already posted, and they work.  I have to use a .php file extension rather than .asp as this is required for the file to be read by an online CMS site - rather than change the page to a php file and have to amend the site navigation, I have gone with just changing the file extension.  This works for every single one of my sites except this one, and I can't see why, hence this question...
    SW

  • Need to get a spry menu to work on every page with Server Side Includes

    I've created such a menu and have pasted the code into its own PHP file and then added the include but it just comes out as a blob of code and links.  Any tips on how to do this?  Thanks.

    The following code was entered into a php file called topNav.php which was made reference to by another fiel.  the result looks like this:
    <ul id="MenuBar1" class="MenuBarHorizontal">
        <li><a href="/index.php">Home</a></li>
        <li><a href="/coming.php" class="MenuBarItemSubmenu">Resources</a>
          <ul>
            <li><a href="#">About Our Company</a></li>
          </ul>
        </li>
        <li><a href="/coming.php">Announcements</a></li>
        <li><a href="/coming.php" class="MenuBarItemSubmenu">FAQs</a>
          <ul>
            <li><a href="#">Human Resources</a></li>
            <li><a href="#">Compliance</a></li>
            <li><a href="/it/it_faq.php">IT Department</a></li>
            <li><a href="#">Editing/Publishing</a></li>
          </ul>
        </li>
        <li><a href="/coming.php" class="MenuBarItemSubmenu">Lounge</a>
          <ul>
            <li><a href="#">Event Photos</a></li>
            <li><a href="#">Wanted/For Sale</a></li>
          </ul>
        </li>
        <li><a href="/coming.php">New Employees</a></li>
      </ul>
      <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>

  • Server-side includes not working

    Running CF9.x on Apache 2.2 Win 7.
    I inherited an older html multiple page site that we are breaking down into includes using html server-side includes:
    e.g. <!--#include file="includes/sidebar.html" -->,  and saving the page as a .html file, which is then <cfincluded> in a .cfm file.
    Is there a way to get <!--#include file="includes/sidebar.html" --> include working on a CF page? All I see is the contents of the page, but none of the sidebar.html, or header.html, etc.
    I know I could switch to cfincludes, but the boss LOVES to muck around with the html side of things.
    TIA,
    Doug

    I know I could switch to cfincludes, but the boss LOVES to muck around with the html side of things.
    All the more reason to do it, surely?
    But anyway...
    I've never used a server-side include, but it looks to me that they just load the file and return it at that position in the document.
    For CF code to be executed, the file needs to be REQUESTED, so it won't be a starter with server-side includes.
    Adam

  • Server-side includes in cs5

    have used all previous versions of dw. no prior problem with server-side includes. now, they are not showing up in design view. Yes, I have marked preferences to include hidden items/server side includes. any thoughts anyone?

    I set up a static test site.  It has no testing server defined - just a local site.  In that site I have two files -
    1.  include-test.html
    2.  /_inc/test.html
    Their contents are -
    INCLUDE-TEST.SHTML
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <p>This is a test of SSI.  The following paragraph is an HTML include -</p>
    <!--#include file="_inc/test.html" -->
    </body>
    </html>
    TEST.HTML
    <p>Ut aliquip ex ea commodo consequat. Duis aute irure dolor eu fugiat nulla pariatur. Sunt in culpa ullamco laboris nisi quis nostrud exercitation.</p>
    When I look at Design view for include-test.html, I can see the contents of the include file, and I can see it listed as a related file below the filename tabs:
    So, I'm at a loss....

  • SSI Server Side Includes searchable?

    I'm creating a site that uses Server Side Includes to pull
    content into pages. The client wants to include a Search function
    to the site. My question is can a search function not only find the
    SSI pages but pull them up directly?
    Please see
    http://www.trainride.org/mtm_index.shtml
    The 2nd line of the bottom navigation are links that pull
    content into the page with server side includes. Is there a way to
    search and load the content pulled in by the server side includes?
    Any help would REALLY be appreciated.
    Thanks in advance!

    Melissa,
    I believe that the search engines create their indexes using
    spiders
    that walk through all of the browser links in your site. The
    content of
    your SSIs get embedded into your page on the server, so there
    is no
    actual link by the time the page gets to the browser.
    So, I think you need to add a hyperlink to your SSI pages
    some (maybe
    hidden) place in your site so the spiders will find them.
    HTH,
    Randy
    > I'm creating a site that uses Server Side Includes to
    pull content into pages.
    > The client wants to include a Search function to the
    site. My question is can a
    > search function not only find the SSI pages but pull
    them up directly?
    > Please see
    http://www.trainride.org/mtm_index.shtml
    > The 2nd line of the bottom navigation are links that
    pull content into the
    > page with server side includes. Is there a way to search
    and load the content
    > pulled in by the server side includes?

  • Server Side Includes Don't Show Up?

    I support a web site and I've been maintaining it with DW (previous to CS3 and now I'm using CS3) and except for the home page, whenever I test a page locally on my PC, the content of the includes don't show up in the browser.  Once I upload them to the web site, they work fine.  I should point out that the home page is the only page in the root directory.  All the other pages are in a next level folder.  At the time I designed the web site, I thought this would help me organize things, but I regret doing it.  This has happened with the previous version and with CS3.
    Anyway, it's what I'm stuck with.  I've set up my local site without server access.  Given my situation, is there anyway to get the includes to work on my PC when I test the pages within DW?

    To summarize: I press F12 to start a browsing session and that page is displayed properly with server side includes.  While in that browsing session, I click on a link to another page, and that second page in the browsing session does not disply the server side includes.  When these pages are uploaded to the server, they work properly
    If you open one of the inner pages, and hit F12 can you see the includes on that page,,  or on any of the other inner pages when you browse to them individually?   I bet you can  :-)
    It's only when you try and go from the temp file to a properly name file that it doesn't work. There was a technote explaining this much better than Ican, but I just can't find it now.
    If you want to see the pages work as if they were on the server, that is going from page to page by clicking on individual links, you really need to set up a testing server on your machine.
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f693f21-7b6 ba.html
    http://kb2.adobe.com/cps/191/tn_19165.html

  • Server Side Includes not rendering correctly in Firefox with Layers

    Hi
    The server side includes are not correctly rendering with layers in firefox. From my site here:-
    http://www.osteriastecca.com/index.php
    the home_page.php content renders above a layer on the index.php page. Initially I thought this might be a Flash layer issue but the wmode is set correctly to transparent and it works fine with a normal ssi. It also works fine in Firefox without a server side include as you can see here:-
    http://www.osteriastecca.com/index_old.php
    Works fine in IE and Safari, but not Firefox.
    How can this be rectified?
    Regards
    Glennyboy

    What testing server setup do you have? Are you using something like WAMP?
    What do you see on screen which tells you the SSIs are not rendering? Any error message?

  • Server Side Includes with Server Behaviors

    Is it possible to include pages that have server behaviors attached to them, or are these behaviors limited to pulling in just plain html from the included pages?
    For example, I want two pages, index.php and login.php.
    I want the login.php page to have all of the user login behaviors/links/fields/buttons/etc. and then Include that on the index.php page. Am I supposed to be able to do this using ADDT server side includes?
    I've been successful using server side includes to include static text on a page, but not dynamic content with behaviors attached. I'm not sure if I'm just have a mistake, or if this won't work in the first place.
    thanks!

    Hi,
    this is generally possible, as the included files sure can have their own server hehaviours -- did that several times, where the "container" page had about no server behaviours embedded, but the included file did.
    ADDT´s server side includes will, loosely said, basically just "dynamically" strip the included document´s "head", but leave other components like server behaviours untouched
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Server Side Includes with .irpt pages

    I am intrested in using server side includes within my .irpt pages for example
    <!#INCLUDE FILE="file.inc">
    specifically inside of my applet tags to reference a standard set of parameters that I would like to be passed into my display templates.  Does xMII have a similar representation of server side includes for .irpt pages?

    It might make your head explode, but in a good way...
    Also, you'll need 11.5 or newer to run this. There are so incredibly many opportunities that this might open up for you to deliver not only static, but also dynamic embedded server-side content.
    There are many aspects of xMII that are largely untapped.  A few common ones are the ability of the Runner servlet (which invokes xMII BLS transactions) to stream virtually any type of content back to the requestor (XML, HTML, text, images, PDFs, Excel, whatever).
    The other feature that not too many people use is the ability to use an xMII BLS transaction as a "stylesheet".
    Lastly, there is the little-known "<SERVLET>" tag that can be used in IRPT pages.
    Put all these pieces together, and amazing things can be done.  The example I'm going to show you uses a BLS transaction, but it can also be done with an XSL stylesheet (if the desired included HTML is static).  But let's go for the cool approach...
    Let's assume you have some "stuff", such HTML page content, that you want included in a specific position on your web page.  Let's also assume that this "stuff" resides in a file accessible at http://localhost/MyInclude.html (the file extension doesn't really matter).
    Create a new BLS transaction with no inputs and an output of type String (the name of the output doesn't matter - but in our case, let's assume you name it HTMLOutput).  To workaround a cosmetic bug (which will be fixed in a future patch), you should also create a second output (doesn't matter what name or type) - so add one called "DummyOutput" of type String.  Not worth explaining why - just do it. 
    Next, add either a TextLoader or HTMLLoader action (in the Web group) to your transaction (they both do the same thing, actually - just different icons).  In the Output links tab, assign the StringContent of the loader action to the transaction output.  This basically accomplishes the loading and streaming of your included "stuff".
    Save this transaction.  Let's save it in a folder called CoolStuff, with the name IncludeTest.
    In your IRPT page, add the following code where you want the "stuff" to appear.
      <SERVLET NAME="Illuminator">
           <param name="Stylesheet" value="xacute://CoolStuff/IncludeTest" />
         <param name="OutputParameter" value="HTMLOutput" />
         <param name="Output-Content-Type" value="text/html" />
         <param name="Content-Type" value="text/html" />
      </SERVLET>
    Save the IRPT page, load it, and you're in business!
    You can probably already start to envision to possibilities for adding more sophisticated business logic to create "dynamically" embedded content in your IRPT pages...
    Best regards,
    Rick

  • Server side includes with htp package

    I have a few procedures that call the htp package and generate dynamic web pages, however the server side includes are being treated as comments; they are not interpreted correctly and hence are not reading the associated file.
    Has anyone encountered this before and found a solution?

    I have a few procedures that call the htp package and generate dynamic web pages, however the server side includes are being treated as comments; they are not interpreted correctly and hence are not reading the associated file.
    Has anyone encountered this before and found a solution?

  • Contribute changing relative path for server-side include

    I am using Contribute CS3, version 4.1, and my pages crash
    every time a send a draft for review, because Contribute is
    rewriting a relative URL in a server-side include.
    The server-side include (before I send for review) reads:
    <!--#include file="../foo/bar.fileextention"-->
    After I edit other portions of the page and send the draft
    for review, it reads:
    <!--#include file="http:
    //www.servername.com/foo/bar.fileextension"-->
    Which results in the draft being unreadable.
    Is there any way to tell Contribute not to monkey with this
    URL? I have hunted, read the forums, checked the knowledge base,
    and coming up empy.
    Thanks in advance for any help you can provide!! I really
    appreciate it!
    -Nicholas

    Answering my own question.
    I researched this complete forum and with taking ideas from
    different posts, I was able to figure this out. I thought I would
    post it for anyone else needing to know the answer in one place:
    Include tags must read:
    <!--#include virtual="includes/fileName.html"-->
    (Include file is NOT a real HTML doc -- no tags in file
    except for CSS, as it would be used if not using Contribute.)
    No reference to .dwt needed nor Template created.
    No Edit instance tags needed anywhere.
    Contribute user navigates to page:
    [Upper right corner] Click Choose...
    [In my structure] User opens includes folder (double clicks)
    User selects THE file (clicks OK)
    User clicks on Edit Page button
    (Text is now editable.)
    User edits text.
    User clicks on Publish button.
    Worked for me several times trying.
    - Janet

  • Problem in Server side includes using Tomcat

    Problem in Server side includes using Tomcat:
    I am trying out small programs in servlet.
    I get one example program for server side includes from net.
    The code is:
    <HTML>
    <HEAD><TITLE>Times!</TITLE></HEAD>
    <BODY>
    <P>
    The current time in London is!!! :
    <SERVLET CODE="CurrentTime" codebase="../servlet">
    <PARAM NAME="zone" VALUE="GMT">
    </SERVLET>
    </P>
    </BODY>
    </HTML>
    I placed this test.shtml file in tomcat-home/webapps/ROOT folder and i kept the servlet in WEB-INF/classes folder.
    I renamed the servlets-ssi.jar and i removed the comments for SSI in web.xml file.
    When i run the servlet separately, i am getting the correct result. But if i run shtml file with the URL : http://localhost:8080/Test.shtml,
    i am getting the result as:
    The current time in London is!!! :
    It is not invoking servlet program.
    CAN ANYONE HELP ON THIS!
    Thanks.

    Thanks...as u said I tried putting dir & found that
    my file was saved as Ch1Servlet.java.txt instead for
    Ch1Servlet.java......So that was a problem.Now I'm
    able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
    But on compiling I'm getting the following error
    package java.servlet.* does not exist
    package java.servlet.http.* does not exist
    package java.io.* does not exist
    Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation.

  • Server Side Includes not displaying in DW CS3 design view

    I have this code in my page (see below):
    When I open the file in Dreamweaver MX 2004 in design view,
    the page displays correctly. That is, I see the correct styles from
    the style sheet contained in Head_Standard.html and the logo/menu
    in Logo_TopMenu.html
    When I open the page in DW CS3, I do not see the effects of
    the style sheet and I do not see the logo/menu.
    However, when I change the code for the first include from:
    virtual="/ServerSide
    to
    virtual="
    ../../ServerSide
    then the page renders correctly in Dreamweaver CS3.
    My first reaction was: what?! And my question is: how do I
    use a root reference inside the head and get it to display properly
    in DW CS 3?

    "Go to Edit > Preferences > Invisible Elements >
    Server-Side Includes (Check this box) to show contents of included
    file"
    I already do this.
    For me:
    /ServerSide... does NOT work
    ../../ServerSide... works
    So, a relative reference works and a reference to the root
    does not. I have over 20 websites with root references and I need
    this to work in DW9.

Maybe you are looking for