This is a reposting a message that was inadvertently lost in the webserver change over.
-- Mike
By: cmett@radford.edu
Coreen Mett
Has anybody else experienced this problem? I've searched through the discussion group and found no mention of it.
I'm still using V1.6 of WeBWorK. The server is refusing to deliver a PDF hard copy in ALL WeBWorK courses? Enclosed below are 3 clues: 1) feedback from the request for hard copy in pdf format. 2) corresoponding message in error_log 3) subroutine in welcomeAction.pl that is referenced in the error message Any help would be greatly appreciated.
1)----------welcomeAction.pl creates the following HTML page: Error: /home/webwork/www/webwork/system/cgi/cgi-scripts/welcomeAction.pl Unable to create PDF output using makePDF file: /home/webwork/www/webwork/system/scripts/makePDF /home/webwork/www/webwork/system/courses/Mett_Calc155_Spring02/html/tmp/ setCalc3ShortCuts.tempTex-CGIscript-1 1&2 Error is: Bad file number
2)--------------------error_log gives the following message: ERROR (/home/webwork/www/webwork/system/cgi/cgi-scripts/welcomeAction.pl) Wed Mar 6 15:07:57 2002: at /home/webwork/www/webwork/system/cgi/cgi-scripts/welcomeAction.pl line 581
---------------The "offending" code in welcomeAction.pl is in the pdfPrint subroutine below. Line 581 is the one that begins with "system .." 3) ------------
sub pdfPrint {
system( "${scriptDirectory}makePDF $tempDirectory ${texFile}$psvn 1&2" ) == 0 or wwerror("$0", "Unable to create PDF output using makePDF file: ${ scriptDirectory}makePDF $tempDirectory ${texFile}$psvn 1&2 Error is: $!", "" , ""); open(INPUT, "$tempDirectory${texFile}$psvn.pdf") || wwerror("$0", "Can't open $tempDirectory${texFile}$psvn.pdf: $!\n","" ,"");
print "Content-disposition: attachment; filename= \"${login_name_for_psv n}_Set${setNumber}.pdf"\n"; print "Content-type: application/pdf\n\n" ; while () { print; } close INPUT; print STDERR "Finished TeX $texFile for $login_name_for_psvn in $Course\n" if $debugON;
} ------------------
<| Post or View Comments |>
|