View Full Version : Errors in epub


novels.books
11-26-2009, 12:08 PM
I just created an epub file and used epubcheck-1.0.4.

I'm getting the following errors :(:


ERROR: My_epub.epub/OEBPS/content.opf(7): unfinished element
ERROR: My_epub.epub: I/O error reading OEBPS/p1.html


Can someone tell me where I'm going wrong??

I've attached the file as well.

pdurrant
11-26-2009, 01:30 PM
I'm not quite sure what the problem is in your content.opf

I thought the problem in p1.html was that you hadn't declared an encoding at the top, but even adding

<meta http-equiv="content-type" content="text/html; charset=windows-1252" />

after <head> didn't fix things. Switching from Windows Latin-1 to UTF-8 does.

I'd strongly recommend Sigil to you - it creates nice clean ePubs.

I just created an epub file and used epubcheck-1.0.4.

I'm getting the following errors :(:


ERROR: My_epub.epub/OEBPS/content.opf(7): unfinished element
ERROR: My_epub.epub: I/O error reading OEBPS/p1.html


Can someone tell me where I'm going wrong??

I've attached the file as well.

Jellby
11-26-2009, 02:36 PM
The OPF file is missing, at least a <language> element in the <metadata>.

novels.books
11-26-2009, 10:39 PM
The OPF file is missing, at least a <language> element in the <metadata>.

Thanks Jellby :thanks:
It worked :)

novels.books
11-26-2009, 10:41 PM
I solved the error: ERROR: My_epub.epub: I/O error reading OEBPS/p1.html

All I had to do was replace smart codes by the &#8216; &#8217; &#8220; and &#8221;.

Now there are no errors in the file :thumbsup:


Now I am getting a new error.
Looks like the <br> tag is not allowed. Help me regarding this please :help:

pdurrant
11-27-2009, 03:54 AM
In XHTML you have to use <br />

I solved the error: ERROR: My_epub.epub: I/O error reading OEBPS/p1.html

All I had to do was replace smart codes by the ‘ ’ “ and ”.

Now there are no errors in the file :thumbsup:


Now I am getting a new error.
Looks like the <br> tag is not allowed. Help me regarding this please :help: