Server Side Includes

User 389612 Photo


Registered User
41 posts

I'm encountering a weird problem. It looks like it happens with HTML Editor 2008 (as well as Dreamweaver! I know, I know; that's bad karma).

Anyways, I'm using 2 includes. 1 for my menubars and 1 for my footer.

What is happening, and it makes the SSI develop and not work is the quotes are being removed and the space before the end " -->" is also being removed.
This makes it so that the includes don't work.

I edit them to be like:
<!--#include file="menubar_contact.html" -->
<!--#include file="footer.html" -->

and eventually, they will revert to:
<!--#include file=menubar_contact.html-->
<!--#include file=footer.html-->
which will then generate the "[an error occurred while processing this directive]" message on the page.

Any ideas?
I had a contractor put this all together for me but now I'm assuming day-to-day control and revisions. They used Dreamweaver and the problem was there too.

Thanks!
User 463058 Photo


Ambassador
1,073 posts
Online Now

WMammel wrote:
What is happening, and it makes the SSI develop and not work is the quotes are being removed and the space before the end " -->" is also being removed.

Find out at what point this change occurs, and then you'll have a pretty good idea what's causing it. As it is we can only guess. You aren't editing the pages in HTML Editor's visual mode are you?
User 389612 Photo


Registered User
41 posts

Cary wrote:
You aren't editing the pages in HTML Editor's visual mode are you?

Ah hah!
It is happening when I enter the Visual Editor view.
When it prompts to save the file and "optizize the code for drag and drop", it modifies the include statements.

Before save: <!--#include file="menubar_news.html" -->
...works.

After save: <!--#include file=menubar_news.html-->
...doesn't work.

I use the Visual Editor because I'm not an html coder by anyone's stretch of any imagination. Even my contractor used the DW visual mode too!
Luckily, I only have 2 includes so I just have to remember to edit them manually before I do the final save and upload.

Maybe CoffeeCup can do a quick update to fix this problem (nudge, nudge)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.