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.
I'm getting a notice for undefined variable $kort in search_api_location_search_api_solr_search_results_alter() line 231 of search_api_location.module. Looks like in commit aa38a254 on Jan 16 there was a lot of clean up and this was left behind.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1430874-undefined-kort.patch | 579 bytes | kim.pepper |
Comments
Comment #1
kim.pepperAttached is a patch that removes reference to this variable.
Comment #2
kim.pepperComment #3
randallknutson CreditAttribution: randallknutson commentedVery simple patch and it cleared the error for me as well. I'm not sure what the initial thinking was but this shouldn't impact the module at all except to remove the error.
Comment #4
AdamPS CreditAttribution: AdamPS commentedI've upped priority to critical because it doesn't seem to work at all at the moment.
Looking at the history, I suspect the intention was that the offending line read as follows (might be better to change rather than just deleting it)
$lower = round($lower[1]);
Comment #5
drunken monkeyShould be fixed with #1798168: Major module modifications.