EgbertW / redmine_planning

Redmine plugin that makes it easier to create a project planning
GNU General Public License v3.0
43 stars 29 forks source link

500 Internal Server Error with redmine 2.4.2 #11

Closed tmadelaine closed 10 years ago

tmadelaine commented 10 years ago

I tried installing your plugin and got an error for the whole site :-(

I have 3 installed plugins : Migrating redmine_agile (Redmine Agile plugin (Light version))... Migrating redmine_dashboard (Redmine Dashboard plugin)... Migrating redmine_issue_checklist (Redmine Issue Checklist plugin)...

Started GET "/redmine/admin/plugins" for 11.57.18.107 at 2014-05-28 16:22:01 +0000
Processing by AdminController#plugins as HTML
  Current user: Thibaut (id=3)
  Rendered admin/plugins.html.erb within layouts/admin (1.5ms)
  Rendered admin/_menu.html.erb (3.2ms)
  Rendered layouts/base.html.erb (7.2ms)
Missing template, responding with 404
  Rendered common/error.html.erb within layouts/base (0.1ms)
Completed 500 Internal Server Error in 19.6ms

ActionView::Template::Error (Missing partial hooks/planning_scripts with {:locale=>[:fr, :en], :formats=>[:html], :handlers=>[:erb, :builder, :rsb, :haml]}. Searched in:
  * "/usr/share/redmine/plugins/redmine_issue_checklist/app/views"
  * "/usr/share/redmine/plugins/redmine_dashboard/app/views"
  * "/usr/share/redmine/plugins/redmine_agile/app/views"
  * "/usr/share/redmine/app/views"
):
    11: <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
    12: <%= javascript_heads %>
    13: <%= heads_for_theme %>
    14: <%= call_hook :view_layouts_base_html_head %>
    15: 
    16: <%= yield :header_tags -%>
    17: 
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:158:in `call_hook'
  app/views/layouts/base.html.erb:14:in `_app_views_layouts_base_html_erb__888759944_106260360'
  app/controllers/application_controller.rb:429:in `block (2 levels) in render_error'
  app/controllers/application_controller.rb:427:in `render_error'
  app/controllers/application_controller.rb:415:in `render_404'
  app/controllers/application_controller.rb:439:in `missing_template'
EgbertW commented 10 years ago

Sorry to hear that it doesn't work for you. Thanks for the report.

The error confuses me, it seems to indicate that it is missing a template file that is in the repository. Can you check if the file

/usr/share/redmine/plugins/redmine_issue_checklist/app/views/hooks/_planning_scripts.html.erb

exists on the machine hosting your Redmine?

Can you also tell me which version of Redmine you are running?

Thanks for helping me resolve this issue for you.

tmadelaine commented 10 years ago

I don't have a hooks folder:

root@redmine:~# ls /usr/share/redmine/plugins/redmine_issue_checklist/app/views/
issue_checklists  issues  settings

I have a hooks folder in:

 root@redmine:~# ls /usr/share/redmine/plugins/redmine_issue_checklist/lib/redmine_issue_checklist/hooks
model_issue_hook.rb  views_issues_hook.rb

But shouldn't I be looking in /usr/share/redmine/plugins/redmine_planning/app/views/?

Environment:
  Redmine version                2.4.2.stable
  Ruby version                   1.9.3-p194 (2012-04-20) [i486-linux]
  Rails version                  3.2.6
  Environment                    production
  Database adapter               PostgreSQL
SCM:
  Mercurial                      2.2.2
  Git                            1.7.10.4
  Filesystem                     
Redmine plugins:
  redmine_agile                  1.3.1
  redmine_dashboard              2.2.2-2
  redmine_issue_checklist        2.0.5
  redmine_loader                 0.3b
EgbertW commented 10 years ago

Errr, you are right, I didn't read carefully enough. Something weird going on there.

I assume you have the following plugin installed:

http://redminecrm.com/projects/checklist/pages/1

I'll try to install it and see if it conflicts with redmine_planning. Thanks for the details.

EgbertW commented 10 years ago

Hmm, I installed all four plugins (redmine_agile, redmine_dashboard, redmine_issue_checklist and redmine_loader), however, I'm experiencing no problems.

The thing that confuses is me is that your list of plugins does not list redmine_planning at all. It seems as if the plugin is not installed at all.

Do you have the plugins/redmine_planning folder and a file called plugins/redmine_planning/init.rb ?

tmadelaine commented 10 years ago

I was installing the plugin in /usr/share/redmine/plugins/redmine_planning-stable and not /usr/share/redmine/plugins/redmine_planning. That was the cause of the bug. Otherwise, when I use passenger + apache, it seems the /var/www/redmine/plugin_assets/ folder is not created. I have to create a link to /var/cache/redmine/default/plugin_assets/:

root@redmine:/var/www/redmine/plugin_assets# ln -s /var/cache/redmine/default/plugin_assets/redmine_planning/ .

Thank you for your help, I'll now check how to plan my evolutions :-)

EgbertW commented 10 years ago

Good to hear and thanks for posting your solution, maybe it will help others in the future.