Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2008 at 14:59 UTC
Updated:
24 Sep 2008 at 03:52 UTC
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
Comment #1
pillow commentedI 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?
Comment #2
jcnventura@pillow: you're also using PHP4 no?
João
Comment #3
pillow commented@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.
Comment #4
pillow commentedI 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
Comment #5
jcnventuraHi,
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
Comment #6
pillow commentedthanks for your work deep in the night!
I'll try it once the next version releases.
Comment #7
pillow commentedIt does not generate empty content any more. Thank you very much!
Comment #8
hsaleem commentedThanks! This issue is resolved with the latest Dev snapshot dated 4 Sept 2008.
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.