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 used the fix from http://drupal.org/node/321114, and that worked for me.
Changed line 934 in location_views.module to
if (is_array($filter['value']) && isset($filter['value']['latitude'])) {
from
if (isset($filter['value']['latitude'])) {
Comment | File | Size | Author |
---|---|---|---|
#1 | location_views-326749-1.patch | 562 bytes | pathfinderelite |
Comments
Comment #1
pathfinderelite CreditAttribution: pathfinderelite commentedneedless patch
Comment #2
uksigma CreditAttribution: uksigma commentedWorked for me
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedthis also worked for me. it also works for location 5.x.3
Comment #4
jastraat CreditAttribution: jastraat commentedThis is still broken in the 5.x.3 release. Line 948
Comment #5
bdragon CreditAttribution: bdragon commentedOh, I get it now.
Yeah, I always forget that PHP will try to treat a string as an array.
Fixed.
http://drupal.org/cvs?commit=159249
Comment #7
Turkish Delight CreditAttribution: Turkish Delight commentedJust to add, this does not seem to work with the g-map module addition.
An example may be seen at postyourtest.com/tests
Comment #8
attiks CreditAttribution: attiks commentedTwo remarks with the proximity using postal code / country:
1/ the arguments are reversed on line 217
2/ you need a function location_latlon_rough_xx inside supported/location.xx.inc, you should be fine copying the one from location.us.inc, for Belgium you'll get this (make sure to populate the zipcodes table):
Comment #9
YesCT CreditAttribution: YesCT commentedmarked #327319: user proximity map filter doesn't work as a duplicate of this issue.
can someone evaluate the concerns raised in #8?
Comment #10
YesCT CreditAttribution: YesCT commentedthere have been a lot of changes in the newest official release, especially with regards to proximity search. Please try the newest release or dev and post back with a new detailed summary. If the problem still exists, please change the status to needs work (as it will need a reroll against the new version, http://drupal.org/patch/create). Thanks.
Comment #11
ankur CreditAttribution: ankur commentedI believe this is fixed in the 6.x-3.x and 7.x-3.x versions.