error

Recommend this page to a friend!

      EPub  >  All threads  >  error  >  (Un) Subscribe thread alerts  
Subject:error
Summary:error
Messages:15
Author:Dragos
Date:2011-02-21 12:28:43
Update:2011-02-23 13:16:46
 
  1 - 10   11 - 15  

  1. error   Reply   Report abuse  
Picture of Dragos Dragos - 2011-02-21 12:28:45
this class requires to modify alot because it give me alot off errors and warnings.

  2. Re: error   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-02-21 12:41:30 - In reply to message 1 from Dragos
Hi

Please be more specific, and please provide some of the error output.

  3. Re: error   Reply   Report abuse  
Picture of fulvio corsini fulvio corsini - 2011-02-22 10:28:57 - In reply to message 2 from Asbjorn Grandt
Hello Asbjorn, have tested the version 2 local, your sample not modified, win7, php 5.3.0 and the created epub file is empty, the first version works, also under php 5.2.11, haven't tested online cause I have no servers with php 5.3 installed. Don't see any errors or log or something like.
Thanks for your work, futre.

  4. Re: error   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-02-22 11:03:25 - In reply to message 3 from fulvio corsini
I will test further.

  5. Re: error   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-02-22 11:24:15 - In reply to message 3 from fulvio corsini
I just ran it on an older PHP 5.2.10 (default PHP installation on KUbubntu 9.10), I still get the book from the Example.

Have you checked:
* That you have the latest Zip.php from http://www.phpclasses.org/package/6110 (must be version 1.21)
* Modified the Example to point at an image of your own in line 33: $book->setCoverImage("/test/images/_cover_.jpg");

EPub requires DOM and PCRE (regexp) which are pretty muvh standard on PHP installations, and optionally GD.

  6. Re: error   Reply   Report abuse  
Picture of fulvio corsini fulvio corsini - 2011-02-22 11:45:00 - In reply to message 5 from Asbjorn Grandt
Thanks Asbjorn, yes it was the zip class, but think there is an error in the function resolveImage, this is the error:

Notice: Undefined index: images/http/www.peopleforfun.com/upload/2011/02/valentineCVille1.jpg in C:\wamp\www\epub2\EPub.php on line 524

puts the param images before the link,

regards, futre.

  7. Re: error   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-02-22 12:31:19 - In reply to message 6 from fulvio corsini
I think you are right, there is a potential problem. I am using the array to track which files have been added to the book.

I assume you are still running it in PHP 5.2?

Will replacing
if (strlen($this->fileList[$internalPath]) == 0) {
with
if (!array_key_exists($internalPath, $this->fileList)) {

Solve the problem on your end?

Cheers,
A.Grandt

  8. Re: error   Reply   Report abuse  
Picture of fulvio corsini fulvio corsini - 2011-02-22 16:58:46 - In reply to message 7 from Asbjorn Grandt
Thanks,

it seems the error is in the var $internalPath, it doesn't return (I think) the correct path,
the error is:
Notice: Undefined index: images/http/www.peopleforfun.com/upload/2011/02/valentineCVille1.jpg in C:\wamp\www\epub2\EPub.php on line 118

Error: Unable to send file Example1Book.epub.epub. Output buffer contains the following text (typically warnings or errors):

Notice: Undefined index: images/http/www.peopleforfun.com/upload/2011/02/valentineCVille1.jpg in C:\wamp\www\epub2\EPub.php on line 118

and yes have php 5.2.11

Thanks again,
futre.

  9. Re: error   Reply   Report abuse  
Picture of fulvio corsini fulvio corsini - 2011-02-22 17:02:13 - In reply to message 7 from Asbjorn Grandt
p.s. have a done a small donation, know is not so much but rigth know is not a good period... :)

  10. Re: error   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2011-02-22 17:20:41 - In reply to message 8 from fulvio corsini
That is the same error you had with he images, and for the same reason. Arrays just returns nothing (0) if you call them with an unknown key in 5.3, apparently not so in 5.2. I'm fixing it now.

And thanks for the donation :)

 
  1 - 10   11 - 15  

For more information send a message to info at phpclasses dot org.