Sidebar Content does not working...
Added by Ki Won Kim almost 12 years ago
I setup redmine 1.4.4 and Sidebar 0.3.0. that’s ok.
I was migrate redmine to 2.1.4 and sidebar content plugin only,
but project overview page(http://localhost:3000/projects/test) does not rendering.
my error messages below
Started GET "/projects/test" for 127.0.0.1 at 2012-12-11 20:37:26 +0900 Processing by ProjectsController#show as HTML Parameters: {"id"=>"test"} Current user: xyz37 (id=3) Rendered projects/_members_box.html.erb (0.0ms) Rendered plugins/sidebar/app/views/sidebar/_project.html.erb (0.0ms) Rendered projects/show.html.erb within layouts/base (62.5ms) Rendered plugins/sidebar/app/views/sidebar/_base.html.erb (78.1ms) Completed 500 Internal Server Error in 266ms ActionView::Template::Error (undefined method `request_uri' for #<ActionDispatch ::Request:0x53f5ea8>): 1: <% if project %> 2: <% sidebar = SidebarContent.find_by_project_id(project.id) %> 3: <% if sidebar && 4: ((sidebar.location == 'only_regexp' && (sidebar.url_regexp.blank? | | request.request_uri =~ Regexp.new(sidebar.url_regexp))) || 5: (sidebar.location == 'except_regexp' && (sidebar.url_regexp.blank? || !(request.request_uri =~ Regexp.new(sidebar.url_regexp))))) %> 6: <%= sidebar_content(sidebar, project) %> 7: <% end %> lib/redmine/hook.rb:111:in `block in render_on' lib/redmine/hook.rb:61:in `block (2 levels) in call_hook' lib/redmine/hook.rb:61:in `each' lib/redmine/hook.rb:61:in `block in call_hook' lib/redmine/hook.rb:58:in `tap' lib/redmine/hook.rb:58:in `call_hook' lib/redmine/hook.rb:158:in `call_hook' app/helpers/application_helper.rb:1190:in `view_layouts_base_sidebar_hook_resp onse' app/views/layouts/base.html.erb:52:in `_app_views_layouts_base_html_erb___4742 25652_43873632' app/controllers/projects_controller.rb:168:in `show'
my environments :
Environment: Redmine version 2.1.4.stable Ruby version 1.9.3 (i386-mingw32) Rails version 3.2.8 Environment production Database adapter Mysql2 Redmine plugins: extended_profile 1.1.0 redmine_add_top_menus 0.0.1 sidebar 0.1.0
Thank you.
Replies (1)
RE: Sidebar Content does not working... - Added by Andriy Lesyuk almost 12 years ago
Try updating from SVN... Weird, did not get such issue under 2.1.0...