Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-14-2010, 10:00 AM   #1
grapplegirl
Junior Member
grapplegirl began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2010
Device: none
Can anyone tell me how to fix these validation errors?

# ERROR: 9780781405058-2.epub: length of first filename in archive must be 8, but was 19
# ERROR: 9780781405058-2.epub: Required META-INF/container.xml resource is missing

I am not even sure where to go to check these. Any help would be appreciated.
grapplegirl is offline   Reply With Quote
Old 12-14-2010, 10:53 AM   #2
DMSmillie
Enquiring Mind
DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'
 
DMSmillie's Avatar
 
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
An EPUB file is essentially just a ZIP file, with the file extension .epub rather than .zip. One of the requirements of the EPUB standard is that the first file inside the zip archive is the file "mimetype" (which should also be uncompressed and unencrypted). The first error message you're getting:

Quote:
# ERROR: 9780781405058-2.epub: length of first filename in archive must be 8, but was 19
- is indicating that the "mimetype" file isn't the first file inside the EPUB. The "mimetype" file is simply a text file, without any file extension, which contains the text:

application/epub+zip

Another requirement of the EPUB standard is that there should be a META-INF directory inside the EPUB file, containing the file "container.xml". That file contains some XML code that points to the location, inside the EPUB file, of the OPF file. The second error you're getting:

Quote:
# ERROR: 9780781405058-2.epub: Required META-INF/container.xml resource is missing
- indicates either that there isn't a META-INF directory in the EPUB file, or that it doesn't contain the "container.xml" file.

Basically, these errors indicate that the files inside the EPUB file aren't properly structured, and perhaps not all of the required files are present.

If this is an EPUB you created yourself, grapplegirl, if you let us know what method you're using to create the EPUB, I'm sure someone will be able to advise on how to fix these problems.
DMSmillie is offline   Reply With Quote
Advert
Old 12-14-2010, 12:03 PM   #3
grapplegirl
Junior Member
grapplegirl began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2010
Device: none
Quote:
Originally Posted by DMSmillie View Post
An EPUB file is essentially just a ZIP file, with the file extension .epub rather than .zip. One of the requirements of the EPUB standard is that the first file inside the zip archive is the file "mimetype" (which should also be uncompressed and unencrypted). The first error message you're getting:


- is indicating that the "mimetype" file isn't the first file inside the EPUB. The "mimetype" file is simply a text file, without any file extension, which contains the text:

application/epub+zip

Another requirement of the EPUB standard is that there should be a META-INF directory inside the EPUB file, containing the file "container.xml". That file contains some XML code that points to the location, inside the EPUB file, of the OPF file. The second error you're getting:



- indicates either that there isn't a META-INF directory in the EPUB file, or that it doesn't contain the "container.xml" file.

Basically, these errors indicate that the files inside the EPUB file aren't properly structured, and perhaps not all of the required files are present.

If this is an EPUB you created yourself, grapplegirl, if you let us know what method you're using to create the EPUB, I'm sure someone will be able to advise on how to fix these problems.

thanks, Donna,
I am exporting from InDesign. I have never gotten this validation error in the past and would like to fix it prior to exporting.

I do see a container.xml file in the META-IMF folder. so i really don't get that one.

can i change the name of the archive file in the zip folder? If so where do i find it?
grapplegirl is offline   Reply With Quote
Old 12-14-2010, 01:30 PM   #4
DMSmillie
Enquiring Mind
DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'
 
DMSmillie's Avatar
 
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
I'm afraid I've never used InDesign, so someone else who is familiar with using it to export to EPUB will hopefully be able to advise in that area.

Quote:
can i change the name of the archive file in the zip folder? If so where do i find it?
Sorry - when I referred to "zip archive", I just meant zip file ("archive" is another name for files like zip files which are containers for other files).

Best I can suggest for now is to try re-exporting your book to EPUB - it's always possible something went wrong the first time.

You can also look inside the EPUB file you tried to validate, to see what's there - make a copy of the file, then change the file extension of the copy from .epub to .zip. You can then open it up in Winzip (or whatever zip utility you prefer to use), and see what's inside. I'd normally expect to see the mimetype file first, then the META-INF directory (containing the container.xml file, which should point to the location the OPF file), then a directory called OEBPS, which should contain the OPF file plus all of the book content files (XHTML, HTML, CSS, images, etc).
DMSmillie is offline   Reply With Quote
Old 12-15-2010, 03:38 PM   #5
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
You could download a copy of Sigil and open the epub in Sigil and resave it. Sigil will automatically fix lots of these kinds of errors.
DaleDe is offline   Reply With Quote
Advert
Old 12-18-2010, 07:00 AM   #6
Nelsea
Junior Member
Nelsea began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2010
Device: Sony PS-300
Hi All,

I am trying to validate my epub document as well and receiving below errors? Could someone please help?
1. ERROR: Lola's Guilt 181210 complete.epub/OEBPS/Text/License & Copyright.xhtml(80): attribute "align" not allowed at this point; ignored
2. ERROR: Lola's Guilt 181210 complete.epub/OEBPS/Text/License & Copyright.xhtml(80): attribute "border" not allowed at this point; ignored
3. Check finished with warnings or errors!

Much appreciated.
Nelsea is offline   Reply With Quote
Old 12-18-2010, 07:38 AM   #7
DMSmillie
Enquiring Mind
DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'
 
DMSmillie's Avatar
 
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
There are a couple of invalid attributes ("align" and "border") being used in line 80 of the "License & Copyright.xhtml" file inside your epub, Nelsea. You could try my and DaleDe's suggestions, above, and you might also find it useful to run the epub through FlightCrew, an Epub validator created by the guy who created Sigil - it gives more easily understandable error messages with more information.

Edit to add: If you're not sure what change(s) to make to that HTML file to fix the error, copy and paste the problem line from that file here, and someone will help you identify what needs to be changed. End of edit

Last edited by DMSmillie; 12-18-2010 at 07:41 AM.
DMSmillie is offline   Reply With Quote
Old 12-18-2010, 07:48 AM   #8
Nelsea
Junior Member
Nelsea began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2010
Device: Sony PS-300
Thanks Donna for your quick response.

Now i have another problem. I tried uploading the file on Lulu.com and they say:
Did not pass epubcheck-1.0.5 validation.
* Contains unmanifested files.
No idea what this means or how to fix this. Any suggestions would be greatly appreciated. Thanks again.
Nelsea is offline   Reply With Quote
Old 12-18-2010, 08:13 AM   #9
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
It means that there's one or more files in the ZIP archive that doesn't appear in the manifest in the OPF file. The only file that's allowed NOT to appear in the OPF is the OPF file itself.
HarryT is offline   Reply With Quote
Old 12-18-2010, 09:23 AM   #10
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by HarryT View Post
The only file that's allowed NOT to appear in the OPF is the OPF file itself.
and mimetype, and container.xml, and encryption.xml...

Look for possibly hidden files created by your OS, things like "Thumbs.db" or ".DS_Store".
Jellby is online now   Reply With Quote
Reply

Tags
meta-inf/container, validation

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's this validation error and how to fix it. Adjust ePub 9 06-28-2011 10:45 PM
Error during validation macdafydd ePub 19 12-01-2010 06:07 PM
Validation tools LGN Sigil 9 11-20-2010 01:40 AM
Validation error rrosenwald Calibre 10 10-01-2010 11:12 AM
Validation Errors luthar28 ePub 13 08-10-2010 12:24 PM


All times are GMT -4. The time now is 10:29 AM.


MobileRead.com is a privately owned, operated and funded community.