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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GiorgosK’s picture

Status: Active » Needs review
FileSize
473 bytes

created a patch as described in the comment mentioned above
which seems to work great

warnings dissapear

iancawthorne’s picture

Confirmed, patch at #1 works for me.

Lemontonix’s picture

Sorry,

patch does NOT work for me...

There must be also another issue ...

Thx

podarok’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Needs review » Needs work

#1

git apply --check 1255514.patch
error: patch failed: gmap.views.inc:50
error: gmap.views.inc: patch does not apply

please, provide patch against latest dev

ferjan’s picture

I have this issue with line 67, any help?

ferjan’s picture

Hello,

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?

StephenWard’s picture

Adding 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:

      if ($purpose){
        $markers[$i][$purpose] .= $row[$field];
      }
Lemontonix’s picture

#7 finally did it also for me. Thx

podarok’s picture

Status: Needs work » Postponed (maintainer needs more info)

#7 can You provide a patch against latest dev?

johnv’s picture

Component: Code » gmap_plugin_style_gmapextended.inc
mjs2020’s picture

Attached is #7 as patch to latest dev.
It solved my issues too.

jukka792’s picture

Issue summary: View changes

Getting: template_preprocess_gmap_views_view_gmapextended() line: 87
using: version 7.x-2.10

hwasem’s picture

I 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.

rv0’s picture

Status: Postponed (maintainer needs more info) » Needs review
podarok’s picture

Status: Needs review » Fixed

Thanks, merged.

  • podarok committed feb762c on 7.x-2.x authored by hwasem
    Issue #1255514 by GiorgosK, mjs2020, hwasem: GMap extended views style:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.