New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred while loading the routes definition of redmine_git_hosting plugin #326

Closed
ymolinet opened this Issue Jan 17, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@ymolinet

ymolinet commented Jan 17, 2015

I'm just update my redmine by using git repository.
I'm update the plugin as mentionned in the how to.
I'm install ruby 2 on my debian.

  1. bundle install give an error because plugin and redmine have a common dependency (redcarpet).
    Redmine require 3.1.2 and the plugin require 2.3.0.
    Just update the Gemfile ?
  2. when i run
    RAILS_ENV=production NAME=redmine_git_hosting rake redmine:plugins:migrate
    I receive
/var/www/clients/client1/web6/web/plugins/redmine_git_hosting/lib/tasks/selinux.rake:52: warning: class variable access from toplevel
/var/www/clients/client1/web6/web/plugins/redmine_git_hosting/lib/tasks/selinux.rake:283: warning: class variable access from toplevel
/var/www/clients/client1/web6/web/plugins/redmine_git_hosting/lib/tasks/selinux.rake:284: warning: class variable access from toplevel
/var/www/clients/client1/web6/web/plugins/redmine_git_hosting/lib/tasks/selinux.rake:285: warning: class variable access from toplevel
An error occurred while loading the routes definition of redmine_git_hosting plugin (/var/www/clients/client1/web6/web/plugins/redmine_git_hosting/config/routes.rb): You should not use the `match` method in your router without specifying an HTTP method.
If you want to expose your action to both GET and POST, add `via: [:get, :post]` option.
If you want to expose your action to GET, use `get` in the router:
  Instead of: match "controller#action"
  Do: get "controller#action".

@n-rodriguez n-rodriguez added the bug label Jan 21, 2015

@n-rodriguez

This comment has been minimized.

Show comment
Hide comment
@n-rodriguez

n-rodriguez Jan 21, 2015

Member

Redmine require 3.1.2 and the plugin require 2.3.0.

mmm... Which version of Redmine are you running? Because as far as I know Redmine 2.6 still uses Redcarpet 2.3 (http://www.redmine.org/projects/redmine/repository/entry/branches/2.6-stable/Gemfile#L37)

About the route definition it will be fixed for the next versions (v0.7.10 and v1.0)

Member

n-rodriguez commented Jan 21, 2015

Redmine require 3.1.2 and the plugin require 2.3.0.

mmm... Which version of Redmine are you running? Because as far as I know Redmine 2.6 still uses Redcarpet 2.3 (http://www.redmine.org/projects/redmine/repository/entry/branches/2.6-stable/Gemfile#L37)

About the route definition it will be fixed for the next versions (v0.7.10 and v1.0)

@n-rodriguez

This comment has been minimized.

Show comment
Hide comment
@n-rodriguez

n-rodriguez Jan 21, 2015

Member

The routes definition loading is fixed in commit e8d1d17

Member

n-rodriguez commented Jan 21, 2015

The routes definition loading is fixed in commit e8d1d17

@n-rodriguez n-rodriguez added this to the v0.7.10 milestone Jan 21, 2015

@n-rodriguez n-rodriguez self-assigned this Jan 21, 2015

@ymolinet

This comment has been minimized.

Show comment
Hide comment
@ymolinet

ymolinet commented Jan 22, 2015

@ymolinet

This comment has been minimized.

Show comment
Hide comment
@ymolinet

ymolinet Jan 22, 2015

An error occurred while loading the routes definition of redmine_graphs plugin (/var/www/clients/client1/web6/web/plugins/redmine_graphs/config/routes.rb): You should not use the match method in your router without specifying an HTTP method.
same error:

If you want to expose your action to both GET and POST, add via: [:get, :post] option.
If you want to expose your action to GET, use get in the router:
Instead of: match "controller#action"
Do: get "controller#action".

ymolinet commented Jan 22, 2015

An error occurred while loading the routes definition of redmine_graphs plugin (/var/www/clients/client1/web6/web/plugins/redmine_graphs/config/routes.rb): You should not use the match method in your router without specifying an HTTP method.
same error:

If you want to expose your action to both GET and POST, add via: [:get, :post] option.
If you want to expose your action to GET, use get in the router:
Instead of: match "controller#action"
Do: get "controller#action".

@vanch

This comment has been minimized.

Show comment
Hide comment
@vanch

vanch Aug 1, 2017

Migrated from redmine 2.4.3 to 3.3.4 with 0.7 git_hosting plugin version and this commit helped with the same issue, thx.

The routes definition loading is fixed in commit e8d1d17

vanch commented Aug 1, 2017

Migrated from redmine 2.4.3 to 3.3.4 with 0.7 git_hosting plugin version and this commit helped with the same issue, thx.

The routes definition loading is fixed in commit e8d1d17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment