koppen / redmine_github_hook

Allow your Redmine installation to be notified when changes have been pushed to a Github repository.
http://mentalized.net/journal/2009/08/03/redmine_plugin_github_hook/
MIT License
478 stars 114 forks source link

Fresh install error: uninitialized constant RedmineApp #25

Closed kraenhansen closed 12 years ago

kraenhansen commented 12 years ago

I get this error from a clone of your repo.

Error message: uninitialized constant RedmineApp Exception class: NameError

Backtrace:

#   File    Line    Location
0   /var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb  469 in `load_missing_constant'
1   /var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb  106 in `const_missing'
2   /var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb  118 in `const_missing'
3   /opt/redmine/vendor/plugins/redmine_github_hook/config/routes.rb    1   
4   /var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb  173 in `load_without_new_constant_marking'
5   /var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb  173 in `load'
6   /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb 287 in `load_routes!'
7   /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb 287 in `each'
8   /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb 287 in `load_routes!'
9   /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb 267 in `reload!'
10  /var/lib/gems/1.8/gems/rails-2.3.14/lib/initializer.rb  537 in `initialize_routing'
11  /var/lib/gems/1.8/gems/rails-2.3.14/lib/initializer.rb  188 in `process'
12  /var/lib/gems/1.8/gems/rails-2.3.14/lib/initializer.rb  113 in `send'
13  /var/lib/gems/1.8/gems/rails-2.3.14/lib/initializer.rb  113 in `run'
14  /opt/redmine/config/environment.rb  21  

When I checkout the v1.1.0 tag I get no errors.

I use Redmine 1.4.1.stable.9665 (MySQL)

koppen commented 12 years ago

The master branch is currently for Redmine 2.x. I have updated the README to reflect this. You should be able to use either the redmine_1.x branch or, as you found out, the 1.1.0 release.