Closed (fixed)
Project:
GMap Module
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2009 at 18:26 UTC
Updated:
29 Dec 2009 at 18:50 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| gmap-d6-php4-views-compat.patch | 1.37 KB | gnat |
Comments
Comment #1
bdragon commentedhttp://drupal.org/cvs?commit=302408
Fixed, thanks.
(I'm starting to get the hang of this new workflow...)