Skip to main content
Participating Frequently
January 17, 2019
Answered

Menu stopped working on all pages

  • January 17, 2019
  • 2 replies
  • 3107 views

I'm new to Dreamweaver and HTML, so excuse my ignorance when it comes to the problem I'm having. I was tasked with updating a webpage for work. Everything was going fine until I had to create a new page. I duplicated an existing page (so as not to recreate the wheel) and added the new content. At that time, however, I realized that the menu on the page was no longer visible. I looked at the other pages, and the menu bar was gone from those as well. I had not touched the menu html file, nor the css file, nor the spry file.

I uploaded one of the pages to the server, thinking maybe it was a fluke and the menu bar would magically reappear (wishful thinking), but it's still broken. I have no idea what I did to break it. Any help??

The page I am referring to is here: Puget Sound Nearshore Ecosystem Restoration Project

Where the menu should be is an error message, "an error occurred while processing this directive".

Thank you in advance!

This topic has been closed for replies.
Correct answer osgood_

Hey folks, you are right, the code for #include virtual was slightly different between the broken page and the working page.

Working Page

<tr>

  

    <td rowspan="2" valign="top" bgcolor="#7CBEDE"><img src="graphics/esrp_masthead_left.jpg" width="200" height="200"></td>

    <td valign="top" bgcolor="#7CBEDE"><img src="graphics/esrp_masthead_right.jpg" width="800" height="161"></td>

  </tr>

  <tr>

    <td valign="top" bgcolor="#7CBEDE"><!--#include virtual="/esrp/esrp_menu_bar.html" --></td>

  </tr>

Broken Page

<tr>

  

    <td rowspan="2" valign="top" bgcolor="#7CBEDE"><img src="graphics/esrp_masthead_left.jpg" width="200" height="200"></td>

    <td valign="top" bgcolor="#7CBEDE"><img src="graphics/esrp_masthead_right.jpg" width="800" height="161"></td>

  </tr>

  <tr>

    <td valign="top" bgcolor="#7CBEDE"><!--#include virtual="esrp_menu_bar.html" --></td>

  </tr>

I tried changing the code to be the same as the working page, and it didn't work. I'm ready to throw this webpage away.


lindseyd25963997  wrote

Hey folks, you are right, the code for #include virtual was slightly different between the broken page and the working page.

Working Page

<tr>

  

    <td rowspan="2" valign="top" bgcolor="#7CBEDE"><img src="graphics/esrp_masthead_left.jpg" width="200" height="200"></td>

    <td valign="top" bgcolor="#7CBEDE"><img src="graphics/esrp_masthead_right.jpg" width="800" height="161"></td>

  </tr>

  <tr>

    <td valign="top" bgcolor="#7CBEDE"><!--#include virtual="/esrp/esrp_menu_bar.html" --></td>

  </tr>

Broken Page

<tr>

  

    <td rowspan="2" valign="top" bgcolor="#7CBEDE"><img src="graphics/esrp_masthead_left.jpg" width="200" height="200"></td>

    <td valign="top" bgcolor="#7CBEDE"><img src="graphics/esrp_masthead_right.jpg" width="800" height="161"></td>

  </tr>

  <tr>

    <td valign="top" bgcolor="#7CBEDE"><!--#include virtual="esrp_menu_bar.html" --></td>

  </tr>

I tried changing the code to be the same as the working page, and it didn't work. I'm ready to throw this webpage away.

So you have now changed the broken page to:

<td valign="top" bgcolor="#7CBEDE"><!--#include virtual="/esrp/esrp_menu_bar.html" --></td>

Have you uploaded it to the remote and tested?

If that doesnt work try adding the full link to the include file:

<td valign="top" bgcolor="#7CBEDE"><!--#include virtual="http://www.Puget Sound Nearshore Ecosystem Restoration Project /esrp/esrp_menu_bar.html" --></td>

Well you get the idea use the direct link: (remove the spaces in the file name)

http:// www. pugetsoundnearshore.org/esrp/esrp_menu_bar.html

Also check for browser caching. You may have put it right but you might still be seeing the previous version of the page in your browser. Empty the browsers cache or view in another browser if possible, just to make sure.

2 replies

Community Expert
January 17, 2019

So have you got any live pages where the SSI include IS working correctly and the menu bar still shows without errors?

Paul-M - Community Expert
Participating Frequently
January 17, 2019
Community Expert
January 17, 2019

Energize  wrote

<!--#include virtual="esrp_menu_bar.html" -->

This is the bit that wrong. include virtual is for including files in other folders

Where is esrp_menu_bar.html located, same directory as other files?

Compare this line with a working page and see what the difference is

the index.html file, which presumably includes <!--#include virtual="esrp_menu_bar.html" --> is in the esrp folder as is the shore_friendly.html - so both should be working if they are in the same location and the include link is identical in both of them


the index.html file, which presumably includes <!--#include virtual="esrp_menu_bar.html" --> is in the esrp folder as is the shore_friendly.html - so both should be working if they are in the same locat

Yes I know they are in the same directory but the new files being uploaded are not working are they, so something is wrong. Whats your point exactly?

I

Paul-M - Community Expert
Community Expert
January 17, 2019

This looks like an SSI issue. I'm assuming you have been including the nav bar in your pages with something like this?:

<!--#include file="menu.html" -->

or something like this if the files is another directory

<!--#include virtual="/directory/menu.html" -->

Paul-M - Community Expert
Participating Frequently
January 17, 2019

You are exactly right! How do I fix an SSI issue? Any documents you could point me to?