No search performed on bad URL
| Project: | Search 404 |
| Version: | 6.x-1.4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Recently I updated a test version of my site from 6.9 to 6.12, along the way ensuring that Search 404 was preserved. For some reason when a bad URL is entered (e.g. www.example.com/does/not/exist), a search is not actually performed (the search form is still provided). On the live 6.9 version of the same site, the module behaves itself just fine. On both sites, standard searches are working fine.
I have combed through the files and modules page and cannot find any dependencies or anything else I might have missed. Short of the drupal versions (6.9 & 6.12), the two sites are (as far as I know) identical and live under the same hosting environment. Please help and thanks for the great module!
Similar issues:
#418192: Unexpected results with search404?
#489260: No results appear when search-results.tpl.php is included in the theme (modified or not)

#1
What is this page telling you:
-> your-drupal.com/admin/settings/search
Is your site indexed completely?
Szy.
#2
Good question. As it turns out, my cron began acting up after upgrading to Drupal 6.12. Cron is running fine now after some trial and error today, but Search indexing seems to be stuck at 98% even after running cron repeatedly with various values set for "number of items to index" in Search Settings. No errors are generated anywhere, though, and standard searching seems to be running fine.
How definite is it that this is the issue? Any other ideas come to mind? Thanks for the quick reply, szy.
#3
I can confirm this issue. Fresh install d6.12 > Devel generate 500 nodes > 100% search index. 404 page just shows a search form but has not searched.
#4
Thanks for confirming, dstol. (Now I know this issue is probably not tied to my other issue).
#5
Next hint:
does your user have rights to use search?
Szy.
#6
Yes, on my site all users (including anonymous) have "search module > search content" (but not "advanced search") checked.
#7
I can confirm also that all users anon included have perms for search but I was logged in as user/1 anyways.
#8
hello guys,
I have the same problem
thanks for any support in advance
#9
Same problem here using freshly installed d6.12 with no contrib modules.
Thanks
#10
Also same problem using d6.12 -- 404 pages show:
The page you requested was not found.
Enter your keywords:
Search index: 99% of the site has been indexed. There are 4 items left to index.
#11
For what it's worth, my search index is now at 100% again and the issue remains.
#12
Hi,
It seems to be a bug in get_keys function, it expects a request property to be set ('destination'), but it doesn't. I did a quick fix (patch attached), but it needs a more in deep revision.
#13
I tried adan's patch and it works! finally this module works for me as it should!
#14
Heh, now it works for me as super user, but it doesn't for anonymous.
Szy.
#15
Attached is a patch that's very similar to adan's, but more concise.
I can confirm that applying either my patch or adan's solves this problem with Drupal 6.12 and Search404 6.x-1.4 .
Cheers,
Nick
SoftCom Inc
http://softcom.com
#16
Hrm, my patch wasn't attached. It is now.
#17
Hi All
This patch has been applied in the latest dev version commit 9 days back.
Let us know in case of issues with the latest dev
Regards
Zyxware
#18
I'm having this exact same issue with the 6.x-1.6 version of the module on Drupal 6.12. When searching for "bad urls", it only brings up the standard search form, and not the Search404 related search. Has the patch mentioned been applied in the 6.x-1.6 version, or is it only in the latest dev verison labeled 6.x-1.x-dev 2009-Jun-26?
#19
Just updating to reflect that this is still broken in 6.x-1.6. (Thanks for the patch and the dev update, guys.)
Editing to respond:
Has the patch mentioned been applied in the 6.x-1.6 version, or is it only in the latest dev verison labeled 6.x-1.x-dev 2009-Jun-26?
No, I don't believe the fix has actually progressed beyond dev at this point.
#20
Thanks for the heads-up, silurius. After re-reading #17, it does sound like it hasn't made it past the dev version yet. I can confirm that running Drupal 6.12 and the "current" dev release dated 2009-Jun-26 now has the search404 module working properly again. Many thanks for the assistance, and I look forward towards the next "full" release that contains this patch.
#21
The latest release 6.x-1.7 has this patch applied.
Regards
Zyxware
#22
Thanks! Patch confirmed. 6.x-1.7 works great now. This issue is resolved, as far as I am concerned.
#23
Thanks. 6.x-1.7 is working for me too.
#24
I am changing the status for fixed for this issue.
Regards
Zyxware
#25
Automatically closed -- issue fixed for 2 weeks with no activity.