Closed frconil closed 9 years ago
The first error is happening because settings['display_columns'] is nil. This should be defined when the plugin is initially installed. If you configured no rows to be displayed that would also cause the error.
To resolve it just reinstall the plugin to reset 'display_columns' and you should no longer receive it. I need to include a validation that at least one value in that column is present.
I'm not sure why the second error is happening. That path, project_issue_time_entries_path, is native to Redmine.
rake routes
on the failing redmine instance and providing the results? Hi, just a quick update:
By reloading the DB from the prod environment (broken) into dev (working), I managed to reproduce the error. The rake routes, gemfile, codebase etc were 100% identical so it did make sense it was something in the DB.
OK, my last commit will prevent your first error from happening again. Please reopen if your issue isn't resolved. Thanks for reporting your errors!
Hi,
the error is still occurring. I can access the config panel for the plugin after installing v2 of the plugin, but now I get the following error when trying to display an issue:
Processing by IssuesController#show as HTML
Parameters: {"id"=>"17413"}
Current user: admin (id=1)
Rendered issues/_action_menu.html.erb (5.6ms)
Rendered plugins/redmine_contacts/app/views/deals_issues/_show.html.erb (2.5ms)
Rendered plugins/redmine_contacts_helpdesk/app/views/issues/_ticket_data.html.erb (0.1ms)
Rendered attachments/_links.html.erb (10.4ms)
Rendered plugins/redmine_issue_checklist/app/views/issue_checklists/_checklist_item.html.erb (5.7ms)
Rendered plugins/redmine_issue_checklist/app/views/issue_checklists/_checklist_item.html.erb (4.3ms)
Rendered plugins/redmine_issue_checklist/app/views/issue_checklists/_checklist_item.html.erb (15.5ms)
Rendered plugins/redmine_issue_checklist/app/views/issue_checklists/_checklist_item.html.erb (5.2ms)
Rendered plugins/redmine_issue_checklist/app/views/issue_checklists/_checklist_item.html.erb (4.4ms)
Rendered plugins/redmine_issue_checklist/app/views/issue_checklists/_checklist_item.html.erb (4.4ms)
Rendered plugins/redmine_issue_checklist/app/views/issue_checklists/_checklist_item.html.erb (4.5ms)
Rendered plugins/redmine_issue_checklist/app/views/issue_checklists/_checklist_item.html.erb (4.5ms)
Rendered plugins/redmine_issue_checklist/app/views/issues/_checklist.html.erb (55.5ms)
Rendered plugins/redmine_spent_time_in_issue_description/app/views/issues/_time_spent_report.html.erb (4.8ms)
Rendered plugins/redmine_spent_time_in_issue_description/app/views/issues/show.html.erb within layouts/base (133.2ms)
Completed 500 Internal Server Error in 348.5ms
ActionView::Template::Error (undefined method `is_spent_on_shown' on an instance of #<Class:0x78c9c>.):
15: <tbody>
16: <% @issue.time_entries.last( Setting.plugin_redmine_spent_time_in_issue_description['spent_time_max_display'].to_i ).each do |entry| %>
17: <tr>
18: <%= content_tag(:td, entry.spent_on.strftime("%m/%d/%Y") ) if is_spent_on_shown( entry ) %>
19: <%= content_tag(:td, link_to_user( entry.user )) if is_user_shown( entry ) %>
20: <%= content_tag(:td, report_time_spent( entry ) ) if is_report_time_shown( entry ) %>
21: <%= content_tag(:td, entry.comments ) if is_comment_shown( entry ) %>
app/controllers/issues_controller.rb:128:in `show'
app/controllers/issues_controller.rb:125:in `show'
FWIW I ran the rake migrate to uninstall the previous version of the plugin, restarted redmine, copied the newer version and ran the rake task to install it as per http://www.redmine.org/projects/redmine/wiki/Plugins before reporting this error.
HI,
I have to admit this one is puzzling me a bit.
We have two instances of redmine using the same code and relatively similar data in postgresql.
On one instance, we get 500 errors whenever trying to access a page that include the plugin, or even the plugin settings itself!
For instance the settings page:
or a ticket:
I can reproduce the issue every time on one server, no matter which version of the plugin I am using (tried with version 1 and v2 hoping this would fix the issue).
Redmine info as follow:
Any idea what could be causing this? I can't seem to figure out from the error logs alone.