I have this error when trying to search www.mysite.com/search/node
Warning: Invalid argument supplied for foreach() in template_preprocess_search_results() (line 91 of /home/empresa/public_html/modules/search/search.pages.inc).
Notice: Trying to get property of non-object in apachesolr_search_preprocess_search_results() (line 700 of /home/empresa/public_html/sites/all/modules/apachesolr/apachesolr_search.module).
Notice: Trying to get property of non-object in apachesolr_search_preprocess_search_results() (line 700 of /home/empresa/public_html/sites/all/modules/apachesolr/apachesolr_search.module).
I also have this one with this url www.mysite.com/search/site, but solr is ok (status report is ok) and the service is availble
The Apache Solr search engine is not available. Please contact your site administrator.
Comments
Comment #1
egarias commentedI add more error information:
I activated the taxonomy option of solr, then I have this error when searching for taxonomy:
Comment #2
egarias commentedChanged for the correct version of apache solr.
Nobody has similar issue?
it is a blocking bug for me
I have being using solr for several sites, works perfect for 6.x
but here with 7.x here is my blocking problem i don't know how to continue.
the solr service is up and running, it is shared with another drupal site 6.x where it is works OK.
Please help
Comment #3
egarias commentedI don't know what to do.
fund this http://drupal.org/node/443980
but don't apply because of the other sites sharing the solr service that are runing ok (with 6.x).
Lucene is working ok also
Index seem to work solr indexes the documents
but for solr search I have this
and the previous errors
Comment #4
pimok3000 commentedHi egarias,
i can confirm the exact same errors on debian 5 with the latest drupal7. The apachesolr settings say "Your site has contacted the Apache Solr server". Using the apachesolr search without apachesolr taxonomy module turned on gives back the following error using the Site Filter und http://mysite/search/site/:
Going to the admin/settings/modules/ site directly after doing an unsuccessful search as described above this error (to activate the apachesolr taxonomy module to reproduce the error below)
Turning on the deprecated apachesolr taxonomy module i get the same error using the main search field as stated here first. So it seems to be a bug in the apachesolr module for drupal7, because we both get the exact same errors while everything is working fine for variuos drupal6 sites.
Comment #5
egarias commentedSeems to work for others? what we are missing, do we do something wrong? Is there anywhere we can try to find out?
Sorry for insisting;)
Comment #6
egarias commentedInstallede apache solr search autocomplete and shows the autocomplete but when selection result:
same errors as before and in the watchdog
Comment #7
egarias commentedI think the problem is on the date.
I deactivated the filters by date published and updated
Now i don't have the error, apache solr is contacted at search results, and the template causes no problem.
I found the documents but I have this:
I will continue testing to check if the search results are ok with more nodes
Comment #8
pimok3000 commentedI will try that later and report my results
Comment #9
pwolanin commentedThe 400 error means you did not correctly update your schema. This is your problem, not a bug.
Are you still seeing the invalid foreach()
Comment #10
egarias commentedYou maybe right.
But i corrected deactivating and activating again the date filters, this maybe corrected the schema, but i tried before deleting the index with no results. Now it seems ok but still have the #7 messages
Many Thanks!
Comment #11
egarias commentedThere's someway a problem with the dates, I updated more records and the problem of invalid foreach() and apache solr not contacted came again, deleting the index is not a result, now i have suppressed any filter by date and it works, I only have the #7 errors. If you want me to give more detailed info i will be very happy to reproduce or do any test you want me, now it works onlu the problem of #7
Comment #12
pwolanin commentedYou have to update the schema.xml on the Solr server, delete your index, and re-index or you will continue to see the dat problem.
Comment #13
jpmckinney commentedComment #14
jpmckinney commentedPostponed until it's confirmed that the correct Solr xml files are being used.
Comment #15
egarias commentedAs written before, the issue of 400 is fixed, I am not sure if the solution was reindexing or activating/deactivating the date index.
Anyway the only issue now is
it seems they don't prevend solr working.
I write this because i thing this is not related with deleting and reindexing or I am wrong? Please correct me
I don't change the status of this issue waiting for your indications
many Thanks
Comment #16
jpmckinney commentedThat's very odd. Can you confirm that, in the schema.xml file used by Solr, that you have these lines?
Bundle should always be a defined property.
Comment #17
egarias commentedthis is my shema and i do not have the requested lines. I did delete and restored index
Comment #18
egarias commentedI am very sorry, i did a complete and clean procedure from the begining again and now i have no more te related errors.
One of my mistakes was not copying again the config files from the apachesolr modules since i was updating from 6 to 7, and i had other sites running 6 and sharing the solr service on the same machine. I did not try no restart the solr modules on the 6.x installations sharing the solr, but i don't want more errors and i don't know if they will be compatible, it is not urgent for me anyway but if you can confirm they will be compatible it will help.
I apologize for the incovenience since it was my error.
Now i have 2 installations of drupal 7 with solr sharing the new 7.x config files. As i said i have no errors now in one of them, but in the other, after deleting and rebuilding, even after uncheking all the filters i have the following error when indexing:
Please help because i am indexing each day and the number of documents will be big, in case i will have to delete and reindex several times.
I also noticed that when i delete the index on one site, the index on the other site is also deleted, is that correct?
Many Thanks!
Enrique
Comment #19
egarias commentedI tried to uninstall apachesolr and then reinstall, then delete the index but after deleting i allways have a number of documents left to send even before queueing content after deleting the index. I also have another misbehaviour, i have several content types, then trying to reset everything, on content bias i try to exclude/include types on the index but this stays unchanged and i cannot modify.
regards
Enrique
Comment #20
pwolanin commentedComment #21
BeaPower commentedI am also having this issue