The module installs without a hitch but after creating a new field type to use with new content types drupal shows white when I try to click on content previously created. This only affects the viewing of the site and not the administration page. Could this be a php memory allocation problem?
log file reports:
PHP Fatal error: Call to undefined function link_views_content_field_data() in /Applications/MAMP/htdocs/drupal/sites/all/modules/gmapfield/gmapfield.module on line 216
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | views_list_result.jpg | 273.1 KB | petarb |
Comments
Comment #1
zzolo commentedIs this in a View? I have not really looked at Views support yet. I'll put it on the queue.
If this is not a View, I think this could be solved by installing Views. I had started the Views support but did not finish it.
Comment #2
zzolo commentedRegular Views support is in latest. But since the node is not passed along, there are no points or markers yet.
Comment #3
ozchris commentedI get this error:
Fatal error: Call to undefined function link_views_content_field_data() in /home/mysite/public_html/mydomain.com/sites/all/modules/gmapfield/gmapfield.module on line 216
If I turn off gmapfield module, all is ok.
If I turn it on, all views fail.
Bit of a bummer.
edited to add: running drupal 6.4.
Comment #4
zzolo commentedAre you at the newest dev release (Nov 10)?
Comment #5
ozchris commentedi just took a copy of my production site and installed it on a localhost xampp setup on my laptop.
Same thing happens - as soon as i turn on gmapfield, i get the above error for all views.
i upgraded the local version of the site from 6.4 to 6.6 and the same thing happens.
but after your last post, yes i was running a version from 9 november. just downloaded 10 november and it works, even in prod with 6.4
big thank you!
Comment #6
mojipittan commentedThanks for the update on the nov 10th but again, I think this is a views related problem. after the update I get the following error
PHP Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/cck/theme/theme.inc' (include_path='.:/Applications/MAMP/bin/php5/lib/php') in /Applications/MAMP/htdocs/drupal/sites/all/modules/cck/content.module on line 180
I am not sure if this is a related problem, but I am currently using drupal 6.6 with cck 6.x-2.0. Do you have a recommended module version configuration that best works with your latest version?
Comment #7
zzolo commented@mojipittan:
This does not look like a problem that is caused by gmapfield module. Did you move anything around or change permissions?
This module was developed by using the most recent version of CCK (2.0).
Comment #8
mojipittan commented@zzolo:
I have given permission to view all users to view field created using the gmap_field modules. I think I have allowed permissions to related fields, including gmap, and locations module but I agree with you, it might be a views related problem.
apologize for the late response,
may I ask what your setting and requirements are for gmap_field to work?
at its current stage in development, is it best to use it without enabling the views module?
Cheers!
Comment #9
zzolo commented@mojipittan
At the moment, Views "works". I have not tested this with many different configurations. Right now, the map will show up, but the markers will not. I know there may be need to have a list of maps, but I would suggest using the built-in GMap Views plugin that will aggregate Location points and put into one map.
Comment #10
mojipittan commented@zzolo:
thanks, I am a still a bit new playing with google map mashups, so having a bit of difficulty playing with drupal 6. I get the feeling that drupal 5 is better supported in this area but I will continue to follow gmap field.
slightly off topic, but is there a way to create a mashup like this one
http://drupal.org/node/209180
using what is available in drupal 6?
I have been following a lot of tutorials that suggest using gmap macro, in order to generate maps which seems a little long winded method in order to create a content type that can take in location details and automatically generate a map with a marker for that location.
any hint or advice is deeply appreciated.
Thanks!
Comment #11
tonycpsu commentedSubscribing.
Comment #12
petarb commentedI would love to see full Views Support if possible. Does anyone have any further insights to this?
Comment #13
theabacus commentedAlso interested in Views support. Subscribing...
Comment #14
zzolo commentedHi. Please note that this module is "seeking new maintainer", which means I don't have much (or any) time to put towards this module. Patches are very welcome.
Comment #15
petarb commentedUnderstood zzolo.
I would like to offer a bounty to someone to fix this issue, however I have no idea about protocol to do this. Anyone who would be interested could get in contact or I could just offer a sum here?
Comment #16
zzolo commentedHi @PetarB. I don't think there's any sort of official protocol to do such a thing. I personally don't have any time at the moment, but will mention it to others. Can I ask, what exactly you are looking for with "Views support" with this module?
Comment #17
petarb commentedI would like to show an individual map for each result from views, in a non-aggregated fashion. It's not the best solution, however a client is extremely interested in using this result.
Attached is an image with the current default Gmap Field view module in use in the Views result. The map renders, however it is not centered on the field result, and a marker does not show. Exactly as claimed! ;)
I need the marker for the location to appear, and if it does, I'm assuming the Gmap macro will take care of centreing it as well, similar to what it does on all other renderings of gmaps on the current site.
Please do not comment on the 'design' of the page, it's not mine, I would have done something different.
Note: can't upload a pic at the moment, no idea why. Will try uploading a pic later.
Comment #18
petarb commentedNow with added attachment!
Comment #19
petarb commentedIf anyone is interested in the bounty, see here:
http://drupal.org/node/975970
Comment #20
petarb commentedThe bounty has been claimed, and here is the solution:
The final function in file gmapfield.module just needs to be replaced as follows.
I have tested it using gmapfield-6.x-1.0-beta and it works as expected.
I'm no coder, so zzolo, if you have some spare moment to put this into the official module and resubmit (I have no idea of the procedure to do this), I think everyone would be grateful, as it adds a very useful feature. If you don't have time to do this, let me know and I'll give it a go...
Big thanks to jvizcarrondo for the solution. Hopefully it was easy money!
Regards, Petar
Comment #21
zzolo commentedHi @PetarB. Glad to hear this is working our for you. I will try to put this in soon. It will happen faster if you can supply a patch. See http://drupal.org/patch/create
Comment #22
lnunesbrI'm not able to get this views integration working on my drupal 6 site... Actually, I've tried gmapfield beta1 and also beta1.
CCK 2.9
Views 2.12
But, It's working fine in the node page.
Comment #23
tribe_of_dan commentedThis worked for me, great stuff!