Skip to main content
Participating Frequently
January 17, 2019
Answered

Menu stopped working on all pages

  • January 17, 2019
  • 2 replies
  • 3117 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

Legend
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
Legend
January 17, 2019

Energize  wrote

My point is both files obviously are NOT identical otherwise they would both work if they are in the same location. We dont know what the source code is in the index.html file, so it would be helpful to see that and compare it to what source  code the OP has already posted, presumably the shore_friendly.html file - although I can never tell in this forum.

Yes we already know all the above, so I still don't understand what yuour point is of gong over ground that we already know?  I'll bug out and leave this one to you close out, as you obviously think you know much better than me and it'll just get confusing if you butt in with nonsense

What is a matter with you?

Im just trying to help as you are trying to and neither of us to date is able to because we cant get the right information from the OP. Don't take your childish frustration out on me please. You seem to jump out of your cot at every concievable opportunity that affords you.

Where did I say I know much better than you - thats just a figment of your imagination or one that shows lack of confidence in ones ability so you get aggresive when there is no need to.

I didnt know there was a policy in this forum which says only one person per thread was allowed to provide help.


What is a matter with you?

Im just trying to help as you are trying to and neither of us to date is able to because we cant get the right information from the OP. Don't take your childish frustration out on me please. You seem to jump out of your cot at every concievable opportunity that affords you.

Where did I say I know much better than you - thats just a figment of your imagination or one that shows lack of confidence in ones ability so you get aggresive when there is no need to.

I didnt know there was a policy in this forum which says only one person per thread was allowed to provide help

... and I'm childish .... Lets just not speak, I'm not wasting my energy, you are always right aren't you after all .... You wont get a repsonse from me again, this forum is cluttered with too many arguments, you are in a lot more of them than me

Paul-M - Community Expert
Legend
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?