Skip to content
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

The plugin breaks the admin interface on Redmin 2.4 #85

Open
ronlinet opened this issue Feb 19, 2015 · 5 comments
Open

The plugin breaks the admin interface on Redmin 2.4 #85

ronlinet opened this issue Feb 19, 2015 · 5 comments

Comments

@ronlinet
Copy link

Hi guys,

I am running Redmine2.4 installed vie apt-get package on Ubuntu server 14.04. The installation worked as required till I have installed ekanban .

Now I am getting “Page not found” error every time when I try to access the admin interface => http:redmine-server/admin => “Page not found The page you were trying to access doesn't exist or has been removed.”

All other interfaces work as required only the admin interface is broken.

@prmartinuk
Copy link
Contributor

Do you get any more detail in the log files?

@ronlinet
Copy link
Author

Thx for having look at my issue.
I solved the problem by completly removing the plugin with all its dependancy.

Remove the plugin;
rake redmine:plugins:migrate NAME=plugin-name VERSION=0 RAILS_ENV=production

Uninstall dependency:
gem uninstall haml

Clean up the plugin folder:
rm -R /path/to/plugin-name

@prmartinuk
Copy link
Contributor

That definitely narrows it down to a problem with this plugin.

I am not a Ruby/Rails developer so I could be completely wrong but the only way I can the Redmine admin page to give a page not found error (404) is if the routing is missing. The only change to the admin page that the plugin makes is adding a menu item to it and Rails uses the routing to make the URL for the menu item.
Quite why the routing was missing I'm not sure. The only thing I can think was that the config/routes.rb file was missing or corrupted.

@ronlinet
Copy link
Author

Thank you for your contribution prmartinuk .

I have checked the issue queue and I noticed that some users were able to fix similar problem with downgrading haml to 3.1.8. I have downgraded my haml from 4 to 3.1.8 but it didn't fix the issue and the plugin is still knocking out the admin page.

I have checked the logs and your conclusion about the router is correct.
The router file is right in config/routes.rb but I think that the installation process incorrectly override the code. I would welcome if some community member drop a code snipet to hack the config/routes.rb.

The error logs:
App 30874 stderr: ActionController::RoutingError (No route matches {:controller=>"kanban_states", :action=>"setup"}):
App 30874 stderr: lib/redmine/menu_manager.rb:150:in render_single_menu_node' App 30874 stderr: lib/redmine/menu_manager.rb:102:inrender_menu_node'
App 30874 stderr: lib/redmine/menu_manager.rb:91:in block in render_menu' App 30874 stderr: lib/redmine/menu_manager.rb:168:inblock in menu_items_for'
App 30874 stderr: lib/redmine/menu_manager.rb:165:in each' App 30874 stderr: lib/redmine/menu_manager.rb:165:inmenu_items_for'
App 30874 stderr: lib/redmine/menu_manager.rb:90:in render_menu' App 30874 stderr: app/views/admin/_menu.html.erb:2:in_app_views_admin__menu_html_erb___4035781756835632397_36090680'
App 30874 stderr: app/views/admin/index.html.erb:5:in `_app_views_admin_index_html_erb__3659061063313912048_60910980'

@prmartinuk
Copy link
Contributor

Do you have any other plugins installed which have routings, and do they work?
There are a couple of issues in Redmine's issues page (http://www.redmine.org/issues/12590 and http://www.redmine.org/issues/16226) where people are reporting that Redmine is not finding the routes.rb files for the plugins, with one saying it is fixed in Ruby. However, both of these are for Windows rather than Ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants