PHP Classes

Unable to send file

Recommend this page to a friend!

      EPub  >  All threads  >  Unable to send file  >  (Un) Subscribe thread alerts  
Subject:Unable to send file
Summary:Output buffer initialized and not empty
Messages:3
Author:S M
Date:2010-04-14 15:05:11
Update:2010-04-15 14:01:02
 

  1. Unable to send file   Reply   Report abuse  
Picture of S M S M - 2010-04-14 15:05:11
the example doesn't work , i keep receiving this message

Error: Unable to send file TestBook.epub . Output buffer initialized and not empty
(the ob is empty on var_dump)

i fixed the errors regarding to
- size [ if ($size < 2048) { ]
- splitDefaultSize [ if (strlen($chapter) <= $this->splitDefaultSize) { ]
from EPubChapterSplitter.php but still...same problem

i tried on
windows wamp php 5.3.0
and
Linux dev 2.6.18 PHP Version 5.2.10

please put another simple example

  2. Re: Unable to send file   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2010-04-14 15:28:10 - In reply to message 1 from S M
I admit, the error message is not clear enough on this.
EPub will 'die' if the output buffer is initialized, unless you tell it not to by calling setIgnoreEmptyBuffer(true) in the latest version.

Using the output buffer when sending files is not recommended, it just adds yet another memory allocation.

I'll correct the setSplitSize function. Thanks for pointing it out.

  3. Re: Unable to send file   Reply   Report abuse  
Picture of S M S M - 2010-04-15 14:01:02 - In reply to message 2 from Asbjorn Grandt
EPub.Example2.php works

thanks