I have an almost 100% clean install of CE from the master that works
on Rails 2.3.2. I say almost because I have made a couple of change
to the haml by putting in my own file inside my own apps app/views.
Anyway, when I "join" the website, the request seems to go through and
lands me on the post-signup page without problems. However, if I
navigate back to the home page, the root of CE, I get an error that
Couldn't find User with ID=5
I've had this problem all along, including on users with id 1, 2, 3,
etc. If I kick the app on with script/console, I can do a User.find
(5), and get an actual User back without problems. The problem
persists until I have actually activated the user:
User.find(5).activate
And then everything is fine again. I have no clue why it can't find
the user with ID 5, which clearly exists. The stack trace is below.
Any idea what is going on? I'm not new to Rails (though it has
admittedly been a little while), but this error seems a bit slippery.
Clearly User.find() works, as there would be a whole world of hurt in
most likely every page of the application (not to mention it works
fine from Console), but for some reason on the site_index page (and
that page alone, so far as I can tell), it buggers out.
Thoughts?
regards,
Matt
>>
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
base.rb:1591:in `find_one'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
base.rb:1574:in `find_from_ids'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
base.rb:616:in `find_without_pagination'
/home/mlinnell/web/Nebulae/vendor/plugins/community_engine/plugins/
paginating_find/lib/paginating_find.rb:104:in `find'
/home/mlinnell/web/Nebulae/vendor/plugins/community_engine/app/models/
user.rb:93:in `find'
/home/mlinnell/web/Nebulae/vendor/plugins/community_engine/app/models/
user.rb:166:in `find_by_activity'
/home/mlinnell/web/Nebulae/vendor/plugins/community_engine/app/models/
user.rb:166:in `map'
/home/mlinnell/web/Nebulae/vendor/plugins/community_engine/app/models/
user.rb:166:in `find_by_activity'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
named_scope.rb:186:in `send'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
named_scope.rb:186:in `method_missing'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
base.rb:2148:in `with_scope'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
named_scope.rb:179:in `method_missing'
/home/mlinnell/web/Nebulae/vendor/plugins/community_engine/app/
controllers/base_controller.rb:128:in `get_additional_homepage_data'
/home/mlinnell/web/Nebulae/vendor/plugins/community_engine/app/
controllers/base_controller.rb:41:in `site_index'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/mime_responds.rb:135:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/mime_responds.rb:135:in `custom'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/mime_responds.rb:179:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/mime_responds.rb:179:in `respond'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/mime_responds.rb:173:in `each'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/mime_responds.rb:173:in `respond'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/mime_responds.rb:107:in `respond_to'
/home/mlinnell/web/Nebulae/vendor/plugins/community_engine/app/
controllers/base_controller.rb:40:in `site_index'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/base.rb:1322:in `send'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/base.rb:1322:in `perform_action_without_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/filters.rb:617:in `call_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/filters.rb:638:in `run_before_filters'
/home/mlinnell/web/Nebulae/vendor/plugins/community_engine/lib/
localized_application.rb:25:in `set_locale'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/callbacks.rb:178:in `send'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/callbacks.rb:178:in `evaluate_method'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/filters.rb:186:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/filters.rb:635:in `run_before_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/filters.rb:615:in `call_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/filters.rb:610:in `perform_action_without_benchmark'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/benchmark.rb:17:in `ms'
/usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/benchmark.rb:17:in `ms'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/rescue.rb:160:in `perform_action_without_flash'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/flash.rb:141:in `perform_action'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/base.rb:523:in `send'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/base.rb:523:in `process_without_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/filters.rb:606:in `sass_old_process'
/usr/local/lib/ruby/gems/1.8/gems/haml-2.0.5/lib/sass/plugin/rails.rb:
19:in `process'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/base.rb:391:in `process'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/base.rb:386:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/routing/route_set.rb:433:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/dispatcher.rb:88:in `dispatch'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/dispatcher.rb:111:in `_call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/dispatcher.rb:82:in `initialize'
/home/mlinnell/web/Nebulae/vendor/plugins/community_engine/lib/
flash_session_cookie_middleware.rb:14:in `call'
/home/mlinnell/web/Nebulae/vendor/plugins/community_engine/lib/
flash_session_cookie_middleware.rb:14:in `call'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
query_cache.rb:29:in `call'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
query_cache.rb:9:in `cache'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
query_cache.rb:28:in `call'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:361:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/head.rb:9:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/methodoverride.rb:24:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/params_parser.rb:15:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/rewindable_input.rb:25:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/session/cookie_store.rb:93:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/reloader.rb:9:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/failsafe.rb:11:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/lock.rb:11:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/lock.rb:11:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/lock.rb:11:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/dispatcher.rb:106:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb:
31:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/urlmap.rb:46:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/urlmap.rb:40:in `each'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/urlmap.rb:40:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/
log_tailer.rb:17:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/content_length.rb:13:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/handler/webrick.rb:46:in
`service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack/handler/webrick.rb:13:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:
111
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
script/server:3
--
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en.