I don't know enough about this module yet to say for sure what's wrong but I will relate to you the symptoms I am seeing. My implementation is Drupal 5.5 with PostgreSQL. I have only been using Firefox 2.0 up to this point.
1. I was able to select Lat/Long on my own user map under my profile but it does not display on my View tab. It only displays on my Edit tab.
2. While I see the marker for my location on my user map under the Edit tab, I don't see my marker on the site user locations map either. The map displays but the following errors appear on the page:
* warning: pg_query() [function.pg-query]: Query failed: ERROR: column "u.name" must appear in the GROUP BY clause or be used in an aggregate function in /usr/local/apache2/htdocs/drupal/includes/database.pgsql.inc on line 125.
* user warning: query: SELECT u.name, MAX(r.rid) as role, l.eid as uid, l.latitude, l.longitude FROM users u INNER JOIN location l ON u.uid = l.eid LEFT JOIN users_roles r ON l.eid = r.uid WHERE l.type = 'user' AND (l.latitude != 0 OR l.longitude != 0) GROUP BY l.eid in /usr/local/apache2/htdocs/drupal/includes/database.pgsql.inc on line 144.
I would really like to use this module to display user locations with their avatar/picture on a map for the whole site. Additionally, I would like user locations maps for members of my organic groups. I'm hoping all of this is possible and would appreciate any advise in getting me there including estimates for contracting this work.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | gmap-5.x-1.0-alpha1-pgsql.patch | 733 bytes | pounard |
Comments
Comment #1
tinou commentedSame settings for me (Lighttpd, PostgreSQL, Drupal 5.5) and a warning that is sometimes the same as described by WISeOz, sometimes has some extras:
Comment #2
Anonymous (not verified) commentedSame problem over here. Apache 2, PostgreSQL, Drupal 5.1.
Node locations isn't displaying at all (error 404) but I'm guessing that's a separate issue.
Comment #3
pounardI had to correct manually to use gmap location, here is a quick patch that works with the 5.x-1.0-alpha1 version.
Comment #4
bdragon commentedIs the beta any better?
Comment #5
pounardThe beta is better, I don't have those messages anymore, but I don't have any markers displaying anymore :(If there is no revelant PostgreSQL error message, I can't help !
Update: Ok, works fine, great work. The only problem remaining for me is when loading a GMap, it does not center on the marker(s).
Comment #6
bdragon commentedOK, could you file a seperate bug for that then? Thanks.
Comment #7
pounardI don't really have time to do this now, so I can't help you right now. I'll maybe try to take a look later but I can't promise anything :(
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
sebzur commentedI managed to make users location display simply, by adding u.name, l.latitude, l.longitude to GROUP BY clause in line 133 in gmap_location.module file of gmap module:
I hope, this will be helpful.
Comment #10
bdragon commentedFixed in #398272: PostrgeSQL needs explicit column names in GROUP BY when aggregate is used.