All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low Search distance eror

LostMyUser 1 Dec 2014 23:05 problem, rejected

Hello,
I've upgraded to the lastest version of low search 3.3.2
In the hope i could use one field for distance calculation
distace:to="coords"

But i get the following error,
Where could the problem be ?
the moment i remove distance:to
everything works as it should



A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: distance/lsf.distance.php

Line Number: 97
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: distance/lsf.distance.php

Line Number: 97
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: distance/lsf.distance.php

Line Number: 97

Replies

  1. Low 2 Dec 2014 08:30

    What version of EE and PHP are you using?

  2. Low 2 Dec 2014 08:38

    Als, try deleting and re-upload the /filters folder. There might be an old version still there.

  3. LostMyUser 3 Dec 2014 13:36

    I have tried it but with no luck
    php version is 5.3 and ee 8.1
    i have removed lowsearch fully and installed it again still the same

    keywords also throwing error


    A PHP Error was encountered

    Severity: Warning

    Message: uasort() expects parameter 2 to be a valid callback, function 'low_by_score' not found or invalid function name

    Filename: keywords/lsf.keywords.php

    Line Number: 233

  4. Low 3 Dec 2014 13:42

    I'll need to take a look myself. Please send SuperAdmin and FTP login credentials to hi at gotolow dot com if you can.

  5. LostMyUser 4 Dec 2014 09:03

    My colleague was doing tests yesterday he figured out the cause
    clean installation of EE 2.9 it works perfect
    clean installation of EE 2.8.1 it throws an error! with only low search installed
    but an upgrade is not an option the moment

    I'll replicate this on an online version and send you the login details

  6. Low 4 Dec 2014 09:50

    I'm still guessing the error comes from an older version of LS. Make absolutely sure the installation where the error occurs has the latest installed. Check symbolic links, third_party paths, etc.

  7. Hrvoje 25 Sep 2017 09:41

    Hi, i also have this error:

    A PHP Error was encountered
    Severity: Warning
    Message: uasort() expects parameter 2 to be a valid callback, function 'low_by_score' not found or invalid function name
    Filename: keywords/lsf.keywords.php
    Line Number: 233

    I updated Low search to 4.4.4 then i got that error, then i updated EE to 2.7.2, error is still there.
    Then i deleted all low search files from FTP, installed 4.4.5, error is still there.

    Thanks