thinking-sphinx icon indicating copy to clipboard operation
thinking-sphinx copied to clipboard

Can't constantize NIL object

Open bradbirnbaum opened this issue 17 years ago • 2 comments

After switching to 1.3.8 I get this error on a search

/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb:52:in method_missing' /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/thinking_sphinx/search.rb:692:inclass_from_crc' /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/thinking_sphinx/search.rb:674:in instances_from_matches' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/ordered_hash.rb:97:ineach' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/ordered_hash.rb:97:in each' /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/thinking_sphinx/search.rb:672:ininstances_from_matches' /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/thinking_sphinx/search.rb:260:in populate' /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/thinking_sphinx/search.rb:349:incall' /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/thinking_sphinx/search.rb:349:in retry_on_stale_index' /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/thinking_sphinx/search.rb:242:inpopulate' /Library/Ruby/Gems/1.8/gems/thinking-sphinx-1.3.8/lib/thinking_sphinx/search.rb:175:in `total_entries'

bradbirnbaum avatar Dec 03 '09 20:12 bradbirnbaum

Hi Brad

I'm going to need a bit more detail before I can figure out what's not working... what versions of Rails and Sphinx are you using? Does this happen in development? Or just in production? Are you using STI inheritance on any of the indexed models?

pat avatar Dec 04 '09 02:12 pat

Closing this issue - pretty sure it's related to conflicts from the rails-dev-boost plugin.

pat avatar Dec 07 '09 02:12 pat