No ideas?

On Jul 22, 2:40 pm, Al-Faisal El-Dajani <[email protected]>
wrote:
> Hello,
>
> I am using both thinking sphinx and big_sitemap gems in a porject I'm
> working on. For some reason, all my thinking sphinx rake tasks are not
> working. They keep throwing the same error message:
>
> You have a nil object when you didn't expect it!
> You might have expected an instance of Array.
> The error occurred while evaluating nil.detect
>
> Tracing the exception shows that it is being thrown by thinking_sphinx/
> source/internal_properties.rb:37
>
> def facet_by_alias(name)
>       @model.sphinx_facets.detect { |facet| facet.name == name }
> end
>
> @model.sphinx_facets is nil instead of being an empty array.
>
> Disabling big_sitemap gem makes everything work as it should.BigSitemapdoes 
> not define anything in the models, and I am not
> defining any facets.
>
> Any ideas of what is causing this?

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" 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/thinking-sphinx?hl=en.

Reply via email to