[ww-bugs] Bug 4370: Need figure attached to problem

bugzilla-daemon at webwork.maa.org bugzilla-daemon at webwork.maa.org
Tue Oct 22 15:54:26 EDT 2019


http://bugs.webwork.maa.org/show_bug.cgi?id=4370





--- Comment #4 from George Jennings <gjennings at csudh.edu>  2019-10-22 15:54:25 ---
(In reply to comment #0)
> This problem cannot be solved without a picture from the original textbook.
> Without the picture, students will assume it is a wedge shape surmounted by a
> box shape. However, the original problem in Stewart shows that the bottom shape
> is two wedges with a box shape in between.
> 
> I have the 8th edition of Stewart, see problem 3_10_28; it's essentially the
> same. It's the first page in the attachment. The second page is what students
> will assume the pool looks like without a figure attached.
> 
> For the first problem, the solution should be 3/2500. The solution is 3/2275
> according to WeBWorK.
> 
> Thanks!
> 
> Johanna Debrecht
> Red Rocks Community College

Please ignore the comments I made below (Comments #2 and #3); they're
completely wrong!! From the link you sent it's clear that you probably *are*
using a library problem, not a local file in your templates directory.  So why
doesn't the image display?  
The image is created dynamically by the problem.  The problem generates the
dimensions of the pool randomly, so different students should get different
dimensions, then it dynamically creates a figure that displays a pool with the
correct dimensions.  For this to work the problem has to save the graphics file
somewhere on your server, then read the graphics file when it displays the
problem.  The first thing I'd recommend looking for is a is a configuration
error on your server that is preventing it from saving dynamically created
graphics files.  Such an error would affect dynamically created graphics in
many problems, not just the graphics created in this problem. 
On my server dynamically created graphics files are saved in 
 subdirectories in /opt/webwork/webwork2/htdocs/tmp/.  The directory
permissions have to be set so the webserver can read *and write* to that
directory.  If the webserver does not have write permission then no graphics
files will be saved. I'd recommend checking those permissions first.  
The particular location where your server saves graphics files depends on its
configuration; it may be the same as mine but if it's not then probably it is
set in the configuration file webwork2/conf/site.conf (I left out the
/opt/webwork part because that depends on the way your server is set up). Look
below the line that says "# URL and path to htdocs directory" (without the
quotes) to find some clues about where the htdocs go.  
Please ask your webwork administrator to check these things.  If that doesn't
cure the problem please submit a new bug report, including a reference to this
one: bug # 4370.  If you do then I will pass this issue on to someone who has a
deeper knowledge of the inner workings of webwork than I do.

-- 
Configure bugmail: http://bugs.webwork.maa.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the webwork-bugs mailing list