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 assume this is a gmap.module function rather than a location.module one because it accepts co-ordinates rather than post codes ;)
- Enabling the filter shows a completely blank Gmap - no navigation controls or anything.
- 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.
- naturally enough exposing the filter doesn't really work ... It centres itself on some place in Rwanda at maximum (= unsupported ;) zoom ...
Comment | File | Size | Author |
---|---|---|---|
#12 | location_cache.patch | 744 bytes | temujin9 |
Comments
Comment #1
jamesJonas CreditAttribution: jamesJonas commentedSame 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.
Comment #2
bdragon CreditAttribution: bdragon commentedNope, it's a location_views problem.
Specifically, location_views_pre_view() isn't being nice.
Comment #3
wolfderby CreditAttribution: wolfderby commentedSame Error
Comment #4
csc4 CreditAttribution: csc4 commentedSame error here - anyone found a fix?
Comment #5
Tpainton-1 CreditAttribution: Tpainton-1 commentedSAME ERROR. This is too bad. I really need to implement this.
I am basically filtering frontpage content based on proximity to users zipcode.
Comment #6
fatfish CreditAttribution: fatfish commentedSame issue. Any solutions yet ?
Comment #7
eggthing CreditAttribution: eggthing commentedYup. Same here.
Comment #8
rup3rt CreditAttribution: rup3rt commentedCVS looks close, will test
Comment #9
ehtesham CreditAttribution: ehtesham commentedI got the same problem while trying to list contents based on proximity map.
Comment #10
Turkish Delight CreditAttribution: Turkish Delight commentedSame error
Comment #11
tom_o_t CreditAttribution: tom_o_t commentedSame 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!
Comment #12
temujin9 CreditAttribution: temujin9 commentedProblem was a bad invocation of cache_clear_all in location_views.module, corrected in the attached patch.