Open BuysTooMuch opened 11 years ago
Started GET "/menu_links/index" for 192.168.50.63 at Mon Sep 09 11:08:48 -0500 2013 Processing by MenuLinksController#index as HTML Current user: XYZ (id=3) Completed 500 Internal Server Error in 5ms
NoMethodError (undefined method <=' for nil:NilClass): lib/plugins/classic_pagination/lib/pagination.rb:220:in
initialize'
I will check it out and see if I can get it worked out. For now you can remove lines 34-36 in app / views / menu_links / index.html.erb. That should fix it.
<% if @menu_links_pages %>
<p class="pagination"><%= pagination_links_full @menu_links_pages, @menu_links_count %></p>
<% end %>
Thank you for the response! Did as you suggested, restarted Redmine, same error. Will wait for further instruction.
I just tested it with Redmine 2.3.2 and I can't reproduce the error. Can you restart Redmine then go to Administration/Menu Links. Then go to your Redmine log and copy the last 50 lines or so and email them to me please.
Thanks, Tide
On Mon, Sep 9, 2013 at 6:53 PM, BuysTooMuch notifications@github.comwrote:
Thank you for the response! Did as you suggested, restarted Redmine, same error. Will wait for further instruction.
— Reply to this email directly or view it on GitHubhttps://github.com/Tide/redmine_menu_links/issues/6#issuecomment-24121488 .
Thanks again. I didn't see a way to email you directly, so...
The last (approximately)_ 50 lines from production.log:
Started GET "/admin" for 192.168.zz.qq at Tue Sep 10 08:22:53 -0500 2013 Processing by AdminController#index as HTML Current user: user_name (id=3) Rendered admin/_menu.html.erb (4.3ms) Rendered admin/index.html.erb within layouts/admin (4.7ms) Rendered layouts/base.html.erb (31.5ms) Completed 200 OK in 40ms (Views: 36.7ms | ActiveRecord: 0.8ms) Started GET "/enumerations" for 192.168.zz.qq at Tue Sep 10 08:22:56 -0500 2013 Processing by EnumerationsController#index as HTML Current user: user_name (id=3) Rendered enumerations/index.html.erb within layouts/admin (199.8ms) Rendered admin/_menu.html.erb (4.2ms) Rendered layouts/base.html.erb (32.1ms) Completed 200 OK in 247ms (Views: 241.5ms | ActiveRecord: 2.8ms) Started GET "/admin" for 192.168.zz.qq at Tue Sep 10 08:22:57 -0500 2013 Processing by AdminController#index as HTML Current user: user_name (id=3) Rendered admin/_menu.html.erb (4.2ms) Rendered admin/index.html.erb within layouts/admin (4.7ms) Rendered layouts/base.html.erb (31.6ms) Completed 200 OK in 41ms (Views: 36.8ms | ActiveRecord: 0.8ms) Started GET "/auth_sources" for 192.168.zz.qq at Tue Sep 10 08:23:00 -0500 2013 Processing by AuthSourcesController#index as HTML Current user: user_name (id=3) Rendered auth_sources/index.html.erb within layouts/admin (1.6ms) Rendered admin/_menu.html.erb (4.2ms) Rendered layouts/base.html.erb (31.2ms) Completed 200 OK in 49ms (Views: 39.9ms | ActiveRecord: 2.0ms) Started GET "/admin" for 192.168.zz.qq at Tue Sep 10 08:23:01 -0500 2013 Processing by AdminController#index as HTML Current user: user_name (id=3) Rendered admin/_menu.html.erb (4.2ms) Rendered admin/index.html.erb within layouts/admin (4.6ms) Rendered layouts/base.html.erb (31.0ms) Completed 200 OK in 40ms (Views: 36.1ms | ActiveRecord: 0.8ms) Started GET "/admin/projects" for 192.168.zz.qq at Tue Sep 10 08:23:02 -0500 2013 Processing by AdminController#projects as HTML Current user: user_name (id=3) Rendered admin/projects.html.erb within layouts/admin (65.4ms) Rendered admin/_menu.html.erb (4.1ms) Rendered layouts/base.html.erb (164.0ms) Completed 200 OK in 246ms (Views: 239.7ms | ActiveRecord: 1.4ms) Started GET "/admin" for 192.168.zz.qq at Tue Sep 10 08:23:03 -0500 2013 Processing by AdminController#index as HTML Current user: user_name (id=3) Rendered admin/_menu.html.erb (4.2ms) Rendered admin/index.html.erb within layouts/admin (4.7ms) Rendered layouts/base.html.erb (31.6ms) Completed 200 OK in 40ms (Views: 36.8ms | ActiveRecord: 0.8ms) Started GET "/menu_links/index" for 192.168.zz.qq at Tue Sep 10 08:23:06 -0500 2013 Processing by MenuLinksController#index as HTML Current user: user_name (id=3) Completed 500 Internal Server Error in 3ms
NoMethodError (undefined method <=' for nil:NilClass): lib/plugins/classic_pagination/lib/pagination.rb:220:in
initialize'
It seems to be an issue with pagination. That is why I suggested removing lines 34-36 in app / views / menu_links / index.html.erb. Do you have the latest version of RedmineMenuLinks? I know I updated the way the plugin deals with pagination so it would work with the newer Redmine versions.
I have run the migration successfully, but the system 500's when I click the Menu Link item under Administration. I am running 2.2.3.stable but am considering upgrading to latest.
Can you tell me if there's an easy fix for this, and/or if it's a version issue and upgrading will fix it? Thanks.