Out of the box, the latest dev version of GMap module will not create GMap views when run on PHP4. The issue has mainly to do with Object references in the views plugin include file. PHP5 will take an object reference like "( )->", but PHP4 won't. The fix is pretty straightforward, and just requires container variables, ie:

 $lat_field = $this->view->display_handler->get_handler('field', $this->options['latfield'
])->field_alias;

becomes:

  $lat_fied_obj = $this->view->display_handler->get_handler('field', $this->options['latfie
ld']);
  $lat_field = $lat_fied_obj->field_alias;

This patch fixes this issue in at least that file, and allows views to display the map.

CommentFileSizeAuthor
gmap-d6-php4-views-compat.patch1.37 KBgnat

Comments

bdragon’s picture

Status: Needs review » Fixed

http://drupal.org/cvs?commit=302408
Fixed, thanks.
(I'm starting to get the hang of this new workflow...)

Status: Fixed » Closed (fixed)

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