12-14-2010, 11:00 AM | #1 |
Junior Member
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. |
12-14-2010, 11:53 AM | #2 | ||
Enquiring Mind
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:
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:
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. |
||
Advert | |
|
12-14-2010, 01:03 PM | #3 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2010
Device: none
|
Quote:
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? |
|
12-14-2010, 02:30 PM | #4 | |
Enquiring Mind
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:
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). |
|
12-15-2010, 04:38 PM | #5 |
Grand Sorcerer
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.
|
Advert | |
|
12-18-2010, 08:00 AM | #6 |
Junior Member
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. |
12-18-2010, 08:38 AM | #7 |
Enquiring Mind
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 08:41 AM. |
12-18-2010, 08:48 AM | #8 |
Junior Member
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. |
12-18-2010, 09:13 AM | #9 |
eBook Enthusiast
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.
|
12-18-2010, 10:23 AM | #10 |
frumious Bandersnatch
Posts: 7,539
Karma: 19001081
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
Tags |
meta-inf/container, validation |
Thread Tools | Search this Thread |
|
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 11:45 PM |
Error during validation | macdafydd | ePub | 19 | 12-01-2010 07:07 PM |
Validation tools | LGN | Sigil | 9 | 11-20-2010 02:40 AM |
Validation error | rrosenwald | Calibre | 10 | 10-01-2010 12:12 PM |
Validation Errors | luthar28 | ePub | 13 | 08-10-2010 01:24 PM |