Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-21-2021, 05:49 PM   #1
gsosigil
Junior Member
gsosigil began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2020
Device: ADE
EPUBCheck error

There are actually a whole series of errors, the first though I think is the cause of the rest:
Code:
ERROR	OEBPS/content.opf - Error while parsing file: element "package" not allowed here; expected element "ns1:package" or "ns2:package" (with xmlns:ns1="http://openebook.org/namespaces/oeb-package/1.0/" xmlns:ns2="http://www.idpf.org/2007/opf")
The line in 'content.opf the error refers to:
Code:
<package version="2.0" unique-identifier="unique-identifier" xmlns="http://www/idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/">
Google (and Bing) returned one search result for this error, which I think is technically called a googlewhack, https://www.zhihu.com/question/39893155
gsosigil is offline   Reply With Quote
Old 03-21-2021, 06:04 PM   #2
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,647
Karma: 5433388
Join Date: Nov 2009
Device: many
Notice the difference between what they want and what you have:

They want namespace: http://www.idpf.org/2007/opf

but your package tag has a typo.

It defines a namespace: http://www/idpf.org/2007/opf

So just fix the typo in your opf package tag to change:

www/idpf.org

to

www.idpf.org
KevinH is offline   Reply With Quote
Advert
Old 03-21-2021, 06:08 PM   #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,647
Karma: 5433388
Join Date: Nov 2009
Device: many
Also what version of Sigil are you using? That typo was found and fixed in the code that tries to auto fix the opf when it was missing the proper namespaces a while back.
KevinH is offline   Reply With Quote
Old 03-21-2021, 06:24 PM   #4
gsosigil
Junior Member
gsosigil began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2020
Device: ADE
Thank you, that has sorted it out. I'm using Sigil 1.5.0, however the epub file was created using an older version of Sigil (not sure which).
gsosigil is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epubcheck misses error exaltedwombat Sigil 12 09-24-2019 04:02 PM
Epubcheck: New Error under upgrade to Validator 4.0.2 Phaedrus Wolfe Conversion 21 08-21-2017 10:04 AM
Error epubcheck Buble ePub 43 08-15-2014 01:53 AM
ePubCheck error deciphering thiefwriter Calibre 5 09-15-2011 07:37 PM
Error on epubcheck Brazz ePub 5 09-01-2011 03:17 AM


All times are GMT -4. The time now is 12:12 PM.


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