This project is archived and is in readonly mode.

#1407 ✓resolved

Console --sandbox 2.1.2 not fixed?

Reported by MarcD | November 18th, 2008 @ 08:55 PM | in 2.x

Even though it seems there is a patch for this in rails 2.1.2, I am still getting this error. Any ideas why? Maybe this ticket should be reopened? I have a clean install of rails 2.1.2, mysql-2.7. I should not be getting this error.

Loading development environment in sandbox (Rails 2.1.2) Any modifications you make will be rolled back on exit /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/console_sandbox.rb:2:NoMethodError: undefined method increment_open_transactions' for #<ActiveRecord::ConnectionAdapters::MysqlAdapter:0xb6e89fe8>

If I revert the diff back to the way it was in rails 2.1.0 before it was changed, then the warning goes away. Here is the revert of the diff.

+ActiveRecord::Base.send :increment_open_transactions


ActiveRecord::Base.connection.begin_db_transaction at_exit do

+ActiveRecord::Base.send :decrement_open_transactions


Not sure if this is related to the above errors, but I am also getting errors in the console for what it seems to be is transactions. If it is not related, then disregard the below errors.

This is with using the facebooker plugin and registering templates with facebook.

I am getting the same errors for changes before the diff, and after the diff.

ArgumentError: wrong number of arguments (0 for 1)

from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/timestamp.rb:33:in `changed?'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/timestamp.rb:33:in `update'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/base.rb:2483:in `create_or_update_without_callbacks'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/callbacks.rb:207:in `create_or_update'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/base.rb:2217:in `save_without_validation!'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/validations.rb:921:in `save_without_dirty!'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/dirty.rb:83:in `save_without_transactions!'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in `save!'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:79:in `transaction'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:98:in `transaction'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in `save!'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:118:in `rollback_active_record_state!'
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in `save!'
from /home/marc/rails_projects/fb_app/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:116:in `register'
from /home/marc/rails_projects/fb_app/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:423:in `method_missing'
from (irb):4>>

Comments and changes to this ticket

  • Frederick Cheung

    Frederick Cheung December 14th, 2008 @ 05:45 PM

    • State changed from “new” to “resolved”

    This was indeed fixed here, but that commit was on the 24th october and 2.1.2 was released on the 23rd :-) So the fix will be in 2.1.3 but for now you'll just have to either apply that patch yourself or do without

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket