Hi all

can anyone please cast any light on this error message caused by trying to create a node with a map in the location field...

Notice: Undefined property: stdClass::$locations in _gmap_location_block_view() (line 698 of /home/juriminf/public_html/sand/sites/all/modules/gmap/gmap_location.module).

http://tinyurl.com/4zeswuq

thank you

CommentFileSizeAuthor
#11 gmap_location-D7-1058112.patch490 byteshutch

Comments

js’s picture

subscribe. same issue. Thanks, Jerry

Anonymous’s picture

Subscribe. This happened on a clean install.

juc1’s picture

Please ignore my tinyurl link above as it is now out of date for this thread and this forum does not allow me to edit my post.

mosdave’s picture

Enabling the "Node Locations" module fixed this problem for me.

Wuk’s picture

Same error here, except line is 697 not 698 using latest dev release.

Enabling the Node Locations module did fixed problem. What I would like is to have GMap Location module working using only Location CCK module without enabling Node Locations module.

Is there something I can do to have that kind of functionality?

boiky’s picture

Also have line 697...

seattlehimay’s picture

Subscribing.

jaymcgraw’s picture

subscribe

djmy’s picture

same issue, subscribing

woop_light’s picture

Exact same issue as #5. Subscribing.

hutch’s picture

StatusFileSize
new490 bytes

This is not an error but a Notice, what it means is that $node->locations has not been defined so the code contained in the if statement will not be run. The notice will not prevent the code from working.
The attached patch should fix it, not tested.

tom_o_t’s picture

Title: Undefined property error message » "Location Map" block does not support Location CCK fields

The problem is as Wuk described in #5 - the Location Map block does not support the Location CCK module, it only supports locations added to nodes with the Node Location module. This should be documented somewhere, at the very least in the block configuration page at admin/structure/block/manage/gmap_location/0/configure

Suppressing the error as suggested in #11 doesn't really fix anything unfortunately, it just hides the problem. $locations is not defined for the node when Location CCK is used.

I believe the workaround would be to create a block using Views and GMap.

calculus’s picture

sub