Can't update tracker
Added by Chris Bolton almost 15 years ago
So I just installed a new instance of redmine, and copied over a previous database. Whenever I try to update our tracker, I get taken to an error page saying there was an internal error, contact your admin for assistance, etc.
any ideas?
Replies (11)
RE: Can't update tracker - Added by Chris Bolton almost 15 years ago
the log file in redmine/log is empty =/
RE: Can't update tracker - Added by Chris Bolton almost 15 years ago
started it manually...here's the relevent output.
NoMethodError (undefined method `stringify_keys!' for #<Array:0x000000054c8e50>):
app/models/issue.rb:160:in `attributes_with_tracker_first='
app/controllers/issues_controller.rb:183:in `edit'
<internal:prelude>:8:in `synchronize'
/usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
Rendering /opt/redmine/public/500.html (500 Internal Server Error)
RE: Can't update tracker - Added by Aleksander Pohl almost 15 years ago
Same issue with Redmine r3188 on Ruby 1.9.
RE: Can't update tracker - Added by Aleksander Pohl almost 15 years ago
The problem is directly connected to the way Ruby 1.8 and Ruby 1.9 treats the optional arguments:
With this class defined
class A def test=(a, *b) puts a.inspect puts b.inspect end def test1=(a,*b) self.test = a, *b end end
in Ruby 1.8
a = A.new a.test1 {"a" => "b"} {"a" => "b"} []
but in Ruby 1.9
[{"a" => "b"}] []
RE: Can't update tracker - Added by Chris Bolton almost 15 years ago
ok so I tried updating to the trunk version, and now I get this:
Processing WelcomeController#index (for 75.52.252.207 at 2009-12-22 12:53:38) [GET] Parameters: {"controller"=>"welcome", "action"=>"index"} NoMethodError (undefined method `^' for "5":String): app/controllers/application_controller.rb:62:in `find_current_user' app/controllers/application_controller.rb:56:in `user_setup' <internal:prelude>:8:in `synchronize' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run' /usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread' Rendering /opt/redmine/public/500.html (500 Internal Server Error)
originally I was able to render the home page, but
RE: Can't update tracker - Added by Chris Bolton almost 15 years ago
I got the same error going to a specific project on the site*
RE: Can't update tracker - Added by Aleksander Pohl almost 15 years ago
Here is my patch for the problem with Ruby 1.9 splat implementation.
RE: Can't update tracker - Added by Zachary Crockett almost 15 years ago
This error was preventing me from creating new issues. Patch worked perfectly.
ruby 1.9.1p376 (2009-12-07 revision 26041) [x86_64-linux]
rails 2.3.5
redmine svn trunk r3273