Redmine plugin: uninitialized constant I18n

We just installed Redmine Charts ( http://github.com/mszczytowski/redmine_charts/tree/master ) and its associated OpenFlashChart plugin, but when we start the Ruby server we get the error below. Our steps were as follows:

  • Download tar file for diagrams
  • Revert to file $ REDMINE_ROOT / plugins
  • $ REDMINE_ROOT / script / plugin install http://svn.pullmonkey.com/plugins/trunk/open_flash_chart/
  • Try to start the server

    => Downloading WEBrick ... / usr / lib 64 / ruby ​​/ gems / 1.8 / gems / activesupport-2.1.2 / lib / active_support / dependencies.rb: 276: in load_missing_constant': uninitialized constant Redmine::I18n (NameError) from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:468:in

    const_missing 'from / usr / local / apps / redmine - 0.8 / vendor / plugins / mszczytowski-redmine_charts-e3c5010466d7585d987bc1018e94daee90906a5d / lib / redmine_charts / line_data_converter.rb: 4 from / usr / lib / ruby ​​/ site_ruby / 1.8 / rubygems / custom_requirer: gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in

    64 /ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in

    new_constants_in 'from / usr / lib 64 / ruby ​​/ gems / 1.8 / gems / activesupport-2.1.2 / lib /active_support/dependencies.rb:510:in require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:102:in

    require_or_load '... 27 levels ... from / usr / lib 64 / ruby ​​/ gems / 1.8 / gems / rails-2.1.2 / lib / commands / server.rb: 39 from / usr / lib / ruby ​​/ site_ruby / 1.8 / rubygems / custom_require.rb: 31: ingem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in

    require 'from script / server: 3

0


a source to share


2 answers


Redmine I18n

is the latest addition for multiple languages. It is only available in the trunk version of Redmine, Redmine versions 0.8.x use the old GLoc

plugin.

You have several options to fix this:

  • Upgrade trunk to Redmine version
  • Ask the developer to make the plugin compatible with the released version of Redmine (I personally do this for my Redmine plugins)
  • Or try to fix the errors yourself I18n



To fix the errors, you will need to go through the code and replace all mentions I18n

with GLoc

, and then create an older version of the translations in the plugin directory lang/

.

Eric Davis

+1


a source


Looking at the source of redmine_charts it requires Redmine :: I18n - there are multiple instances of "include Redmine :: I18n".

See also http://www.redmine.org/news/22 for more information on Rails, Redmine, and I18n.



It looks like you may be having versioning issues (Rails and Redmine).

+1


a source







All Articles