## WeBWorK Main Forum

### can't generate hardcopy for set

by Ever Barbero -
Number of replies: 4

In Webwork 15, after taking a quiz, I can "act as" a student, say "username", click on the quiz, and I can see the quiz and his answers.

But, when I try to generate a hardcopy, I get this error ...

Can't generate hardcopy for set ''username!Exam_2-3,v4!4' for user 'nab0030' -- set is not assigned to that user.

but "username" has this gateway/quiz assigned and completed!

In fact, I am requesting the hardcopy from a page where I am looking at the "username's" exam!

Another detail is that when I do this in Webwork 12 (another server), clicking on "Print Test" automatically selects the quiz to be printed, but Webwok 15 doesn't. I have to manually select on the quiz I want.

It was working initially this semester. The only change I made is to add these 2 lines to the course conf file:

# timeout

$sessionKeyTimeout=7800; and the same in the conf file on the server. Any ideas? In reply to Ever Barbero ### Re: can't generate hardcopy for set by Danny Glin - Hardcopy generation for quizzes works fine on my WW2.14 installation. Have you tried generating a hardcopy for a homework set? That would indicate whether the problem is specific to Gateway Quizzes. The other thing I notice is that in the error message, it lists the set name as 'username!Exam_2-3,v4!4'. When I try to generate a hardcopy for a student who hasn't taken the quiz, my error message just shows the set name as 'quizname,v1'. It's possible that it is looking for a set with that longer name, which is why it is failing. In reply to Danny Glin ### Re: can't generate hardcopy for set by Ever Barbero - It generates Homework sets fine. I am sure that "username" took the quiz. The length was no issue 4 weeks ago when I generated a PDF for the same student "username!Exam_1-1,v1!1", Now is "username!Exam_2-3,v4!4", not much difference. I posted more pictures with explanation in http://forum.cadec-online.com/viewtopic.php?f=9&t=100 In reply to Ever Barbero ### Re: can't generate hardcopy for set by Ever Barbero - I fixed the problem by deleting these lines: # timeout$sessionKeyTimeout=7800;

that I had added at the end of the file course.conf for this course.
BUT WHY?
I have those same lines in course.conf in another server using Webwork 12, Ubuntu 16.4, and everything works well.
I did the change on both servers the same day! in the same way!