Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
I am debugging why pdf-printing is not working in my productionserver (but works in my development). But then I found some bug in the code.
In: print/print_pdf/print_pdf.pages.inc on row: 57->
$pdf = print_pdf_generate_path($path, $cid, $pdf_filename);
if ($pdf == NULL) {
drupal_goto($print['url']);
exit;
}
Here if the pdf generation fails with should goto som other url. But the $print variable is not defined in function print_pdf_controller()
Comments
Comment #1
kristofferwiklund CreditAttribution: kristofferwiklund commentedAs a side note. My problem with wkhtmltopdf was the version. On my development machine (Ubuntu 11.10 x64) I was running version 0.11 and it worked nice. But same version on my production server (Ubuntu 10.04 LTS x64) didn't work for some pages. But downgrading to wkhtmltopdf version 0.9 solved my problems. But the bug report above is still valid.
Comment #2
jcnventura CreditAttribution: jcnventura commentedThanks for reporting this.. It's a remnant of the split of the print_pdf_controller() function before I moved a lot of the code to print_pdf_generate_path().
I've committed a fix for this to dev.