"missing directive name in parsed document"

This is a discussion on "missing directive name in parsed document" within the Linux Web Servers forums, part of the Web Server and Related Forums category; After an upgrade from Apache 1.3.* to 2.0.46, we're getting the error "missing directive name ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-27-2005
Alan J. Flavell
 
Posts: n/a
Default "missing directive name in parsed document"


After an upgrade from Apache 1.3.* to 2.0.46, we're getting
the error "missing directive name in parsed document" logged on some
server-side include pages on our site.

Google's only hit for this string is into some source code, rather
than any kind of informative suggestions.

I don't yet see anything directly relevant at
http://httpd.apache.org/docs-2.0/upgrading.html
either.

Any clues, please, to help us home-in on the likely cause of this?
Does it for example mean that some directive which was supported in
1.3 has gone away in 2.0 ? (If so, is there a list of them?)

thanks
  #2 (permalink)  
Old 06-27-2005
André Malo
 
Posts: n/a
Default Re: "missing directive name in parsed document"

* Alan J. Flavell wrote:

>
> After an upgrade from Apache 1.3.* to 2.0.46, we're getting
> the error "missing directive name in parsed document" logged on some
> server-side include pages on our site.
>
> Google's only hit for this string is into some source code, rather
> than any kind of informative suggestions.
>
> I don't yet see anything directly relevant at
> http://httpd.apache.org/docs-2.0/upgrading.html
> either.
>
> Any clues, please, to help us home-in on the likely cause of this?
> Does it for example mean that some directive which was supported in
> 1.3 has gone away in 2.0 ? (If so, is there a list of them?)


Most likely a bug. mod_include's filter implementation had some nasty ones
in the past. An upgrade to a more recent version should help.

nd
--
Winnetous Erbe: <http://pub.perlig.de/books.html#apache2>
  #3 (permalink)  
Old 06-27-2005
Alan J. Flavell
 
Posts: n/a
Default Re: "missing directive name in parsed document"

On Mon, 27 Jun 2005, André Malo wrote:

> > After an upgrade from Apache 1.3.* to 2.0.46, we're getting
> > the error "missing directive name in parsed document" logged on some
> > server-side include pages on our site.

[...]

> Most likely a bug. mod_include's filter implementation had some nasty ones
> in the past. An upgrade to a more recent version should help.


OK, I take your point, but this isn't something I can change
unilaterally, it needs discussion with a number of manglement types,
our policy (not mine) is generally to take the version that comes with
our linux distro, and any other choice needs tedious discussion with
folks who are more interested in ticking boxes than actually
responding to technical issues... (sure, if it was just me, I'd
always install the latest Apache source, built per the Apache
guidelines).

However, I've taken another look at the offending include files, and
by chance I've now spotted the problem, so I'll put it on record here
in case it helps someone else.

There was one place where the following error had crept in:

<!--# echo ...

Note the superfluous space between "#" and "echo".

It appears that Apache 1.3 was silently fixing this up, whereas
Apache 2 was not.

Evidently this error had been copy/pasted to a number of other insert
files here too.

The correction was simple, once located, and no further errors of this
type are being logged now.

thanks
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0