Well, I fixed it by removing big_sitemap from my environment file, now I only require it in the rake task that creates the sitemap. But I asked here for clarification as I dont understand why it wasnt working properly.
Pat, thank you for your continued support, and I didnt want to sound like I'm pushing for answer or anything. Please take your time with (or feel free to ignore) this issue, as it has been resolved :) On Jul 27, 11:15 am, Pat Allan <[email protected]> wrote: > Not yet - haven't had time to create a test app using both TS and BigSitemap > so I can try to reproduce the issue. Nothing obvious as to why the error is > happening... > > -- > Pat > > On 27/07/2010, at 6:09 PM, Al-Faisal El-Dajani wrote: > > > 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 > > athttp://groups.google.com/group/thinking-sphinx?hl=en. -- 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.
