Project

General

Profile

redmine_graphs could not support the 1.4.X

Added by Steven Wong over 12 years ago

redmine_graphs could not support the 1.4.X

anyone could modify it? Thanks.

https://github.com/bradbeattie/redmine-graphs-plugin

the error information is :
ActionController::RoutingError in Issues#index

Showing app/views/issues/_sidebar.html.erb where line #6 raised:

No route matches {:project_id=>#<Project id: 1, name: "demoproject", description: "<h1>one</h1>\r\n<h2>onetow</h2>\r\n<h3 style=\"color:blu...", homepage: "", is_public: true, parent_id: nil, created_on: "2012-04-18 22:24:23", updated_on: "2012-04-19 13:55:19", identifier: "demoproject", status: 1, lft: 1, rgt: 2>, :action=>"old_issues", :controller=>"graphs"}

Extracted source (around line #6):

3: <% if Herve Harster >
4: <
= link_to l(:field_summary), :controller => 'reports', :action => 'issue_report', :id => Herve Harster ><br />
5: <
end >
6: <
= call_hook(:view_issues_sidebar_issues_bottom) >
7:
8: <
if User.current.allowed_to?(:view_calendar, Herve Harster, :global => true) >
9: <
= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => Herve Harster) %><br />

Trace of template inclusion: app/views/issues/index.html.erb


Replies (5)

RE: redmine_graphs could not support the 1.4.X - Added by Alex A over 12 years ago

U can edit config/routes.rb file of this plugin like

ActionController::Routing::Routes.draw do |map|
     map.connect 'projects/:project_id/issues', :controller => 'graphs', :action => 'old_issues'
end

or something that will work.

RE: redmine_graphs could not support the 1.4.X - Added by Steven Wong over 12 years ago

Hi, Alex A
I tried the routes.rb file and it seems works. but unfortunately, the graph can not display again but the page is OK.

I used the redmine 1.3 and it's OK. Is there anything I've missed?

RE: redmine_graphs could not support the 1.4.X - Added by Steven Wong over 12 years ago

by the way ,I used the routes.rb file with this

======================================

ActionController::Routing::Routes.draw do |map|

  map.connect 'projects/:project_id/issues/old', :controller => 'graphs', :action => 'old_issues'
  map.connect 'issues/old', :controller => 'graphs', :action => 'old_issues'
  map.connect 'projects/:project_id/issues/growth', :controller => 'graphs', :action => 'issue_growth'
  map.connect 'projects/:project_id/issues/growth', :controller => 'graphs', :action => 'issue_growth_graph'  
  map.connect 'projects/:project_id/issues/growth', :controller => 'graphs', :action => 'issue_age_graph'    
  map.connect 'issues/growth', :controller => 'graphs', :action => 'issue_growth'

end
======================================

RE: redmine_graphs could not support the 1.4.X - Added by David Frank over 12 years ago

I use another graphs plugin which is a fork of the one above and after resolving the routes issue I came across another issue and eventually gave up:

The used graphics library (which is included in the Redmine distribution)

/lib/SVG/Graph/TimeSeries.rb

contains two calls to ParseDate.parsedate() , a library which seems no longer to be supported/contained in ruby 1.9.

RE: redmine_graphs could not support the 1.4.X - Added by Carlos Puga over 12 years ago

http://rubygems.org/gems/svg-graph has an updated version of the graphics library that corrects the Parsedate issue (detects the ruby version and uses differents methods for each).

You can try to get redmine use that gem or, like me, simply copy the gem code to /lb/SVG.

Now the "Open aging issues" graph works but "Total issues over time" has another ruby 1.9 incompatibility, this time in the plugin code... work in progress.

    (1-5/5)