I use Drupal 6.4 under PHP4.
If i try to create a PDF-View with the print-module (latest dev-snapshot from 2008-Aug-22) and tcpdf (tcpdf_4_0_020_php4) i get only an empty page with a horizontal line at the top of the page.

Comments

pillow’s picture

I ran into the same situation too, do we miss any configuration?
There arn't any relevant log entries in Recent log entries, what information should I collect for debugging?

jcnventura’s picture

@pillow: you're also using PHP4 no?

João

pillow’s picture

@jcnventura,

yes, I use PHP4.3.9 and have changed stripos to strpos in the tcpdf.php to resolve the error entris in apahce log refer to http://drupal.org/node/295886.
But that make no sense to the empty pdf document problem, I think it more relative to print module for Drupal.

PS: I have checked that throuh IE it can produce pdf correctly by visiting the tcpdf_php4/example/example_001.php or such as.

pillow’s picture

I have tried the lastest dev version release today(Sep/2rd).
Empty pdf content problem still exists, and I found there is not any log generate in httpd's access_log or error_log after clicking "pdf version", but there will be one entris if I click "http://example.com/sites/all/modules/print/tcpdf_php4/examples/example_0...", is this normal?

If I visit http://example.com/printpdf it respones me with a page displaying the following:

The requested page could not be found. <--this is in top of the page

TCPDF error: Some data has already been output to browser, can't send PDF file <--this is in the bottom

jcnventura’s picture

Status: Active » Fixed

Hi,

I think I have fixed the problem.. I have it working now in PHP4, but I still need to run some tests.. In the end, the problem is that Drupal's theme() function doesn't pass arguments by reference when PHP4 is being used.

One good thing of Drupal 7 is that we will be able to get rid of this obsolete PHP4 support.

Whenever the next dev version is released it will include this fix.

João

pillow’s picture

thanks for your work deep in the night!
I'll try it once the next version releases.

pillow’s picture

It does not generate empty content any more. Thank you very much!

hsaleem’s picture

Thanks! This issue is resolved with the latest Dev snapshot dated 4 Sept 2008.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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