Useing

  • OpenLayers 7.x-2.0-beta3 as well as latest dev (jan15)
  • with openlayers.js (2.12 api)
  • creating a OpenLayers Data Overlay in views (7.x-3.5)
  • in a drupal 7.18 install

and trying to build a grouped OpenLayers Data Overlay with any other field than the node title field crashes with:
"
...
HTTP-Code: 500
...
Pfad: /admin/structure/views/view/.../preview/openlayers_1/ajax
Statustext: error
Antworttext: "

any Ideas? Thank you very much for your effort in advance.

m-si

Comments

chapsou’s picture

HI ,

I have exactly the same issue and I don't understand why .
It's very embarrasing because i really need to display the map for my project en i can't cause of that error 500.
Please we need some help .
Thanks

broon’s picture

Version: 7.x-2.0-beta3 » 7.x-2.0-beta11
Issue summary: View changes
Related issues: +#1972874: Grouping functionality

This is still a thing, I assume. I just came across this behaviour.
I have a vocabulary of towns, each term (=town) has its coordinates saved in GeoFields. In my view, I want to display events in these towns and it works fine without grouping. However, since there may be more than one event in a single town, I want to group them. That's when the 500 error appeared (already when still editing the view).

Error log shows the following:
PHP Fatal error: Call to a member function geometryType() on a non-object in /sites/all/modules/geophp/geoPHP/geoPHP.inc on line 189

There is an issue for GeoPHP referencing the same function, I'll add that as a related issue.

In my case, the error was produced by a taxonomy term which hadn't a location set, thus the above error was caused by empty WKT values. Maybe OL should check first if the values are set before it calls the GeoPHP functions.