I get these notices after downloading PDF version using dompdf:
Notice: Constant DOMPDF_TEMP_DIR already defined in require_once() (line 73 of .../sites/all/modules/contrib/print/dompdf/dompdf_config.inc.php).
Notice: Constant DOMPDF_ENABLE_PHP already defined in require_once() (line 185 of .../sites/all/modules/contrib/print/dompdf/dompdf_config.inc.php).
Notice: Constant DOMPDF_ENABLE_REMOTE already defined in require_once() (line 196 of .../sites/all/modules/contrib/print/dompdf/dompdf_config.inc.php).
Using egrep I get this...
[.../sites]# egrep '"DOMPDF_(TEMP|ENABLE)' all/modules/contrib/print/* -Rn
all/modules/contrib/print/dompdf/dompdf_config.inc.php:73:define("DOMPDF_TEMP_DIR", "/tmp");
all/modules/contrib/print/dompdf/dompdf_config.inc.php:185:define("DOMPDF_ENABLE_PHP", false);
all/modules/contrib/print/dompdf/dompdf_config.inc.php:196:define("DOMPDF_ENABLE_REMOTE", true);
all/modules/contrib/print/print_pdf/print_pdf.pages.inc:180: define("DOMPDF_ENABLE_PHP", FALSE);
all/modules/contrib/print/print_pdf/print_pdf.pages.inc:181: define("DOMPDF_ENABLE_REMOTE", TRUE);
all/modules/contrib/print/print_pdf/print_pdf.pages.inc:182: define("DOMPDF_TEMP_DIR", file_directory_temp());
Comments
Comment #1
arrays commentedHi,
I am also getting these warnings in Drupal 6 also.
Any update on this?
Comment #2
enomertens commentedSame issue here, ... checking it out ;)
Comment #3
jcnventuraWhich version of dompdf are you using?? dompdf 0.5.2 and before do have this problem, and the only way to fix it is to comment out those lines in dompdf.
dompdf 0.6+ doesn't have this problem, and I'd recommend to use that one.
Comment #4
jcnventuraComment #5
jcnventuraNo further info in more than two weeks. Closing the issue.
Comment #6
crantok commentedSorry for not responding in a timely manner. (Why did it never occur to me to turn on notifications before?) Yes, I am using dompdf version 0.5.1. Thanks for clarifying the situation. Will upgrade to 0.6.0 when it gets out of beta.