Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-31-2023, 05:35 AM   #1
ZHMEN
Junior Member
ZHMEN began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2023
Device: none
Can't publish a ebook on feiyr.com. Error in opf file.

Hello! I can't publish a ebook in epub formay on feiyr.com.

Error message after posting:

Error / Cover: No cover file was defined in the OPF file (by in section or by properties="cover-image" in section).


The result of checking epub by validators:
Validation for current epub: 0 fatals / 0 errors / 0 warnings / 0 infos
Your epub is valid according to EPUB version 2.0 rules.

properties="cover-image" - this is for epub 3.0 format metadata structure, but not valid for 2.0

What is wrong with my opf file?
Thanks in advance for any help!

my opf file (content.opf)

Code:
<?xml version="1.0" encoding="utf-8"?>
<package version="2.0" unique-identifier="BookId" xmlns="http://www.idpf.org/2007/opf" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fb="https://www.facebook.com/profile.phpid=100090128767249" xmlns:xlink="http://www.w3.org/1999/xlink">
  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:opf="http://www.idpf.org/2007/opf">
    <dc:title>Привет, новая Украина! или Большая обида маленького путина.</dc:title>
    <dc:creator opf:role="aut" opf:file-as="Балан, Олег">Олег Балан</dc:creator>
    <dc:date>2022-04-14T21:00:00+00:00</dc:date>
    <dc:description>Данная публикация представляет собой рассказ о киевском Майдане, охватывающий период с ноября 2013 по февраль 2014 года, очевидца и участника событий киевлянина Олега Балана. Автор подает свой взгляд о причинах войны России против Украины.</dc:description>
    <dc:publisher>Издательство ООО «Юрка Любченка»</dc:publisher>
    <dc:date opf:event="modification">2023-05-31</dc:date>
    <dc:subject>Общественно-политическое издание</dc:subject>
    <dc:language>ru</dc:language>
    <dc:identifier id="BookId" opf:scheme="ISBN">9786177221905</dc:identifier>
    <meta name="Sigil version" content="1.9.30"/>
    <meta name="calibre:title_sort" content="Привет, новая Украина! или Большая обида маленького путина."/>
    <meta name="calibre:author_link_map" content="{&quot;Олег Балан&quot;: &quot;&quot;}"/>
    <meta name="cover" content="cover-image"/>
  </metadata>
  <manifest>
    <item id="cover" href="cover.xhtml" media-type="application/xhtml+xml"/>
    <item id="content0.xhtml" href="content0.xhtml" media-type="application/xhtml+xml"/>
    <item id="content1.xhtml" href="content1.xhtml" media-type="application/xhtml+xml"/>
    <item id="content2.xhtml" href="content2.xhtml" media-type="application/xhtml+xml"/>
    <item id="content3.xhtml" href="content3.xhtml" media-type="application/xhtml+xml"/>
    <item id="content4.xhtml" href="content4.xhtml" media-type="application/xhtml+xml"/>
    <item id="content5.xhtml" href="content5.xhtml" media-type="application/xhtml+xml"/>
    <item id="contentnotes0.xhtml" href="contentnotes0.xhtml" media-type="application/xhtml+xml"/>
    <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
    <item id="css" href="style.css" media-type="text/css"/>
    <item id="font_css" href="unicode_fonts.css" media-type="text/css"/>
    <item id="index-25_2.jpg" href="index-25_2.jpg" media-type="image/jpeg"/>
    <item id="index-59_1.jpg" href="index-59_1.jpg" media-type="image/jpeg"/>
    <item id="index-59_2.jpg" href="index-59_2.jpg" media-type="image/jpeg"/>
    <item id="DIN-Alternate-Bold.ttf" href="fonts/DIN-Alternate-Bold.ttf" media-type="application/x-font-truetype"/>
    <item id="Georgia-Bold.ttf" href="fonts/Georgia-Bold.ttf" media-type="application/x-font-truetype"/>
    <item id="Georgia-BoldItalic.ttf" href="fonts/Georgia-BoldItalic.ttf" media-type="application/x-font-truetype"/>
    <item id="Georgia-Italic.ttf" href="fonts/Georgia-Italic.ttf" media-type="application/x-font-truetype"/>
    <item id="Georgia.ttf" href="fonts/Georgia.ttf" media-type="application/x-font-truetype"/>
    <item id="index-25_1.jpg" href="index-25_1.jpg" media-type="image/jpeg"/>
    <item id="index-26_1.jpg" href="index-26_1.jpg" media-type="image/jpeg"/>
    <item id="intro_3.jpg" href="intro_3.jpg" media-type="image/jpeg"/>
    <item id="outro4.jpg" href="outro4.jpg" media-type="image/jpeg"/>
    <item id="cover-image" href="cover.jpg" media-type="image/jpeg"/>
    <item id="index-21_1.jpg" href="index-21_1.jpg" media-type="image/jpeg"/>
    <item id="index-26_2.jpg" href="index-26_2.jpg" media-type="image/jpeg"/>
    <item id="index-28_1.jpg" href="index-28_1.jpg" media-type="image/jpeg"/>
    <item id="index-32_1.jpg" href="index-32_1.jpg" media-type="image/jpeg"/>
    <item id="index-33_1.jpg" href="index-33_1.jpg" media-type="image/jpeg"/>
    <item id="index-34_1.jpg" href="index-34_1.jpg" media-type="image/jpeg"/>
    <item id="index-37_1.jpg" href="index-37_1.jpg" media-type="image/jpeg"/>
    <item id="index-46_1.jpg" href="index-46_1.jpg" media-type="image/jpeg"/>
    <item id="index-49_1.jpg" href="index-49_1.jpg" media-type="image/jpeg"/>
    <item id="index-52_1.jpg" href="index-52_1.jpg" media-type="image/jpeg"/>
    <item id="index-54_1.jpg" href="index-54_1.jpg" media-type="image/jpeg"/>
    <item id="index-57_1.jpg" href="index-57_1.jpg" media-type="image/jpeg"/>
  </manifest>
  <spine toc="ncx">
    <itemref idref="cover"/>
    <itemref idref="content0.xhtml"/>
    <itemref idref="content1.xhtml"/>
    <itemref idref="content2.xhtml"/>
    <itemref idref="content3.xhtml"/>
    <itemref idref="content4.xhtml"/>
    <itemref idref="content5.xhtml"/>
    <itemref idref="contentnotes0.xhtml"/>
  </spine>
  <guide>
    <reference type="cover" title="Обложка" href="cover.xhtml"/>
    <reference type="notes" title="Примечания" href="contentnotes0.xhtml"/>
  </guide>
</package>
ZHMEN is offline   Reply With Quote
Old 05-31-2023, 08:27 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,101
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
You are making an ePub2 according to the version # at the top of your opf, so make sure you are following those rules. If you use Sigil or Calibre to add your cover then this should all be done automagically. But you should see something referencing 'cover' in each section (metadata, manifest, spine, and guide) of your opf. Something along the lines of:

Code:
<?xml version="1.0" encoding="utf-8"?>
<package version="2.0" unique-identifier="BookId" xmlns="http://www.idpf.org/2007/opf">

  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
    <dc:identifier opf:scheme="UUID" id="BookId">urn:uuid:6291c88b-0401-4263-8f9e-18c3aaec004a</dc:identifier>
    <dc:language>en</dc:language>
    <dc:title>[Title here]</dc:title>
    <meta name="cover" content="cover.jpg" />
  </metadata>

  <manifest>
    <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
    <item id="cover.xhtml" href="Text/cover.xhtml" media-type="application/xhtml+xml"/>
    <item id="cover.jpg" href="Images/cover.jpg" media-type="image/jpeg"/>
  </manifest>

  <spine toc="ncx">
    <itemref idref="cover.xhtml"/>
  </spine>

  <guide>
    <reference type="cover" title="Cover" href="Text/cover.xhtml"/>
  </guide>
</package>
Your opf has 'cover-image' in the contents of the metadata section, and the ID in the manifest section. You need to reference the image name.... cover.jpg

Also make sure your references are pointing to the correct location. eg. If you have your images in an Images folder then the reference would be "Images/cover.jpg"

Cheers!

Last edited by Turtle91; 05-31-2023 at 08:38 AM.
Turtle91 is offline   Reply With Quote
Old 05-31-2023, 10:33 AM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,657
Karma: 5433388
Join Date: Nov 2009
Device: many
Actually, you need not create an id from a file name. Sigil does it that way because if filenames are unique that the id will be unique.

So IF all links are truly valid, then feiyr.com's validator is broken for epub2. Either feiyr.com wants an epub3 instead of an epub2, or using the id "cover-image" which incidentally matches an official epub3 manifest property name "cover-image") is somehow confusing their validator.

This all assumes ALL your opf href entries are valid! If not, just fixing them should help.

Try as Turtle suggested, changing the metadata content to be match its filename or any other unique id that you set as the id in the cover.jpg manifest entry. Anything but "cover-image".

If that helps, then the bug is in there validator. If not, then check if feiyr.com only accepts epub3.
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while exporting opf metadata into pdf file liametoh Library Management 1 05-21-2020 11:05 PM
ePub3 to Mobi Error - Error(prcgen):E21027: Epub file has more than one opf file dtsmith Kindle Formats 4 01-30-2018 11:20 AM
How To Publish Ebook on Windows 10 Ebook Store for Self Publish Author? Xenodragon7 Writers' Corner 1 11-28-2017 06:15 PM
Kobo - OPF file Error RZetlin Calibre 6 06-11-2014 05:49 PM
ePub OPF file error soulartist ePub 4 10-03-2011 05:09 PM


All times are GMT -4. The time now is 05:38 AM.


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