Hi,
I have a custom 404 error page with a search form in the left region blocks - this is set up in the Error Handling section of the admin pages.
However, when I try to enter something in the form, the search is not working - it just reloads the page missing page again.
What could be the problem?
Thanks for any information on this matter.
Comments
Comment #1
h3000 commentedMy setup is:
Apache Solr Search Integration 6.x-1.0-rc2
Drupal 6.14
Apache 2
PHP 5
Mysql 5
Comment #2
h3000 commentedit seems to be related to Apache Solr Search integration - I disabled the module and search is now working in the page missing pages.
changing the project to Apache Solr Search Integration instead of Drupal Search,
Anyone else experience this problem?
Comment #3
pwolanin commentedDrupal in general has a bug where search wasn't working on 404 pages. Maybe we missed a fix that went into core?
Comment #4
geerlingguy commentedSame problem here.
[Edit: See #292565: Regression: Can't set /user to 403 page (was: login destination is broken)]
Comment #5
geerlingguy commentedAfter a little more investigation:
When I visit example.com/sifjsdof (some garbled text that returns 'Page not found'), I get the form appropriately...
The action is set to the current page.
However, I'm guessing that ApacheSolr is not fired when a request is sent to the 404 page, so this is basically an infinite loop of 404 errors, every time you submit the search form. Not very kind to end users!
It seems (according to the linked issue above this post) that this has to do with the redirect functionality built into Drupal... but it could be something in ApacheSolr Search Integration, I guess... I haven't had a lot of time to troubleshoot.
Comment #6
geerlingguy commented...this seems to be a rather critical issue—the page on which people would be most likely to perform a search doesn't allow search! I noticed Drupal.org is working fine on 404 pages - do they have a customized Solr implementation?
Comment #7
pwolanin commentedI think this is a core issue with the search module: http://drupal.org/node/292565#comment-1065064
Comment #8
geerlingguy commentedBut it seems like that issue was fixed already (see http://drupal.org/node/292565#comment-2039636), and even though I'm running 6.15, the form is not working... seems like it has to do with apachesolr, no?
Comment #9
pwolanin commentedHmm, good question - guess I should have checked the status. apachesolr is using the core search framework, so i'd expect it to work the same, but maybe I grabbed bad code for the search block some place.
Comment #10
malc0mn commentedI'm using Faceted Search (http://drupal.org/project/faceted_search) and have the same problem... The core patch is present (checked the files manually) so it did get into the Drupal core properly, so these other modules must be the culprit imho...
EDIT1: turning off faceted search did not 'fix' the issue... Is the patch properly working then? Looking into it...
EDIT2: when using the search block, the patch works fine, when using print $search_box it does not...
Comment #11
malc0mn commentedI fixed it, moved to: http://drupal.org/node/730322
Comment #12
geerlingguy commentedCore issue (for tracking purposes): #730322: Search not working on 404 page when using print $search_box in template files
Comment #13
jpmckinney commentedConfirm that #730322: Search not working on 404 page when using print $search_box in template files is the issue to follow for this.
Comment #14
pwolanin commented