Closed (fixed)
Project:
Pdfview
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2007 at 14:38 UTC
Updated:
29 Mar 2007 at 09:16 UTC
Jump to comment: Most recent file
Comments
Comment #1
drupalnesia commentedIt's look like this problem only on PHP 4. I try PHP 5 on my localhost and everything is fine.
But I still need to solve this problem since my hosting is PHP 4.
Comment #2
drupalnesia commentedAfter upgrade to tcpdf_1_53_0_TC030 that contain bug fix for PHP 4 then above error fixed!
Also, I attach my edited version:
1. including reduced version of tcpdf from 6.5 MB to 400 KB only
2. including tcpdf config that using Drupal variable, mean you don't need to edit K_PATH_MAIN and K_URL_MAIN anymore
The code for #2 is:
$path = drupal_get_path('module', 'pdfview') .'/tcpdf';
define ("K_PATH_MAIN", realpath($path) .'/');
$path = drupal_get_path('module', 'pdfview') .'/tcpdf';
define ("K_PATH_MAIN", realpath($path) .'/');
Regards.
Comment #3
(not verified) commented