Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There seems to be some simple logic errors in the code.
There is a variable search404_skip_auto_search
which when you set to TRUE
, you would expect would stop the automatic searching upon entering a 404. But you would be wrong. If you set search404_do_custom_search
to TRUE
, then an actual search is performed. This seems like a fairly severe bug. Having a search automatically execute on a highly trafficed site will bring it down.
What I expected to happen
When you set search404_skip_auto_search
to TRUE, then this would apply globally.
Comment | File | Size | Author |
---|---|---|---|
#4 | stop_auto_searching_for_reals-2813549-4.patch | 669 bytes | akhilavnair |
#2 | 2813549-stop-auto-searching-for-reals.patch | 669 bytes | wiifm |
Comments
Comment #2
wiifmComment #3
wiifmComment #4
akhilavnairI think your point is right and your patch needs to be reroll. So If you don't mind, I have rerolled and created a new patch.
Comment #5
deepa_lissa CreditAttribution: deepa_lissa at Zyxware Technologies commentedPatch works fine. Thanks.
Comment #7
zyxware CreditAttribution: zyxware at Zyxware Technologies commentedApplied the patch.