Project

General

Profile

[Graphs plugin] Error Help

Added by ttte kito over 14 years ago

Hi,all

i install plugin Graphs at git://github.com/kolewu/redmine-graphs-plugin.git

i met error below

any idea how to fix this?

Processing GraphsController#target_version_graph (for 127.0.0.1 at 2009-07-26 11:47:20) [GET]
  Session ID: 51822073b70ef4bc6f521cd391ee33a1
  Parameters: {"action"=>"target_version_graph", "id"=>"3", "controller"=>"graphs"}

NameError (undefined local variable or method `transitive' for <UNDEFINED> ... </>:REXML::Document):
    c:/ruby/lib/ruby/1.8/rexml/document.rb:186:in `write'
    /lib/SVG/Graph/Graph.rb:211:in `burn'
    /vendor/plugins/redmine-graphs-plugin/app/controllers/graphs_controller.rb:258:in `target_version_graph'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `perform_action_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
    /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
    /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
    /vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
    /vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in`process'
    /vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:76:in `process'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `synchronize'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `process'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:159:in `process_client'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in `each'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in `process_client'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `initialize'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `new'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `initialize'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `new'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:282:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in `each'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:128:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/command.rb:212:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:281
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'

    /vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'

    /vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'

    /vendor/rails/railties/lib/commands/servers/mongrel.rb:64
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
    /vendor/rails/railties/lib/commands/server.rb:39
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    script/server:3

Rendering D:/redmine-0.8.4/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
k/lib/action_controller/templates/rescues/layout.erb (internal_server_error)


Replies (3)

RE: [Graphs plugin] Error Help - Added by Mischa The Evil over 14 years ago

ttte kito wrote:

Hi,all

i install plugin Graphs at git://github.com/kolewu/redmine-graphs-plugin.git

i met error below

any idea how to fix this?

[...]

This looks suspiciously a lot to the famous bug in the REXML version delivered with Ruby 1.8.6 IIRC instead of a defect in the Graphs plugin.
See the FAQ and the following two external resources (of which the last has the solution for it like reflected on the FAQ):

Kind regards,

Mischa.

RE: [Graphs plugin] Error Help - Added by ttte kito over 14 years ago

thanks Mischa

resolv NameError,but new error below

Processing WelcomeController#index (for 127.0.0.1 at 2009-07-27 01:40:53) [GET]
  Session ID: c17eb2bb4e8f59d58a8c93f9e03c2ce0
  Parameters: {"action"=>"index", "controller"=>"welcome"}
Rendering template within layouts/base
Rendering welcome/index
Completed in 0.17500 (5 reqs/sec) | Rendering: 0.11400 (65%) | DB: 0.00600 (3%)| 200 OK [http://localhost/]

Processing ProjectsController#index (for 127.0.0.1 at 2009-07-27 01:40:55) [GET]

  Session ID: c17eb2bb4e8f59d58a8c93f9e03c2ce0
  Parameters: {"action"=>"index", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/index
Completed in 0.02800 (35 reqs/sec) | Rendering: 0.01700 (60%) | DB: 0.00600 (21%) | 200 OK [http://localhost/projects]
host/projects]

Processing ProjectsController#show (for 127.0.0.1 at 2009-07-27 01:40:56) [GET]
  Session ID: c17eb2bb4e8f59d58a8c93f9e03c2ce0
  Parameters: {"action"=>"show", "id"=>"demo", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/show
Completed in 0.21600 (4 reqs/sec) | Rendering: 0.06300 (29%) | DB: 0.01800 (8%)
| 200 OK [http://localhost/projects/show/demo]w/demo]

Processing IssuesController#index (for 127.0.0.1 at 2009-07-27 01:40:59) [GET]
  Session ID: c17eb2bb4e8f59d58a8c93f9e03c2ce0
  Parameters: {"project_id"=>"demo", "action"=>"index", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/index.rhtml
Completed in 0.42600 (2 reqs/sec) | Rendering: 0.27600 (64%) | DB: 0.03300 (7%)
| 200 OK [http://localhost/projects/demo/issues]issues]

Processing GraphsController#old_issues (for 127.0.0.1 at 2009-07-27 01:41:02) [GET]
  Session ID: c17eb2bb4e8f59d58a8c93f9e03c2ce0
  Parameters: {"project_id"=>"demo", "action"=>"old_issues", "controller"=>"graphs"}
Rendering template within layouts/base
Rendering graphs/old_issues
Completed in 0.06700 (14 reqs/sec) | Rendering: 0.04800 (71%) | DB: 0.00900 (13%) | 200 OK [http://localhost/projects/demo/issues/old]

Processing GraphsController#issue_age_graph (for 127.0.0.1 at 2009-07-27 01:41:02) [GET]
  Session ID: c17eb2bb4e8f59d58a8c93f9e03c2ce0
  Parameters: {"project_id"=>"1", "action"=>"issue_age_graph", "controller"=>"graphs"}
Sending data
Completed in 0.18300 (5 reqs/sec) | Rendering: 0.00000 (0%) | DB: 0.00600 (3%) |
 200 OK [http://localhost/graphs/issue_age_graph?project_id=1]

Processing ApplicationController#index (for 127.0.0.1 at 2009-07-27 01:41:02) [GET]
  Session ID: c17eb2bb4e8f59d58a8c93f9e03c2ce0
  Parameters: {}

ActionController::RoutingError (No route matches "/plugin_assets/redmine_graphs/stylesheets/issue_age.css" with {:method=>:get}):
    /vendor/rails/actionpack/lib/action_controller/routing/recognition_optimisation.rb:67:in `recognize_path'
    /vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:385:in `recognize'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:148:in `handle_request'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:76:in `process'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `synchronize'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `process'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:159:in `process_client'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in `each'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in `process_client'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `initialize'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `new'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `initialize'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `new'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:282:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in `each'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:128:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/command.rb:212:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:281
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'

    /vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'

    /vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'

    /vendor/rails/railties/lib/commands/servers/mongrel.rb:64
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
    /vendor/rails/railties/lib/commands/server.rb:39
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    script/server:3

Rendering D:/redmine-0.8.4/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb (not_found)

RE: [Graphs plugin] Error Help - Added by Mischa The Evil over 14 years ago

ttte kito wrote:

thanks Mischa

resolv NameError,but new error below

ActionController::RoutingError (No route matches "/plugin_assets/redmine_graphs/stylesheets/issue_age.css" with {:method=>:get}):
[...]

For that one see http://www.redmine.org/boards/3/topics/4510#message-6160. You are probably running your Redmine instance on a sub-URI instead of a (v)host root.

HTH...

    (1-3/3)