05-23-2014, 01:02 PM | #1 |
Member
Posts: 16
Karma: 10
Join Date: May 2014
Device: none
|
Error epubcheck
Hello,
I believed my epub was correctly built but when I try to validate it with epubcheck, it tells me that all my xhtml files (every file in fact) are not declared in opf file, whereas they really are and the links are correct... Would you know why ? After that, I started again my process to built again the epub, and know it tells me that in the ncx the error is : "hyperlink to non-standard resource 'OEBPS/PHENbook.xhtml' of type 'xhtml+xml'" I go crazy... does anybody know the answer ? Thanks a lot for your help !! |
05-23-2014, 01:34 PM | #2 |
Grand Sorcerer
Posts: 44,879
Karma: 55647515
Join Date: Jan 2007
Location: Peru
Device: Kindle: Oasis 3, Voyage WiFi; Kobo: Libra 2, Aura One
|
Please look over our site and post responsibly.
The General Discussion Forum is for ".....discussions about e-book reading not specific to a device, software or format." Your post has been moved out of the General Discussion Forum and moved to.......the epub forum. Don (Moderator) |
Advert | |
|
05-23-2014, 02:57 PM | #3 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
These sorts of issues is why many people use Calibre's editor or Sigil to create epubs. They handle much of this sort of things themselves.
You could try downloading either and seeing what error message you get or whether Sigil corrects the error if you allow it to when you open the file. With Sigil the file may not remain exactly the same, but it will display the same way you want it to. |
05-23-2014, 03:28 PM | #4 |
Addict
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Or you could post the exact error it gives you here, I will post a solution for you.
However, I do recommend Calibre just like mrmikel does. |
05-24-2014, 01:46 PM | #5 |
Member
Posts: 16
Karma: 10
Join Date: May 2014
Device: none
|
Hi,
Thanks for your answers. I built my ebook by myself with RJ textedit, so I didn't use Calibre or Sigil, that's why I don't understand this error : "item (OEBPS/PHEN_partA.xhtml) exists in the zip file, but is not declared in the OPF file" because this file IS declared in the opf and the link is correct.Honestly I just start in creating epubs but you are great if you find the solution, it is mysterious... Please note that my epub like that doesn't want to open in Adobe reader, and Sigil doesn't want to open it neither... |
Advert | |
|
05-24-2014, 01:59 PM | #6 | |
Imperfect Perfectionist
Posts: 503
Karma: 744664
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
Best thing to do would be to upload a sample of the finished epub with the error, if possible, and some of the experts around here will probably be able to pinpoint the responsible culprit. Regards, Kim |
|
05-24-2014, 02:32 PM | #7 | |
Addict
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Quote:
Make sure the opf declartation looks something like this: Code:
<item href="Text/Section0000.xhtml" id="Section0000.xhtml" media-type="application/xhtml+xml"/> |
|
05-24-2014, 04:23 PM | #8 |
Member
Posts: 16
Karma: 10
Join Date: May 2014
Device: none
|
Yes it does, unfortunately... (I didn't write the epub entirely, I used word and then I built the opf content and ncx...) How could I upload it to show you ? Sorry I am a new one on this forum. Thanks again, so much, there is obviously a reason but I go completely crazy.
|
05-24-2014, 04:40 PM | #9 |
Addict
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
When you reply using Advanced mode, you can scroll down a bit and see "Attach files" section, it looks like this
|
05-24-2014, 05:07 PM | #10 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Acrobat Reader won't open epubs, even good ones. Sigil needs to be set up so it will correct errors on input. Calibre editor doesn't require a valid epub. If you are desperate you could just paste your book sections into a new blank book in calibre editor and then use tools, table of contents to generate a valid table of contents. It, as does Sigil assumes you have marked your chapters with headings. <h1><h2><h3> etc.
|
05-24-2014, 05:29 PM | #11 | |
Grand Sorcerer
Posts: 27,708
Karma: 196949708
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
The links are case sensitive as others have mentioned and the path must be exactly correct (relative to the OPF file). |
|
05-26-2014, 03:52 AM | #12 |
Member
Posts: 16
Karma: 10
Join Date: May 2014
Device: none
|
Yes, I really understand this, either the link, either it is not declared, but my file does not seem bad in that way... however I do understand that there is obligatory an error, of course ! (Adobe digital editions doesn't want to open it)
Sorry, I may be stupid but I don't find the Advanced mode to reply, so here is a wetransfer link to download my epub : https://www.wetransfer.com/downloads...6074805/2f2448 Thank you so much for your help (and sorry for my bad english...!), you save me ! Last edited by Buble; 05-26-2014 at 03:56 AM. |
05-26-2014, 04:53 AM | #13 | |||
Addict
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Calire spits out a bunch of errors, the important one for you is the error in parsing the HTML file, that means there is something wrong with the syntax which you wrote the HTML file and that's why it doesn't show on a reader. i.e. You could have missed a quote symbol or didn't close a tag properly.
In this case: Quote:
Quote:
Quote:
I really recommend using Calibre, there is absolutely no reason to hand code everything from scratch, even if you like to learn to old fashioned way. |
|||
05-26-2014, 05:51 AM | #14 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
If you are already using Word, consider my add-in. It will create an ePUB for you directly from Word that will work.
|
05-26-2014, 08:41 AM | #15 |
Member
Posts: 16
Karma: 10
Join Date: May 2014
Device: none
|
Yes indeed, but when I am adding the quotes, it tells me after that "element "span" not allowed here; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")", does it mean that there is a problem whith the head declaration of the file ? My file seems to be an xhtml like this with no xml problem (I think !).
(Thanks to everyone) |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePubCheck error deciphering | thiefwriter | Calibre | 5 | 09-15-2011 07:37 PM |
Error on epubcheck | Brazz | ePub | 5 | 09-01-2011 03:17 AM |
Ran my book through epubcheck and got an error message. Help! | PhoenixTree | ePub | 3 | 06-12-2011 03:53 PM |
Indesign CS5 to ePub: epubcheck error | gdgibson | ePub | 3 | 04-20-2011 01:26 AM |
epub date error fails epubcheck 1.05 | dkata | Calibre | 2 | 09-13-2010 04:21 AM |