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.

CommentFileSizeAuthor
#1 1430874-undefined-kort.patch579 byteskim.pepper
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kim.pepper’s picture

FileSize
579 bytes

Attached is a patch that removes reference to this variable.

kim.pepper’s picture

Status: Active » Needs review
randallknutson’s picture

Status: Needs review » Reviewed & tested by the community

Very 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.

AdamPS’s picture

Priority: Normal » Critical

I'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]);

drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.