PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Strange SSI behaviour
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Strange SSI behaviour

Réponse
 
LinkBack Outils de la discussion
Vieux 23/04/2006, 17h45   #1
Amer Neely
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Strange SSI behaviour

Not sure if this is the right group, so if anyone has a better
suggestion please let me know.

I run Apache 2.x under Win2K for development, but host on a *nix box.

Currently I have a set of pages that uses SSI include virtual commands
to embed common content into all the pages. I have a navigation panel
that I want to behave a certain way. When that particular page is being
viewed, I want to change the text link to a different style, as a visual
clue what page is being viewed.

This works perfectly on my system at home, but when uploaded to my host,
I get an error for the external file that is being called in. I have no
idea why it would work at home and not on my host. As far as I can see
I'm using XSSI commands but the host server should be able to handle
them, it is 1.3.34. All other included files work fine.

Here is an example of what the external file does:

<!--#if expr = "'$DOCUMENT_NAME' = 'contact.shtml'"-->
<div style="line-height:2">Contact Us</div>
<!--#else-->
<div style="line-height:2"><a href="contact.shtml">Contact
Us</a></div>
<!--#endif -->

What happens is, when each page is loaded, it spits out an error "[an
error occurred while processing this directive]". Visit
http://www.softouch.on.ca/ssi/index.shtml to see what I mean.

If anyone has a clue why this might be happening I would appreciate some
ideas.
--
Amer Neely
Home of Spam Catcher
W: www.softouch.on.ca
E: trudge@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"
  Réponse avec citation
Vieux 24/04/2006, 13h30   #2
Kenneth Svee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange SSI behaviour

[ Amer Neely ]

> What happens is, when each page is loaded, it spits out an error "[an
> error occurred while processing this directive]". Visit
> http://www.softouch.on.ca/ssi/index.shtml to see what I mean.
>
> If anyone has a clue why this might be happening I would appreciate
> some ideas.


A more verbose error-message should be written to your Apache-servers
error_log. You could you post the relevant entries here if they don't
you along towards enlightenment.


Rgds,
Kenneth Svee

  Réponse avec citation
Vieux 24/04/2006, 13h30   #3
Kenneth Svee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange SSI behaviour

[ Amer Neely ]

> What happens is, when each page is loaded, it spits out an error "[an
> error occurred while processing this directive]". Visit
> http://www.softouch.on.ca/ssi/index.shtml to see what I mean.
>
> If anyone has a clue why this might be happening I would appreciate
> some ideas.


A more verbose error-message should be written to your Apache-servers
error_log. You could you post the relevant entries here if they don't
you along towards enlightenment.


Rgds,
Kenneth Svee

  Réponse avec citation
Vieux 24/04/2006, 14h39   #4
Amer Neely
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange SSI behaviour

Kenneth Svee wrote:
> [ Amer Neely ]
>
>> What happens is, when each page is loaded, it spits out an error "[an
>> error occurred while processing this directive]". Visit
>> http://www.softouch.on.ca/ssi/index.shtml to see what I mean.
>>
>> If anyone has a clue why this might be happening I would appreciate
>> some ideas.

>
> A more verbose error-message should be written to your Apache-servers
> error_log. You could you post the relevant entries here if they don't
> you along towards enlightenment.
>
>
> Rgds,
> Kenneth Svee
>


Good idea. But here's all I found:
[Mon Apr 24 09:23:16 2006] [error] [client 24.235.191.210] unknown
directive "else-->" in parsed doc
/home/softouch/public_html/ssi/xssi-navigation.shtml

The file in question has a chain of 'if-else-endif' directives. And they
all have '<--#' with no space between the octothorpe and command, and
they're all spelled correctly.

Which got me thinking. I checked my code and there was NO space between
the command and the trailing '-->', just as the error indicates. Once
that was added everything worked fine. So there's one finicky difference
to remember about Windoze and Unix SSI.

Thanks for pointing in the right direction

Now the site below works as it should (at least the navigation panel).

--
Amer Neely
Home of Spam Catcher
W: www.softouch.on.ca
E: trudge@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"
  Réponse avec citation
Vieux 24/04/2006, 14h39   #5
Amer Neely
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange SSI behaviour

Kenneth Svee wrote:
> [ Amer Neely ]
>
>> What happens is, when each page is loaded, it spits out an error "[an
>> error occurred while processing this directive]". Visit
>> http://www.softouch.on.ca/ssi/index.shtml to see what I mean.
>>
>> If anyone has a clue why this might be happening I would appreciate
>> some ideas.

>
> A more verbose error-message should be written to your Apache-servers
> error_log. You could you post the relevant entries here if they don't
> you along towards enlightenment.
>
>
> Rgds,
> Kenneth Svee
>


Good idea. But here's all I found:
[Mon Apr 24 09:23:16 2006] [error] [client 24.235.191.210] unknown
directive "else-->" in parsed doc
/home/softouch/public_html/ssi/xssi-navigation.shtml

The file in question has a chain of 'if-else-endif' directives. And they
all have '<--#' with no space between the octothorpe and command, and
they're all spelled correctly.

Which got me thinking. I checked my code and there was NO space between
the command and the trailing '-->', just as the error indicates. Once
that was added everything worked fine. So there's one finicky difference
to remember about Windoze and Unix SSI.

Thanks for pointing in the right direction

Now the site below works as it should (at least the navigation panel).

--
Amer Neely
Home of Spam Catcher
W: www.softouch.on.ca
E: trudge@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"
  Réponse avec citation
Vieux 24/04/2006, 15h53   #6
André Malo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange SSI behaviour

* Amer Neely <softouch@softouch.on.ca> wrote:

> Which got me thinking. I checked my code and there was NO space between
> the command and the trailing '-->', just as the error indicates. Once
> that was added everything worked fine. So there's one finicky difference
> to remember about Windoze and Unix SSI.


Nope. That's between 1.3 and 2.x. 2.x has a completely different (and more
lenient) parser.

nd
  Réponse avec citation
Vieux 24/04/2006, 15h53   #7
André Malo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange SSI behaviour


  Réponse avec citation
Vieux 24/04/2006, 15h53   #8
André Malo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange SSI behaviour

* Amer Neely <softouch@softouch.on.ca> wrote:

> Which got me thinking. I checked my code and there was NO space between
> the command and the trailing '-->', just as the error indicates. Once
> that was added everything worked fine. So there's one finicky difference
> to remember about Windoze and Unix SSI.


Nope. That's between 1.3 and 2.x. 2.x has a completely different (and more
lenient) parser.

nd
  Réponse avec citation
Vieux 25/04/2006, 01h30   #9
Amer Neely
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange SSI behaviour


  Réponse avec citation
Vieux 25/04/2006, 01h30   #10
Amer Neely
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange SSI behaviour

André Malo wrote:
> * Amer Neely <softouch@softouch.on.ca> wrote:
>
>> Which got me thinking. I checked my code and there was NO space between
>> the command and the trailing '-->', just as the error indicates. Once
>> that was added everything worked fine. So there's one finicky difference
>> to remember about Windoze and Unix SSI.

>
> Nope. That's between 1.3 and 2.x. 2.x has a completely different (and more
> lenient) parser.
>
> nd


Ah, so that's it. Good to know. Thanks for the clarification.

--
Amer Neely
Home of Spam Catcher
W: www.softouch.on.ca
E: trudge@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"
  Réponse avec citation
Vieux 25/04/2006, 01h30   #11
Amer Neely
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange SSI behaviour

André Malo wrote:
> * Amer Neely <softouch@softouch.on.ca> wrote:
>
>> Which got me thinking. I checked my code and there was NO space between
>> the command and the trailing '-->', just as the error indicates. Once
>> that was added everything worked fine. So there's one finicky difference
>> to remember about Windoze and Unix SSI.

>
> Nope. That's between 1.3 and 2.x. 2.x has a completely different (and more
> lenient) parser.
>
> nd


Ah, so that's it. Good to know. Thanks for the clarification.

--
Amer Neely
Home of Spam Catcher
W: www.softouch.on.ca
E: trudge@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 21h29.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16159 seconds with 19 queries