Error DOMPDF |
[eluser]SteelSeriesX[/eluser]
I am trying to create a php page that generates as a pdf file. Some code I have riped from this forum, to test if it works. In my code I can't find any white spaces infront or behind of the <?php ?> what is the solution that is given at many topics. I am getting this error: A PHP Error was encountered Severity: Notice Message: Undefined index: _dompdf_show_warnings Filename: include/dompdf.cls.php Line Number: 530 Unable to stream pdf: headers already sent The files I use: View (pdf_view.php) Code: <html> Plug-in (to_pdf_pi.php) Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); Controller (showpdf.php) Code: <?php Please help me solve this problem
[eluser]webnology[/eluser]
Check if you have no spaces or anything bedore the <?php... That's my first wild guess here. CHeers, M
[eluser]Unknown[/eluser]
If you are still having issues, you could try posting on our Google Groups for some help with DOMPDF. www.dompdf.com
[eluser]Cro_Crx[/eluser]
I'm having the same problems. The script was taking up all of PHP's allocated RAM (only 8MB) so I bumped it up. Now I'm receiving the same error as the OP. UPDATE: I upgraded my dompdf to version 0.5.2 from this website ==> http://digitaljunkies.ca/dompdf/ and it seems to be working fine now.
[eluser]CARP[/eluser]
@SteelSeriesX did you solve it? @Cro_Crx the 0.5.2 version isn't available. I've got the 0.6.0_alpha2, which gives the error. Tried with 0.5.1, but never finishes loading anything http://code.google.com/p/dompdf/downloads/list PS: also checked for whitespaces at beginning and end of to_pdf_pi.php, controller, view, etc. |
Welcome Guest, Not a member yet? Register Sign In |