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.
Hi All,
I found 2 issues in the code of search404.module:
1. Module uses 'core_search' as a parameter of apachesolr_search_page_load(). Because of this it doesn't work correctly when apachesolr uses another page as default.
2. The $search_path could have incorrect value, because value is not assigned to it in "else":
if (is_array($search_page)) {
$search_path = $search_page['search_path'];
}
else {
$search_page->search_path;
}
Both issues are fixed in attached patch. Hope it would be helpful.
Comment | File | Size | Author |
---|---|---|---|
#2 | search404-2050505-2.patch | 1.15 KB | anish_zyxware |
Comments
Comment #1
amitgoyal CreditAttribution: amitgoyal commentedLooks like you need to create the patch from the search404 module folder.
Comment #2
anish_zyxware CreditAttribution: anish_zyxware at Zyxware Technologies commentedThe patch no longer applies. New patch is generated.
Comment #4
anish_zyxware CreditAttribution: anish_zyxware at Zyxware Technologies commentedThe issue patch is applied and is on 7.x-1.x (development) branch.