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

kristofferwiklund’s picture

As 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.

jcnventura’s picture

Status: Active » Fixed

Thanks 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.