Project

General

Profile

Accessing Calendar/Gantt result in Internal error

Added by Thomas Spycher over 14 years ago

Hi, i'm using the latest trunk. If i try to access the Calendar or Gantt module in a Project i'm getting an "Internal error" error (see Screenshot).
If i use the same database with a Bitnami VMware instance everything is working as expected.

Thanks for any help :)


Replies (3)

RE: Accessing Calendar/Gantt result in Internal error - Added by Felix Schäfer over 14 years ago

Please look at the logs and post the corresponding error.

RE: Accessing Calendar/Gantt result in Internal error - Added by Thomas Spycher over 14 years ago

These are the log Messages:

Processing GanttsController#show (for 82.195.224.4 at 2010-09-20 09:26:01) [GET]
  Parameters: {"project_id"=>"fcbliveradio", "action"=>"show", "controller"=>"gantts"}
Rendering template within layouts/base
Rendering gantts/show

ActionView::TemplateError (undefined method `gantt_path' for #<ActionView::Base:0x107c86f60>) on line #3 of app/views/gantts/show.html.erb:
1: <h2><%= l(:label_gantt) %></h2>
2: 
3: <% form_tag(gantt_path(:month => params[:month], :year => params[:year], :months => params[:months]), :method => :put, :id => 'query_form') do %>
4:   <%= hidden_field_tag('project_id', @project.to_param) if @project%>
5: <fieldset id="filters" class="collapsible">
6:   <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>

    app/views/gantts/show.html.erb:3
    app/controllers/gantts_controller.rb:40:in `show'
    app/controllers/gantts_controller.rb:39:in `show'
    passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
    passenger (2.2.15) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
    passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in `safe_fork'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in `start'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:222:in `start'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rails_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in `spawn_rails_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rails_application'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in `spawn_application'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:in `handle_spawn_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /Library/WebServer/Custom/Redmine/public/500.html (500 Internal Server Error)

Processing ProjectsController#show (for 82.195.224.4 at 2010-09-20 09:26:39) [GET]
  Parameters: {"action"=>"show", "id"=>"fcbliveradio", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/show
Completed in 57ms (View: 29, DB: 3) | 200 OK [http://redmine.local.zero-one.ch/projects/fcbliveradio]

Processing CalendarsController#show (for 82.195.224.4 at 2010-09-20 09:26:41) [GET]
  Parameters: {"project_id"=>"fcbliveradio", "action"=>"show", "controller"=>"calendars"}
Rendering template within layouts/base
Rendering calendars/show

ActionView::TemplateError (undefined local variable or method `calendar_path' for #<ActionView::Base:0x107dd8eb8>) on line #3 of app/views/calendars/show.html.erb:
1: <h2><%= l(:label_calendar) %></h2>
2: 
3: <% form_tag(calendar_path, :method => :put, :id => 'query_form') do %>
4:   <%= hidden_field_tag('project_id', @project.to_param) if @project%>
5: <fieldset id="filters" class="collapsible">
6:   <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>

    app/views/calendars/show.html.erb:3
    passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
    passenger (2.2.15) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
    passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in `safe_fork'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in `start'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:222:in `start'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rails_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in `spawn_rails_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rails_application'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in `spawn_application'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:in `handle_spawn_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /Library/WebServer/Custom/Redmine/public/500.html (500 Internal Server Error)

RE: Accessing Calendar/Gantt result in Internal error - Added by Felix Schäfer over 14 years ago

Make sure your config/routes.rb has been updated and you have run all migrations. It might also be that you have updated to trunk between to refactorings. There's a lot of that going on now, so some versions might not be completely stable.

    (1-3/3)