Issue 3 in explainpmt: Stats page giving 500 error under fcgi environment

0 views
Skip to first unread message

codesite...@google.com

unread,
Dec 4, 2007, 12:06:31 AM12/4/07
to explain...@googlegroups.com
Issue 3: Stats page giving 500 error under fcgi environment
http://code.google.com/p/explainpmt/issues/detail?id=3

New issue report by carl.leiby:
What steps will reproduce the problem?
1. run the app in an apache fcgi environment like Dreamhost
2. go to the stats page

What is the expected output? What do you see instead?
Expected output is stats. I'm getting a 500 error

What version of the product are you using? On what operating system?
eXPlainPMT-20070423.0.tar.gz on linux.

Please provide any additional information below.
Basically it's down to this line in your stats controller:
graph.render(:width => 600, :min_value => 0, :to =>
"public/images/#{@project.name}burndown.svg")
It's the last line in the index method. Changing it to:
graph.render(:width => 600, :min_value => 0, :to => File.join(RAILS_ROOT,
"public", "images", "#{@project.name}burndown.svg"))
solves my problem. It seems that in my fcgi environment the directory in
which the app is running isn't necessarily one above public.
Let me know if this doesn't work for you.

Thanks
Carl


Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages