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.
Notice: Undefined index: in template_preprocess_gmap_views_view_gmapextended() (line 53 of Z:\xampp\htdocs\D7\sites\all\modules\gmap\gmap.views.inc).
creating an extended gmap views style leads to the above error when viewing the page
as described also by this comment
solution of the comment helps
Comment | File | Size | Author |
---|---|---|---|
#13 | gmap-undefined_index_bug-1255514-13.patch | 440 bytes | hwasem |
#11 | gmap-undefined_index_bug-1255514-11.patch | 440 bytes | mjs2020 |
#1 | 1255514.patch | 473 bytes | GiorgosK |
Comments
Comment #1
GiorgosKcreated a patch as described in the comment mentioned above
which seems to work great
warnings dissapear
Comment #2
iancawthorne CreditAttribution: iancawthorne commentedConfirmed, patch at #1 works for me.
Comment #3
Lemontonix CreditAttribution: Lemontonix commentedSorry,
patch does NOT work for me...
There must be also another issue ...
Thx
Comment #4
podarok#1
please, provide patch against latest dev
Comment #5
ferjan CreditAttribution: ferjan commentedI have this issue with line 67, any help?
Comment #6
ferjan CreditAttribution: ferjan commentedHello,
I keep having this : Notice: Undefined index: in template_preprocess_gmap_views_view_gmapextended() (line 67 of /home/*¨***/public_html/sites/all/modules/gmap/gmap.views.inc).
What can I do about line 67?
Comment #7
StephenWard CreditAttribution: StephenWard commentedAdding a conditional statement to check for the $purpose variable seems to clear up any issues. On line 67, change:
$markers[$i][$purpose] .= $row[$field];
to:
Comment #8
Lemontonix CreditAttribution: Lemontonix commented#7 finally did it also for me. Thx
Comment #9
podarok#7 can You provide a patch against latest dev?
Comment #10
johnvComment #11
mjs2020 CreditAttribution: mjs2020 commentedAttached is #7 as patch to latest dev.
It solved my issues too.
Comment #12
jukka792 CreditAttribution: jukka792 as a volunteer commentedGetting: template_preprocess_gmap_views_view_gmapextended() line: 87
using: version 7.x-2.10
Comment #13
hwasem CreditAttribution: hwasem commentedI was getting the error in my dblog one time for every marker on the map. Once I applied this, no more errors. I can confirm that patch #11 (a patch reflecting #7 comments) fixed this problem on line 87 in version 2.10. It was offset by 14 lines when I applied it.
Attached is an updated patch against version 2.10. The dev version of the gmap.views.inc file is WAY different, but we don't want to move to dev. So I just rerolled #11 with the new line numbers for 2.10 version.
I hope this helps jukka792.
I'm not sure on protocol, should the status change? It says Postponed.
Comment #14
rv0 CreditAttribution: rv0 commentedComment #15
podarokThanks, merged.