google-code-export / bibapp

Automatically exported from code.google.com/p/bibapp
Other
0 stars 0 forks source link

#<NoMethodError: undefined method `people' for nil:NilClass> #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We get about 5 of these a day.  Not sure if it's specific to our
environment, so I thought I'd post it.

===== BibApp needs you! ====

* Exception

#<NoMethodError: undefined method `people' for nil:NilClass>

* Clean Backtrace

app/controllers/people_controller.rb:34
haml (2.2.3) rails/./lib/sass/plugin/rails.rb:19:in `process'
passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in
`process_request'
passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in
`main_loop'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in
`start_request_handler'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in
`handle_spawn_application'
passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in
`handle_spawn_application'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in
`start_synchronously'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in
`start'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in
`spawn_rails_application'
passenger (2.2.4)
lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in
`spawn_rails_application'
passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in
`synchronize'
passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in
`spawn_rails_application'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in
`spawn_application'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in
`handle_spawn_application'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in
`start_synchronously'

* Params

{:saved=>#<Saved >}

* Session

{"action"=>"index", "group_id"=>"27", "controller"=>"people", "page"=>"S"}

* Request Env

nil

- - - -

Keeping it forever real,
-The BibApp

Original issue reported on code.google.com by fur...@gmail.com on 27 Jan 2010 at 8:37

GoogleCodeExporter commented 9 years ago
My guess is that you used to have a group 27, and it was either deleted or 
hidden.
I'll do some experimenting on my development installation and see if I can 
recreate
the issue. 

Bill

Original comment by waingram on 3 Feb 2010 at 4:38

GoogleCodeExporter commented 9 years ago
Quite possibly. The index method of the people controller doesn't seem to 
verify that it actually finds a group with the given id.

Original comment by hadi...@gmail.com on 28 Jun 2011 at 4:31