PHP Classes

problem with META-INF

Recommend this page to a friend!

      EPub  >  All threads  >  problem with META-INF  >  (Un) Subscribe thread alerts  
Subject:problem with META-INF
Summary:error including directory META-INF
Messages:5
Author:Joan Jofra
Date:2010-04-29 10:00:35
Update:2010-04-30 07:30:05
 

  1. problem with META-INF   Reply   Report abuse  
Picture of Joan Jofra Joan Jofra - 2010-04-29 10:00:35
in line 49 of EPub.php, when adding the directory you must add a slash in the name of the directory:

change $this->zip->addDirectory("META-INF");
to $this->zip->addDirectory("META-INF/");

Joan

  2. Re: problem with META-INF   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2010-04-29 11:01:41 - In reply to message 1 from Joan Jofra
Ok, I'll look into it. Where did this missing slash cause a problem ?

  3. Re: problem with META-INF   Reply   Report abuse  
Picture of Joan Jofra Joan Jofra - 2010-04-29 11:20:23 - In reply to message 2 from Asbjorn Grandt
not a problem with calibre or stanza but prevents the transfer from iTunes to the iPad

  4. Re: problem with META-INF   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2010-04-29 11:29:21 - In reply to message 3 from Joan Jofra
Ok, I'll get it updated then.

  5. Re: problem with META-INF   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2010-04-30 07:30:05 - In reply to message 3 from Joan Jofra
One question, now that I don't have an iPad to test it on, what happens if you comment out the $this->zip->addDirectory("META-INF/"); line entirely?

The iPad should still accept it, as adding an empty directory should not be needed, as the path will be created by the container.xml line
$this->zip->addFile($this->content, "META-INF/container.xml");