![]() |
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. |
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. |
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? |
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). |
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.
|
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. |
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 |
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. |
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.
|
Quote:
Look for possibly hidden files created by your OS, things like "Thumbs.db" or ".DS_Store". |
| All times are GMT -4. The time now is 07:58 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.