看了: project_tree_view插件修改,增加新增加子项目功能
redmine 1.1.3安装project_tree_view的bug修复403 You are not authorized to access this
也遇到类似错误,在浏览端显示错误信息: 403 You are not authorized to access this page
查看redmine 运行日志: $ tail -f apps/redmine/htdocs/log/production.log
log:
Rendering /home/xxxx/redmine-1.4.4-0/apps/redmine/htdocs/public/500.html (500 Internal Server Error)
Processing ProjectsController#show (for xxx.xx.xx7.200 at 2012-11-30 18:09:41) [GET]
Parameters: {"id"=>"ppm", "action"=>"show", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/show
ActionView::TemplateError (No route matches {:project_id=>#对对对\r\n", homepage: "", is_public: true, parent_id: nil, created_on: "2012-11-23 12:18:42", updated_on: "2012-11-23 12:18:42", identifier: "ppm", status: 1, lft: 3, rgt: 8>, :action=>"report", :con troller=>"time_entry_reports"}) on line #126 of vendor/plugins/projects_tree_view/app/views/projects/show. rhtml:
123: <%= l(:label_spent_time) %>
124: <%= l_hours(@total_hours) %>
125: <%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @ project}) %> |
126: <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project _id => @project}) %>
127: <% end %>
128: <% end %>
129:
======================logs end=============================
sovle:
reference ---> 参考上面的解决方法,无果!!! 看来什么都是万能的。一切皆可能!!!
只有靠自己,依据之前解决的redmine问题经验,project_tree_view 对应的 vendor/plugins/projects_tree_view/app/views/projects/show.rhtml 文件,
与redmine默认的显示页面文件:vim apps/redmine/htdocs/app/views/projects/show.html.erb
有类似的功能或效果。
问题解决方法: 将错误的信息提示行的程序块,使用redmine默认显示页面文件代码替代,替代完就可以。
之前提示几次不同错误信息,一样的方法解决。
====================== end ok =============================