Generate PDF file -> Page no found

PEpe - February 13, 2009 - 19:51
Project:DruTeX
Version:6.x-1.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

When I click link "Generate PDF file", I'm redirected (for example on www.mysite.com/files/tex/64.pdf) and see message like:
"The directory files/tmp/drutex-4f02cab5ea5773ac9bfdd22359a2b1c1-1 has been created." on "Page no found" page. Nothing more. Can you help me or ask some more specification of my installation? THX a lot.

#1

kepol - April 6, 2009 - 02:40

Same problem here. Seems to be an issue with the path where it's writing and looking for the intermediate tex file. I'm debugging it right now. Hopefully I will figure out a solution.

....
[update]

I did get it to work with a couple hacks. I'm not going to take the time to figure out how to fix it so there is a proper patch, but if you just want to get it to work you can do the following:

1) in drutex_node2pdf function, change:

$source_file = $image_dir .'/'. $file;
to
$source_file = 'sites/default/'.$image_dir .'/'. $file;

2) in drutex_node2latex function, change:

$dir = drutex_var_get("drutex_dir_images_{$node->format}");

to

$dir = 'tex';

3) create the sites/default/files/tex directory and make it writable to www-data

Good luck.

#2

Rodeo.be - October 31, 2009 - 15:15

I still get those same errors..

(using multisite)

 
 

Drupal is a registered trademark of Dries Buytaert.