|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
"Error while parsing file 'Multiple occurrences of the 'cover-image' property "
I wonder if some kind stranger can help me figure this out.
I did a epub validation check here:http://validator.idpf.org/ And got these errors: Code:
Type File Line Position Message ERROR OEBPS/content.opf 13 13 Error while parsing file 'Multiple occurrences of the 'cover-image' property (number of 'cover-image' items: 2).'. ERROR OEBPS/content.opf 14 99 Package resource 'OEBPS/Images/cover.png' is declared in several manifest item. ERROR OEBPS/Text/guide.xhtml 18 64 Referenced resource could not be found in the EPUB. Code:
<item id="cover_png" href="Images/cover.png" media-type="image/png" properties="cover-image"/> <item id="cover.png" href="Images/cover.png" media-type="image/png" properties="cover-image"/> I attached the whole content.opf, but here are some parts that may help solve the problem. This is the start of the content.opf file: Code:
<?xml version="1.0" encoding="utf-8"?> <package version="3.0" unique-identifier="BookID" xmlns="http://www.idpf.org/2007/opf" prefix="rendition: http://www.idpf.org/vocab/rendition/#"> <metadata xmlns:opf="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"> <dc:title id="title1">Aṅguttaranikāya: Numbered Discourses</dc:title> <meta refines="#title1" property="title-type">main</meta> <dc:creator id="create1">Bhikkhu Sujato</dc:creator> <dc:language>en</dc:language> <meta name="Sigil version" content="0.9.9" /> <dc:identifier id="BookID">urn:uuid:73b4776c-6ed1-41ca-8b0e-b766ded5e300</dc:identifier> <meta property="dcterms:modified">2018-10-17T15:05:30Z</meta> <meta name="cover" content="cover.png" /> </metadata> <manifest> <item id="cover_png" href="Images/cover.png" media-type="image/png" properties="cover-image"/> <item id="stylesheet" href="Styles/stylesheet.css" media-type="text/css"/> <item id="toc" href="toc.ncx" media-type="application/x-dtbncx+xml"/> <item id="Section0001.xhtml" href="Text/Section0001.xhtml" media-type="application/xhtml+xml"/> <item id="guide" href="Text/guide.xhtml" media-type="application/xhtml+xml"/> <item id="an1.1-10" href="Text/an1.1-10.xhtml" media-type="application/xhtml+xml"/> <item id="an1.11-20" href="Text/an1.11-20.xhtml" media-type="application/xhtml+xml"/> Code:
<item id="an11.983-991" href="Text/an11.983-991.xhtml" media-type="application/xhtml+xml"/> <item id="an11.992-1151" href="Text/an11.992-1151.xhtml" media-type="application/xhtml+xml"/> <item id="cover.png" href="Images/cover.png" media-type="image/png" properties="cover-image"/> <item id="cover.xhtml" href="Text/cover.xhtml" media-type="application/xhtml+xml" properties="svg"/> <item id="intro.xhtml" href="Text/intro.xhtml" media-type="application/xhtml+xml"/> <item id="SourceSerifPro-Bold.otf" href="Fonts/SourceSerifPro-Bold.otf" media-type="application/vnd.ms-opentype"/> <item id="SourceSerifPro-BoldIt.otf" href="Fonts/SourceSerifPro-BoldIt.otf" media-type="application/vnd.ms-opentype"/> <item id="SourceSerifPro-It.otf" href="Fonts/SourceSerifPro-It.otf" media-type="application/vnd.ms-opentype"/> <item id="SourceSerifPro-Regular.otf" href="Fonts/SourceSerifPro-Regular.otf" media-type="application/vnd.ms-opentype"/> <item id="navid" href="Text/nav.xhtml" media-type="application/xhtml+xml" properties="nav"/> </manifest> <spine toc="toc"> <itemref idref="cover.xhtml"/> <itemref idref="intro.xhtml"/> <itemref idref="Section0001.xhtml"/> Code:
<itemref idref="an11.502-981"/> <itemref idref="an11.982"/> <itemref idref="an11.983-991"/> <itemref idref="an11.992-1151"/> <itemref idref="navid"/> </spine> <guide> <reference type="toc" title="Table of Contents" href="Text/guide.xhtml"/> <reference type="text" title="Text" href="Text/an1.1-10.xhtml"/> <reference type="title-page" title="Title Page" href="Text/intro.xhtml"/> <reference type="cover" title="Cover" href="Text/cover.xhtml"/> </guide> </package> |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Did you use some other program to create this EPUB (InDesign->EPUB, Word->EPUB, [...])?
Or did you try to zip this manually? Or did you use Sigil/Calibre? Something like this shouldn't occur normally... * * * Looks like these are the two issues: 1. The book is expecting you to have a file guide.xhtml, but it isn't in the EPUB. Maybe whatever tool you used to create the EPUB forgot to create this file. Looks like it may have been the name of your HTML Table of Contents (did you accidentally delete it?). 2. It looks like your cover file is cover.png, so you should be able to delete this extra line: Code:
<item id="cover_png" href="Images/cover.png" media-type="image/png" properties="cover-image"/> Last edited by Tex2002ans; 10-17-2018 at 06:34 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Thank you so much for your message.
Quote:
The file I posted was from a later version that I worked on in Sigil. At one point in the process I used the epub2 to epub3 export plugin. I went back to the original file and found this... Code:
<item id="cover_png" properties="cover-image" href="images/cover.png" media-type="image/png"/> <item href="images/cover.png" id="img001" media-type="image/png"/> The validator in Sigil had never had any issue before or after converting it to epub3. In fact the only reason I am hopping down this rabbit hole is that the cover isn't showing up when the book is uploaded to google books/play. But for now I'm just trying to get it to validate so I can rule that out. Thanks again! I still need to investigate point 1 in your very helpful message. |
|
![]() |
![]() |
![]() |
#4 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Open the EPUB in Sigil: 1. Delete the cover.xhtml + cover.png files. This should clean up the content.opf and remove any crappy/broken references to those files. 2. Add the cover.png back into the EPUB, then Tools > Add Cover. This should create a clean cover.xhtml file, and also assign the correct Cover metadata to the proper image. Quote:
The actual true EPUB validator you'll have to use is always epubcheck (it's the one that stores use). |
||
![]() |
![]() |
![]() |
#5 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 39,157
Karma: 153098470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Looking at your content.opf, it looks as if almost every page in the original document is showing in the epub a separate file. Weird and wonderful...
Last edited by DNSB; 10-18-2018 at 12:34 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 39,157
Karma: 153098470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I suspect the F7 (Well-Formed Check Epub) tool is being referred to. FlightCrew has it's uses for epub2 but will not check an epub3.
|
![]() |
![]() |
![]() |
#7 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
Code:
<manifest> <item id="cover_png" href="Images/cover.png" media-type="image/png" properties="cover-image"/> Yay! This is the only thing in the .opf: Code:
<item id="cover.png" href="Images/cover.png" media-type="image/png" properties="cover-image"/> Code:
<meta content="cover.png" name="cover" /> </metadata> Thanks everyone! |
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,870
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
The Well-Formed Check (F7) in Sigil checks that there is no malformed xhtml (all tags properly closed, no improper nesting). Nothing more. So it's not surprising at all that Sigil itself wouldn't catch a well-formed OPF file with an out of spec (EPUB spec) entry. |
|
![]() |
![]() |
![]() |
#9 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
Could it just say "results"? If it has to be pointed out so often, it might be good to have a message in the results reminding people. In any case, thank you for the reminder. ![]() |
|
![]() |
![]() |
![]() |
#10 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
BTW, now when I upload the book to google books the cover displays perfectly.
Thanks again for everyone's help. |
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,870
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Any "checking" routine (which also includes "real" validation plugins) will share that same Results widget, so any title will need to be a one-size-fits-all kind of thing. We will, however, take it under advisement about adding a message to the end of the Well-Formed Check results.
|
![]() |
![]() |
![]() |
#12 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"used anchor page_i has multiple positions" error | mabelsound | Conversion | 7 | 10-12-2018 07:21 AM |
Bug: multiple "cover-image" tags | David Kudler | Sigil | 9 | 08-18-2017 01:54 PM |
Can't add cover in Calibre -- get "svg-error" (the property 'svg' should be declared) | Just some guy | Editor | 7 | 04-11-2017 09:54 PM |
"Error while parsing file 'element "img" not allowed here" | shotsfromthebar | Editor | 3 | 03-31-2017 03:53 AM |
this file converts with no error but the resulting file is "invalid" | mlevin77 | Conversion | 3 | 01-11-2014 08:34 AM |