This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6151 - Line 1, Column 0: end of document in prolog.
Summary: Line 1, Column 0: end of document in prolog.
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
: 6520 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-10 08:30 UTC by Eric Andrieux
Modified: 2013-06-17 15:34 UTC (History)
8 users (show)

See Also:


Attachments

Description Eric Andrieux 2008-10-10 08:30:50 UTC
Seems that the validator doesn't support local files anymore

I sent this file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
</body>
</html>

and got
Error found while checking this document as HTML 4.01 Transitional!
Result: 	1 Error, 2 warning(s)
No Character Encoding Found! Falling back to UTF-8.
Unable to Determine Parse Mode!
Validation Output:  1 Error
Line 1, Column 0: end of document in prolog.
Comment 1 Matthew Flaschen 2009-02-06 06:02:14 UTC
This bug is valid.  When uploading (maybe other cases too), the validator intermittently claims "end of document in prolog" when the document is not blank.  It will even occur with a completely valid document; after a few retries, the document will validate perfectly.

I don't know what the cause is but it's difficult to reproduce because it doesn't occur every time.
Comment 2 Olivier Thereaux 2009-02-06 15:04:50 UTC
The problem we have is that a bug in the validator (currently fixed in dev but yet to be pushed to validator.w3.org) fills up the hard drive and breaks file upload capability. 

I cleaned up the drive... again. Looking forward to the next release.
Comment 3 Matthew Flaschen 2009-02-06 15:19:17 UTC
I figured it was something like that.  I just don't know why this is marked WORKSFORME.
Comment 4 Olivier Thereaux 2009-02-06 15:21:05 UTC
*** Bug 6520 has been marked as a duplicate of this bug. ***
Comment 5 Olivier Thereaux 2009-02-06 15:23:04 UTC
(In reply to comment #3)
> I figured it was something like that.  I just don't know why this is marked
> WORKSFORME.

Not sure either. The OP the status to WORKSFORME (as in, can't reproduce) back in October.

I'm changing to Resolved FIXED since the fix is in CVS and the release is upcoming (our usual practice).
Comment 6 Olivier Thereaux 2009-02-06 17:03:19 UTC
For reference, the patch applied is at:
http://lists.w3.org/Archives/Public/www-validator-cvs/2009Feb/0025.html
Comment 7 Matthew Flaschen 2009-02-08 01:11:24 UTC
Glad to know it's fixed, but shouldn't you be using logrotate (http://linuxcommand.org/man_pages/logrotate8.html) or something to ensure this doesn't happen again with a different kind of error.
Comment 8 Olivier Thereaux 2009-02-08 02:37:20 UTC
(In reply to comment #7)
> Glad to know it's fixed, but shouldn't you be using logrotate
> (http://linuxcommand.org/man_pages/logrotate8.html) or something to ensure this
> doesn't happen again with a different kind of error.

We do :) but keep in mind that we're talking about the validator here, with millions of hits daily, so any problem will fill up a log partition very, very fast (in a matter of days, actually) regardless of logrotate settings.
Comment 9 David 2010-04-29 22:33:21 UTC
I'm having this problem as well, i've tried some random domains (with content of course) and i keep getting : 
Line 1, Column 1: end of document in prolog
I tried to revalidate a couple of times and it did worked but only once.
Comment 10 Michael Spellacy 2010-05-25 14:32:59 UTC
The validator does not appear to be working with local files (again). Just wanted to make you aware of it and hope that someone is on the case!
Comment 11 kerry white 2010-12-20 23:41:22 UTC
This is happening at the moment intermittently with files being uploaded. I am on an OU course which requires us to submit files which validate, and lots of people on the course are reporting this error on the forums. Submission of xhtml doctypes return the error message as below:

Error found while checking this document as HTML 4.01 Transitional!
Result:     1 Error, 2 warning(s)
No Character Encoding Found! Falling back to UTF-8.
Unable to Determine Parse Mode!
Validation Output:  1 Error
Line 1, Column 0: end of document in prolog.elow:
Comment 12 Jean-Guilhem Rouel 2010-12-21 10:12:45 UTC
One server had his disks full. After cleaning it seems fine again.