Views Filter : Location Proximity Map

JohnG - April 14, 2007 - 18:55
Project:Location Views
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I assume this is a gmap.module function rather than a location.module one because it accepts co-ordinates rather than post codes ;)

  1. Enabling the filter shows a completely blank Gmap - no navigation controls or anything.
  2. On Submitting the view, the co-ordinates I enter into the filter settings vanish and I get the following error:
    user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 WHERE cid = 'views_tables'' at line 1 query: DELETE FROM 1 WHERE cid = 'views_tables' in .../includes/database.mysql.inc on line 172.
  3. naturally enough exposing the filter doesn't really work ... It centres itself on some place in Rwanda at maximum (= unsupported ;) zoom ...

#1

jamesJonas - July 11, 2007 - 20:16

Same error. I have not been able to track down its cause.

WHERE cid = 'views_tables'

cid - this may be inside the table 'cache_views'
I do have an entry for cid = 'views_tables:en'

This looks like an attempt to clear part of the cache.

Hope this helps.

#2

bdragon - July 11, 2007 - 21:13
Project:GMap Module» Location Views
Version:5.x-1.x-dev» <none>

Nope, it's a location_views problem.

Specifically, location_views_pre_view() isn't being nice.

#3

wolfderby - July 18, 2007 - 22:24

Same Error

#4

csc4 - August 5, 2007 - 21:11

Same error here - anyone found a fix?

#5

Tpainton - August 26, 2007 - 21:23

SAME ERROR. This is too bad. I really need to implement this.

I am basically filtering frontpage content based on proximity to users zipcode.

#6

fatfish - December 2, 2007 - 08:33

Same issue. Any solutions yet ?

#7

eggthing - February 9, 2008 - 19:42

Yup. Same here.

#8

rup3rt - March 17, 2008 - 20:07

CVS looks close, will test

#9

ehtesham - April 9, 2008 - 07:03

I got the same problem while trying to list contents based on proximity map.

#10

Turkish Delight - August 6, 2008 - 07:15

Same error

#11

tom_o_t - August 22, 2008 - 15:59

Same problem on a site with:

location modules 5.x-1.x-dev
gmap modules 5.x-1.x-dev

But don't get this error with similar configuration on another site using:

location 5.x-3.x-dev
gmap 5.x-1.x-dev

So upgrading should fix this - just be careful as the upgrade path is not always always smooth - backup!

#12

temujin9 - October 21, 2008 - 05:14
Status:active» needs review

Problem was a bad invocation of cache_clear_all in location_views.module, corrected in the attached patch.

AttachmentSize
location_cache.patch 744 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.