ActionView::TemplateError in Repository
Added by John B over 14 years ago
Hi.
I'm running Redmine 1.0+ and when adding a git repository to a project and then navigating to the Repository page I get the following error:
Processing RepositoriesController#show (for 84.208.145.223 at 2010-08-09 22:12:16) [GET] Parameters: {"action"=>"show", "id"=>"platformer", "controller"=>"repositories"} Rendering template within layouts/base ActionView::TemplateError (undefined method `each' for nil:NilClass) on line #75 of app/views/layouts/base.rhtml: 72: </div> 73: </div> 74: </div> 75: <%= call_hook :view_layouts_base_body_bottom %> 76: </body> 77: </html> lib/redmine/hook.rb:63:in `send' lib/redmine/hook.rb:63:in `call_hook' lib/redmine/hook.rb:63:in `each' lib/redmine/hook.rb:63:in `call_hook' lib/redmine/hook.rb:60:in `call_hook' lib/redmine/hook.rb:144:in `call_hook' app/views/layouts/base.rhtml:75:in `_run_rhtml_app47views47layouts47base46rhtml' app/controllers/application_controller.rb:269 app/controllers/application_controller.rb:266:in `render_error' app/controllers/repositories_controller.rb:215:in `show_error_not_found' app/controllers/repositories_controller.rb:83:in `show' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop' /usr/lib/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously' /usr/lib/phusion_passenger/passenger-spawn-server:61 Rendering /opt/nebuchadnezzar/redmine/public/500.html (500 Internal Server Error)
Any ideas?
Replies (3)
RE: ActionView::TemplateError in Repository - Added by Felix Schäfer over 14 years ago
The call_hook
method typically calls hooks provided by plugins, maybe any of the plugins you have installed is misfiring?
RE: ActionView::TemplateError in Repository - Added by John B over 14 years ago
Thanks for clearing that up, might be the github hook that I installed although it haven't caused trouble until now. Speaking of git and github, any chance that Redmine will support github repositories natively anytime soon? I tried adding the public github URL (read only) to a Redmine project but it did not seem to work.
RE: ActionView::TemplateError in Repository - Added by Felix Schäfer over 14 years ago
No, I didn't mean a repository plugin but a redmine plugin.
Github integration is already somewhat handled by 1 or 2 plugins I think, but you will still need a local clone no matter what. One "quick" way to do it depending on your skill level would be to make your local clone a mirror of the github repo (add github as a --mirror
remote), have a cronjob to pull every 15 minutes or so from github and add a git push github
to the post-receive hook.