Closed Roomer closed 14 years ago
Can you give mi full backtrace of log? I need file name and line number where this error ocure.
Thanks for your response.
rake with --trace:
-----snip-----
rake aborted!
can't convert Hash into String
/var/www/redmine/vendor/plugins/gloc-1.1.0/lib/gloc.rb:190:in `iconv'
/var/www/redmine/vendor/plugins/gloc-1.1.0/lib/gloc.rb:190:in `load_localized_strings'
/var/www/redmine/vendor/plugins/gloc-1.1.0/lib/gloc.rb:189:in `each'
/var/www/redmine/vendor/plugins/gloc-1.1.0/lib/gloc.rb:189:in `load_localized_strings'
/var/www/redmine/vendor/plugins/gloc-1.1.0/lib/gloc.rb:188:in `open'
/var/www/redmine/vendor/plugins/gloc-1.1.0/lib/gloc.rb:188:in `load_localized_strings'
/var/www/redmine/vendor/plugins/gloc-1.1.0/lib/gloc.rb:175:in `each'
/var/www/redmine/vendor/plugins/gloc-1.1.0/lib/gloc.rb:175:in `load_localized_strings'
/var/www/redmine/config/initializers/30-redmine.rb:4
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'
/var/www/redmine/vendor/rails/railties/lib/initializer.rb:484:in `load_application_initializers'
/var/www/redmine/vendor/rails/railties/lib/initializer.rb:483:in `each'
/var/www/redmine/vendor/rails/railties/lib/initializer.rb:483:in `load_application_initializers'
/var/www/redmine/vendor/rails/railties/lib/initializer.rb:149:in `process'
/var/www/redmine/vendor/rails/railties/lib/initializer.rb:97:in `send'
/var/www/redmine/vendor/rails/railties/lib/initializer.rb:97:in `run'
/var/www/redmine/config/environment.rb:20
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
/var/www/redmine/vendor/rails/railties/lib/tasks/misc.rake:3
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/var/lib/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
(in /var/www/redmine)
\ Invoke db:migrate_plugins (first_time)
\ Invoke environment (first_time)
\ Execute environment
-----snip-----
I hope this is what you need. I can not find any logfile for rake.
It doesn't look like bug from my plugin but I can help you find this bug. On this site (http://software-project.pl/en/contact) you can find my email. Send me an email with attached files: /var/www/redmine/config/initializers/30-redmine.rb /var/www/redmine/config/environment.rb /var/www/redmine/vendor/plugins/gloc-1.1.0/lib/gloc.rb
Hi
I will try to deactivate other plugins by removing them from vendor/plugins und run the rake mirgrate_plugins again. Then i hope i can figure out, step by step which plugin causes the problem. Dont want to stress you with problems you are not responsible for ;o)
Thanks for your offer. If i cant do anything i will contact you again.
Have a nice weekend, i have to help my girlfriend moving to another city, which will be less fun... ;o)
I solved the Problem.
Figured out that the gloc plugin was too old ( it was version 1.1.0 and i guess the plugin was shiped with redmine 0.8.7)
Updated the plugin to 1.2.0, then the rake command ran successfully.
Now i have another problem. Need to make a new thread, sorry ;o)
Hi
I wanted to try your plugin. I followed the instructions in the readme. But i get this "can't convert Hash into String" error when i try to: rake db:migrate_plugins RAILS_ENV="production" I am running 0.8.7 stable. I dont now much about Ruby, but if you tell me what else you need to know, i try to provide the information.