Jeckky / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Image not disply on live server #436

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I got the error of NetworkError: 500 Internal Server Error when I click to 
generate my pdf. I use relative path like this: $html = '<img 
src="images/logo.gif" />';
It work fine for me in local, but for live server it doesn't work, it show  the 
above error. Any idea related to this?

What is the expected output? What do you see instead?
It should open popup, and allow me to save my pdf, and I should see my image on 
pdf file. I got NetworkError like I show above.

What version of dompdf are you using? What version of PHP? On what
operating system?
I use dompdf_0-6-0_beta3, and php version 5.x on ubuntu system.

Please provide the HTML source code you want to convert, or any additional
information.

Original issue reported on code.google.com by chanthor...@gmail.com on 2 Mar 2012 at 4:21

GoogleCodeExporter commented 8 years ago
A 500 error is a server error typically caused by the currently running script. 
"500 Internal Server Error" is a generic message when no other information is 
available. Enable error reporting or error logging and post back the error 
reported by PHP.

Original comment by eclecticgeek on 3 Mar 2012 at 3:41

GoogleCodeExporter commented 8 years ago
Thank you for your replying, I will try.

Original comment by chanthor...@gmail.com on 5 Mar 2012 at 3:00

GoogleCodeExporter commented 8 years ago
This happens for the memory limit of server and the maximun execution time.
There's that increase these, for example:

ini_set("memory_limit", "999M");
ini_set("max_execution_time", "999");

Do this before you instantiate the class, $dompdf = new DOMPDF();

Sorry for my English!

Original comment by rashid...@gmail.com on 13 Mar 2012 at 9:35

GoogleCodeExporter commented 8 years ago
I had the same problem with DOMPDF 0.6.0 beta 3 on a server running php 5.2.17. 
Moved all the code to a server running php 5.3.3 and the PDFs generated 
successfully.

There were no error in the PHP or Apache logs. Just a 500 Internal Server error 
whenever more than a couple images were included in the PDF. Increased 
memory_limit and max_execution_time and still had 500 Internal Server error on 
the php 5.2.17 server.

Original comment by cristina...@gmail.com on 20 Jun 2012 at 11:37

GoogleCodeExporter commented 8 years ago
@cristina.hanes 500 typically indicates some kind of code error, and if it's a 
PHP script you're accessing then PHP should be returning an error. I have 
occasionally seen PHP/Apache segfault, and in that case no errors are produced 
(though I believe no 500 message is returned in that case). Could logging be 
disabled? You can always try turning it on in script using 
ini_set('display_errors',true). Any PHP errors should be returned instead of 
the generic 500 response.

If you need further assistance please visit the support forum:
https://groups.google.com/forum/#!forum/dompdf

Original comment by eclecticgeek on 21 Jun 2012 at 12:44

GoogleCodeExporter commented 8 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00