Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Dec 2008 at 00:38 UTC
Updated:
4 May 2009 at 14:20 UTC
Does anyone know what would cause this or how I'd unset it? It's not the distinct field and most filters are optional. Thanks
SELECT users.uid AS uid,
users.name AS users_name,
location.street AS location_street,
location.additional AS location_additional,
location.city AS location_city,
location.province AS location_province,
location.country AS location_country,
location.postal_code AS location_postal_code,
'ep_user_location_table2:default' AS view_name
FROM d_users users
INNER JOIN d_users_roles users_roles ON users.uid = users_roles.uid
LEFT JOIN d_location_instance location_instance ON users.uid = location_instance.uid
LEFT JOIN d_location location ON location_instance.lid = location.lid
WHERE (users.status <> 0) AND (users_roles.rid IN (3, 4, 5)) AND (0)
Comments
Comment #1
nicknickoli commentedHere's what the view export looks like --
Comment #2
vesapalmu commentedI get the same thing when trying to do proximity searches with location module and views. My best guess is that this is an issue with location module, not views.
Comment #3
vesapalmu commentedAfter some research I figured out what was causing this in my case. Location module comes with a number of include files for each supported country. I was trying to do proximity searches in Finland and required functions were not found at location.fi.inc file. Instead of an error I just ended up with very strange SQL for a view. I was able to fix this problem by creating some missing functions to location.fi.inc.
However based on your country I assume you are trying to use Views + Location in U.S. which should be supported. I would definitely point a finger at Location module anyway and there are some previous issues like this one in it's issue queue. Try installing the very latest dev version of Location module, it could solve this issue.
I am also moving this to Location module's issue queue, I hope you'll find help in there.
Comment #4
yesct commentednicknickoli, does the latest dev version fix this for you?
Comment #5
yesct commentedpeople seem to represent trouble with the country files with location.xx.inc so I'm adding that here so this issue shows up in searches
Comment #6
yesct commentednicknickoli, Closing this, if you are still having trouble just post back.