tkusukawa / kusu

Automatically exported from code.google.com/p/kusu
0 stars 0 forks source link

Internal error #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install worktime from redmine_work_time-0.1.2.tar.gz 
2. Restart redmine
3. Create some issues and then open worktime.

What is the expected output? What do you see instead?
Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine 
administrator for assistance.

What version of the product are you using? On what operating system?
Worktime 0.1.2 on Redmine 1.2.1 hosted on a ubuntu server.

Please provide any additional information below.
This is the trace I have on production.log:

Processing WorkTimeController#show (for 192.168.6.144 at 2011-09-07 15:15:14) 
[GET]
  Parameters: {"month"=>"9", "action"=>"show", "id"=>"idx", "day"=>"7", "year"=>"2011", "controller"=>"work_time", "user"=>"3"}
Rendering template within layouts/base
Rendering work_time/show

ActionView::TemplateError (wrong number of arguments (0 for 1)) on line #60 of 
vendor/plugins/redmine_work_time/app/views/work_time/_user_month_table.html.erb:
57:           </a>
58: <%end%>
59:           <%= link_to(issueHtml, {:controller=>"issues", :action=>"show", 
:id=>issue_id}, :popup=>true) %>
60:           <%= print_issue_cost(issue) %>
61:           <div style="position:absolute;top:15px;right:15px;">
62:             <%=sprintf("%1.1f", issue_pack[:total])%>
63:           </div>

    vendor/plugins/redmine_work_time/app/helpers/work_time_helper.rb:4:in `estimated_hours'
    vendor/plugins/redmine_work_time/app/helpers/work_time_helper.rb:4:in `print_issue_cost'
    vendor/plugins/redmine_work_time/app/views/work_time/_user_month_table.html.erb:60
    vendor/plugins/redmine_work_time/app/views/work_time/_user_month_table.html.erb:40:in `each'
    vendor/plugins/redmine_work_time/app/views/work_time/_user_month_table.html.erb:40
    vendor/plugins/redmine_work_time/app/views/work_time/_user_month_table.html.erb:33:in `each'
    vendor/plugins/redmine_work_time/app/views/work_time/_user_month_table.html.erb:33
    vendor/plugins/redmine_work_time/app/views/work_time/show.html.erb:39
    config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'

Rendering /opt/bitnami/apps/redmine/public/500.html (500 Internal Server Error)

Original issue reported on code.google.com by julius...@gmail.com on 7 Sep 2011 at 3:27

GoogleCodeExporter commented 9 years ago
Update:
Installed r228, if I restart the server I can see the worktime page loaded, but 
if I click on reload I get the error again.

Original comment by julius...@gmail.com on 7 Sep 2011 at 3:42

GoogleCodeExporter commented 9 years ago
Please check the trace on production.log again.

Is it same to above report?

Original comment by T.Kusukawa on 10 Sep 2011 at 11:37

GoogleCodeExporter commented 9 years ago
Yes, it was the same log.
Now it seems intermittent, some days it works all the day and some others the 
first call fails with the same error.
I thought it could come from the data, but once it works I can go and see every 
day without a problem.
Can it be related to other plugins installed?

Thank you for your time.

Original comment by julius...@gmail.com on 12 Sep 2011 at 8:11

GoogleCodeExporter commented 9 years ago
Now I can reproduce it every time. I just need to open redmine backlog plugin, 
once it is opened I get the same error accessing work_time window. To make it 
work again I must restart the server.

Original comment by julius...@gmail.com on 12 Sep 2011 at 8:25

GoogleCodeExporter commented 9 years ago
Thank you very mach for your detailed report.

I installed backlog plugin, but I can not produce this error.

What did you do in backlog plugin, when the error occured?

Original comment by T.Kusukawa on 18 Sep 2011 at 2:22

GoogleCodeExporter commented 9 years ago
Just open the backlog window. 
I have some iterations and histories with tasks there.

Original comment by julius...@gmail.com on 29 Sep 2011 at 8:41