Project

General

Profile

plugin or i18n problems

Added by Jessica Marquez over 13 years ago

Hi everyone!

I have a problem, since 2 months im using redmine, i had no big isues.
yesterday i installed new plugins, at first it was ok, but i saw some words translation were missing, i try to add this words in es.yml and en.yml, then nothing worked anymore.
I uninstall those plugins, but nothing happend.

This is the problem:

C:\Ruby187\Apps\redmine-1.0.1\vendor\plugins>rake bd:migrate_plugins RAILS_ENV=production
(in C:/Ruby187/Apps/redmine-1.0.1)
rake aborted!
syntax error on line 354, col 25: ` permission_add_project: Create project'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
(See full trace by running task with --trace)
------------------------------------------------------------------------------------------------
The complete trace is:

C:\Ruby187\Apps\redmine-1.0.1\vendor\plugins>rake generate_session_store RAILS_ENV=production --trace
(in C:/Ruby187/Apps/redmine-1.0.1)
rake aborted!
syntax error on line 354, col 25: ` permission_add_project: Create project'
C:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load'
C:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load'
C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.3.7/lib/i18n/backend/base.rb:244:in `load_yml'
C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.3.7/lib/i18n/backend/base.rb:231:in `send'
C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.3.7/lib/i18n/backend/base.rb:231:in `load_file'
C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.3.7/lib/i18n/backend/base.rb:18:in `load_translations'
C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.3.7/lib/i18n/backend/base.rb:18:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.3.7/lib/i18n/backend/base.rb:18:in `load_translations'
C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.3.7/lib/i18n/backend/base.rb:98:in `init_translations'
C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.3.7/lib/i18n/backend/base.rb:84:in `available_locales'
C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.3.7/lib/i18n.rb:54:in `available_locales'
C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.3.7/lib/i18n.rb:118:in `available_locales'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/template.rb:226:in `valid_locale?'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/template.rb:243:in `parse_extensions'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/template.rb:233:in `split'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/template.rb:118:in `initialize'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/template.rb:92:in `new'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/template.rb:92:in `create_template'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/template.rb:87:in `templates_in_path'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/template.rb:86:in `each'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/template.rb:86:in `templates_in_path'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/template.rb:69:in `load!'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in `to_proc'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/paths.rb:40:in `each'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/actionpack/lib/action_view/paths.rb:40:in `load!'
C:/Ruby187/Apps/redmine-1.0.1/config/../vendor/rails/railties/lib/initializer.rb:402:in `load_view_paths'
C:/Ruby187/Apps/redmine-1.0.1/config/../vendor/rails/railties/lib/initializer.rb:194:in `process'
C:/Ruby187/Apps/redmine-1.0.1/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
C:/Ruby187/Apps/redmine-1.0.1/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
C:/Ruby187/Apps/redmine-1.0.1/config/environment.rb:20
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in require'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
C:/Ruby187/Apps/redmine-1.0.1/vendor/plugins/redmine_reminder/lib/tasks/reminder_all.rake:29
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in `load'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in `load'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/railties/lib/tasks/rails.rb:8
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/railties/lib/tasks/rails.rb:8:in `each'
C:/Ruby187/Apps/redmine-1.0.1/vendor/rails/railties/lib/tasks/rails.rb:8
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
C:/Ruby187/Apps/redmine-1.0.1/Rakefile:10
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Ruby187/bin/rake:19:in `load'
C:/Ruby187/bin/rake:19
------------------------------------------------------------------------
computer info:
  • LOCAL GEMS ***
    abstract (1.0.0)
    actionmailer (3.0.0, 2.3.5)
    actionpack (3.0.0, 2.3.5)
    activemodel (3.0.0)
    activerecord (3.0.0, 2.3.5)
    activeresource (3.0.0, 2.3.5)
    activesupport (3.0.0, 2.3.5)
    arel (1.0.1)
    builder (2.1.2)
    bundler (1.0.0)
    cgi_multipart_eof_fix (2.5.0)
    erubis (2.6.6)
    gem_plugin (0.2.3)
    holidays (0.9.3)
    i18n (0.3.7)
    icalendar (1.1.5)
    mail (2.2.6.1)
    mime-types (1.16)
    mongrel (1.1.5 x86-mingw32)
    mongrel_service (0.3.4 i386-mswin32)
    mysql (2.8.1 x86-mingw32)
    polyglot (0.3.1)
    prawn (0.8.4)
    prawn-core (0.8.4)
    prawn-format (0.2.3)
    prawn-layout (0.8.4)
    prawn-security (0.8.4)
    rack (1.2.1, 1.0.1)
    rack-mount (0.6.13)
    rack-test (0.5.4)
    rails (3.0.0, 2.3.5)
    railties (3.0.0)
    rake (0.8.7)
    subexec (0.0.4)
    thor (0.14.1)
    treetop (1.4.8)
    tzinfo (0.3.23)
    win32-service (0.5.2 mswin32)
    --------------------------------------------
    RubyGems Environment:
    - RUBYGEMS VERSION: 1.3.7
    - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
    - INSTALLATION DIRECTORY: C:/Ruby187/lib/ruby/gems/1.8
    --------------------------------------
    The browser show me the following message

Error 101 (net::ERR_CONNECTION_RESET): Unknown error.
---------------------------------------------------------------
Also i run the following command and maybe is related with the previous error.

C:\Ruby187\Apps\redmine-1.0.1\vendor>rails RAILS_ENV=production script/about
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': Ru
byGem version error: i18n(0.3.7 not ~> 0.4.1) (Gem::LoadError)
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:214:in `activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:249:in `activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `each'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:249:in `activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `each'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:249:in `activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `each'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:1082:in `gem'
from C:/Ruby187/bin/rails:18

I do not know what to do!
I think that is due to i18n.
what need i change ?
Thanks!


Replies (3)

RE: plugin or i18n problems - Added by Holger Just over 13 years ago

There is a syntax error in one of the yml files containing the translations. Revert them back to their original state and everything should work again.

Plugins can have their own translations. Contact the plugin maintainer for that.

RE: plugin or i18n problems - Added by Jessica Marquez over 13 years ago

hello,

Thank you very much, Holger, you have right the big problem was some .yml file. How i don´t know which one was, i deleted all files in that folder and now redmine is running again, without the labels, but now Im sure that is not one plugin.

Thank you very much
Bye

RE: plugin or i18n problems - Added by Steven Wong about 12 years ago

I have the same problem....

any solution?

    (1-3/3)