Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-06-2012, 10:46 AM   #1
Kratos
Connoisseur
Kratos began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Mar 2011
Location: UK
Device: Kindle 3, iPhone, iPad, PC
How do I fix an illegal character error ITMS-9000 with iBooks Producer?

Hi. I've created an epub using Indesign CS5.5. The epub validates correctly. I have tried uploading it to iBooks with iTunes producer. And I am receiving these error messages for each html page:

Code:
ERROR ITMS-9000: "Filename.epub: Invalid URL in Nav file My book 05 21st Oct 2012-1.html#toc_marker-1 : Illegal character in path at index 3: HTG_iPad_Mini_05_21st_Oct_2012-1.html#toc_marker-1" at Book (applepackagename)
Now I found a blog post on Pigs, Gourds & Wikis which explains the error is because iBooks doesn't allow spaces in file names.

So I opened the toc.ncx file in Notepad +. I change all the file names, like the one listed above, so all the blank spaces I changed to underscores_ .
However when I tried to reupload the file I'm still getting errors. I thought I'd finished but I haven't. Please, any ideas how I can fix this?
Kratos is offline   Reply With Quote
Old 11-06-2012, 11:43 AM   #2
Jim Lester
Evangelist
Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.
 
Jim Lester's Avatar
 
Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
Did you change the names of the actual files in your .zip/.epub as well, when you changed the references?
Jim Lester is offline   Reply With Quote
Old 11-06-2012, 12:03 PM   #3
Kratos
Connoisseur
Kratos began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Mar 2011
Location: UK
Device: Kindle 3, iPhone, iPad, PC
At first I didn't. But now I have changed the actual name of the html files and the references to them in the toc.ncx. Now I am getting an error with the epub validator

Code:
ERROR: E:\zzzzzzzz  F23 use to edit\F28Hyphen.epub/OEBPS/toc.ncx(2753): 'OEBPS/My-book-05-21st-Oct-2012-457.html': referenced resource exists, but not declared in the OPF file
Now I've opened the OPF to take a look. Near the top of the doc I see a list of references that look like this:

Code:
<item id="My-book-05-21st-Oct-2012-381" href="My%20book%2005%2021st%20Oct%202012-381.html" media-type="application/xhtml+xml"/>

and further down loads of these
Code:
<itemref idref="My-book-05-21st-Oct-2012-334"/>
So it seems like the revised name is declared in the OPF but the validator is saying it isn't. So I don't know what it is I should be changing.
Kratos is offline   Reply With Quote
Old 11-06-2012, 01:47 PM   #4
Kratos
Connoisseur
Kratos began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Mar 2011
Location: UK
Device: Kindle 3, iPhone, iPad, PC
I have found a workaround to the ITMS-9000 problem with the help of deep searching with Ms Google.

I opened my epub in Sigil, I then saved it as a new epub. I unzipped the epub to have a look and it made some changes. In the ncx it replaced spaces in file names with %20. It also reordered the contents of the epub. So inside there is content.opf, toc.ncx, a text folder, images folder, and styles folder. Whilst Sigil arranges the content of the epub to a different way Im not complaining as I have uploaded it with iTunes Producer and haven't had any error messages from Apple yet. I hope this helps anybody else who this drives mental.

But if anybody does know how I could have fixed my epub without using Sigil then I'd be happy to know as I tried multiple combinations of using %20 and underscores/ hyphens in the ncx file and renaming the html files and editing the opf file references.

But am happy now.
Kratos is offline   Reply With Quote
Old 11-19-2012, 07:21 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,560
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
You want to make sure none of your filenames have spaces. They can cause untold problems.
JSWolf is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR ITMS-9000: "Unable to analyse: cover.xhtml" at Book irenelucia ePub 0 01-04-2012 01:18 PM
iTunes Producer Error itms-9000 image file too short Patuba ePub 2 12-06-2011 11:12 PM
error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac NewDay ePub 3 10-07-2010 02:47 PM
ERROR ITMS-9000 softengdeb Apple Devices 3 07-13-2010 07:27 AM
Illegal character in path in ePub file Guido Henkel Calibre 2 05-27-2010 11:10 AM


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


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