2

I had a weird problem with the file Container.xml apparently just vanishing. At least, that's the error message I got.

I couldn't figure it out, so I finally just created a new epub, then imported the files from the original project. It worked.

But I'm now working on a much bigger project, and my Container.xml file vanished again.

I've read that Sigil automatically recreates the file when you reopen an ePub. So I tried that, without success. I also shut down Sigil and reopened it. Again, no success.

It reminds me of a similar problem I've had with vanishing images. I fixed that by simply backing up all my images in a folder outside Sigil. If my images disappear, I just reimport them from the backup folder.

But how can I recreate a Container.xhtml file? It's especially puzzling when it's apparently invisible. If I open a working ePub, I can't find it.

I'm on a MacBook Pro running Sierra, by the way.

EDIT:

Sorry, I missed the related threads because I was searching for Container.xhtml instead of Container.xml. But I'm still interested in knowing if there's a way to recreate the file, rather than creating a new project and reimporting all my files. The problem is rearranging all the files after I've imported them; it's a huge project.

EDIT #2

OK, here's the fix:

  1. Create a new ePub.
  2. Open both the new ePub and the original damaged ePub with eCan Crusher.
  3. Open the new ePub and copy the META-INF folder (which you can't see in Sigil).
  4. Paste it over the META-INF folder in the original ePub.
  5. That should fix it. If your images don't display, it might because they've vanished. I don't know if that's a problem with Sigil or Mac, but I'm now in the habit of making backup folders of all my images.
  • I answered on the previous container question. ebooks.stackexchange.com/questions/7256/… I suspect that there's a Sigil bug here. – idiotprogrammer Jun 26 '17 at 15:48
  • 1
    OK. In the meantime, I just learned that it could also be a Mac problem. Apparently, if you leave a Sigil project open for more than 24 hours on a Mac, the Mac deletes some of its files. Weird, but that would explain what's been happening. I'll have to start closing my projects more promptly. – David Blomstrom Jun 26 '17 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.