Results 1 to 2 of 2

Thread: Problem with Server Side Includes

  1. #1
    Join Date
    Jul 2012
    Thanked 0 Times in 0 Posts

    Question Problem with Server Side Includes

    Several months ago, I decided to rework my website to incorporate Server Side Includes. Because all my pages are .html, and I did not want to rename them all, I contacted my website host company and ask them to fix it on the server so that includes would work with my pages. They did that. I created some test pages with includes and uploaded and tested them. Everything worked fine. I emailed some friends, who tested them out. Everything worked fine. So, I went ahead last Friday and updated the whole site (275 pages). After I uploaded all 275 pages, I tested around 75 of them. Everything worked fine. I asked some friends to test some of the pages. Everything worked fine, with the three includes (the top nav bar, the side nav bar, and the footer) all showing up for everyone.

    This morning, I pulled up one of the pages and discovered (to my horror) that the Server Side Includes were missing on all the pages, with the exception of the home page, which does not use includes! I have no idea what happened. I did not make any changes to the coding. I called my hosting service and asked them to check. The guy told me that the SSI thing on the server had been turned off. (I had not touched it. I don't even know how to turn it on and off. When I set up server side includes, someone at the hosting site fixed it for me.) He turned it back on again, but the includes are still not showing up. He investigated and then came back and told me that the problem was in my coding and referred the problem to a "Tier 2" technician.

    Meanwhile, I would like some feedback on what, if anything, is wrong with the code (which worked just fine until this morning). Here is the code for one of the page (

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
    <html><!-- InstanceBegin template="/Templates/RegularPageFatFooter.dwt" codeOutsideHTMLIsLocked="false" -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Art at the VIC:  Art Exhibit | 5 September - 3 October 2013</title>
    <meta name="description" content="Artist Diane Leifheit and photographer Jon Chodat will exhibit their works at the Paul Smiths VIC from 5 September through 3 October 2013." >
    <meta name="keywords" content="Adirondack, Visitor Interpretive Center, Paul Smith's College VIC, Paul Smith's VIC, Paul Smiths VIC, Paul Smiths Visitor Center, Paul Smiths Visitor Interpretive Center, PSC VIC, birding, trails, nature walks, bird walks, wildflowers, walking paths, hiking trails, birds, butterflies, trees, wetlands, bog, marsh, swamp, fen, Heron Marsh, Barnum Brook, Barnum Pond, Barnum Bog, orchid, TR bird walks, Teddy Roosevelt bird walks, beginner birder, wildflower walks, Great Blue Heron, Gray Jay, Paul Smiths, wilderness, backcountry, walk, hike, mountain scenery, nature, nature photography, interpretive trails, slide show, photography, photographs, pictures, slides, images, woodland, outdoor photos, Barnum Brook, Barnum Brook Trail, Barnum Pond, Heron Marsh Trail, Shingle Mill Falls, Forest Ecology, Boreal Life, Boreal Life Trail, Silviculture Trail, St. Regis Mountain, Jenkins Mountain, Black Pond, Long Pond, Forest Ecosystem, boreal forest, directions, hours of operation, events, upcoming events, past events, Adirondack Birding Center, Art at the VIC, Great Adirondack Birding Celebration">
    <!-- InstanceEndEditable -->
    <script type="text/javascript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    <link href="StylesRegularFatFooter6.css" rel="stylesheet" type="text/css">
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    <body onLoad="MM_preloadImages('Images/TrailSystemDown.gif')">
    <div class="container">
      <div class="header"><!-- InstanceBeginEditable name="Banner" --><img src="Images/Banner153-Tiny-Maple-Leaves-Boreal-Life-Trail-1-September-2012.jpg" width="960" height="102" alt="On the Boreal Life Trail (1 September 2012)" title="On the Boreal Life Trail (1 September 2012)" align="middle"><!-- InstanceEndEditable --> 
        <!-- end .header --> 
      <!--#include file="TopNavBar.html" -->
      <div class="nav" id="BelowNavWhiteSpace"></div>
      <!--#include file="Sidebar1.html" -->
      <div class="content"><!-- InstanceBeginEditable name="Content" -->
        <h1><span class="center">New Moon Art Exhibit: A Sense of Place<br>
          </span>5 September - 3 October 2013 </h1>
        <p>Artist <a href="">Diane Leifheit</a> and photographer Jon Chodat will exhibit their works at the Paul Smiths VIC from 5 September through 3 October 2013.
          <li><a href="">Diane Leifheit</a> creates fine art pastel paintings of the Adirondack rural wilderness. She has been a member of   the Adirondack Artists Guild for 9 years. Leifheit shows her work at the   Guild on Main Street in Saranac Lake on a year-round basis. "I've   focused my work on where I live in the northern Adirondacks. It is no   accident that several pieces represent the VIC.* It is my back yard.&rdquo;   said Leifheit.</li>
          <li>Photographer Jon Chodat's photographs display an acute level   of observation; from a hummingbird hovering within the flashy red of a   monarda flower to the stillness of the Great Blue Heron waiting for   dinner in the reflected gold of an autumn river. Chodat says of his work, "My work is what I   have a passion for." Chodat's work has been shown regionally from Lake   Placid Center for the Arts to studios in Malone.* He has accrued several   awards for his careful and intense photos.</li>
        <!-- InstanceEndEditable --></div>
      <!--#include file="Footer.html" -->
      <!-- end .container --> 
    <!-- InstanceEnd --></html>
    Could someone take a look and let me know if there is anything wrong here?

    Please help!!

    Thanks ellen

  2. #2
    Join Date
    Sep 2007
    The Netherlands
    Thanked 237 Times in 230 Posts
    Blog Entries


    Your link [] is an incorrect url. When I replace it with, I get a normal page with a header for Paul Smith's College plus a left menu and a top menu. The links on that page bring me to other pages with the same header and menus. So that looks normal. The whole problem seems to be an incorrect url.
    Last edited by molendijk; 09-09-2013 at 09:04 PM. Reason: Correction in text

Similar Threads

  1. Pros and Cons of Server Side Includes
    By ellenjones6 in forum HTML
    Replies: 3
    Last Post: 08-19-2013, 07:38 PM
  2. All Level Menus sidebar Server Side Includes
    By Rob22 in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 02-13-2009, 03:32 AM
  3. Resolved Problem with Server Side Include Height
    By Geologist1724 in forum HTML
    Replies: 2
    Last Post: 01-22-2009, 11:57 AM
  4. Server Side Include Problem
    By brayd in forum Other
    Replies: 3
    Last Post: 09-09-2008, 03:53 AM
  5. Replies: 0
    Last Post: 11-01-2005, 03:54 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts