admin/content/node-type/partner/fields
add field:
city - OpenLayers Wkt - OpenLayers Geocoder
save
White screen.
in logs:
[Mon Aug 02 14:28:58 2010] [error] [client 212.98.171.100] PHP Fatal error: Cannot access empty property in /home/u2911/domains/*********/sites/all/modules/openlayers/modules/openlayers_views/views/openlayers_views_style_data.inc on line 332, referer: http://*********/admin/content/node-type/partner/fields
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | openlayers-871456-7.patch | 1.15 KB | fuerst |
| #6 | openlayers_views-871456-6.patch | 1.09 KB | fuerst |
Comments
Comment #1
tmcw commentedSounds like you have a view that's set to use a WKT field, but the WKT field isn't set?
Comment #2
dgastudio commentedComment #3
tmcw commentedWas that the problem? If it was, we need more checking in this area so that people with your PHP configuration don't get burned.
Comment #4
dgastudio commentedi don't know for sure.
i make clean install of drupal with last dev version of openlayers and now everything es working nice. thanks!
Comment #5
tmcw commentedOkay, assuming it was some odd configuration that borked your setup. Closing.
Comment #6
fuerst commentedGot the same error after upgrading 6.x-2.x-dev (2010-Aug-10) to 6.x-2.x-dev (2011-Feb-11).
$datasourcein line 396 and 407 in openlayers_views_style_data.inc is expected to be an array but once for every page call it is a string containing openlayers_wkt. This breaks the assignement in lines 401/412. Checking$datasourcefor being an array fixes this. See attached patch.Note: I do not know if the string case of
$datasourceitself is an error worth to be explored.Comment #7
fuerst commentedRerolled the patch to make it runable from within the openlayers module root.
Comment #8
rob70 commentedVery new Drupal user, first time tyring open layers views, but I got the following error:
Fatal error: Cannot access empty property in [..]/modules/openlayers/modules/openlayers_views/views/openlayers_views_style_data.inc on line 361
I applied this patch and still got the same error.
Diving a little further,
$fields[$data_source['openlayers_wkt']]['field_alias'] returns empty.
Hope this helps. LMK if I can provide more information.
Comment #9
mathieu commentedSubscribing. Had a similar issue (line 400) and the patch fixed it. Not sure why/what, not much time to investigate either.. :(
Comment #10
barwonhack commentedPatch worked for me. I have a few sites using openlayers and openlayers geocoder and only one was showing the defect. Weird.
Comment #11
barwonhack commentedI completely uninstalled openlayers and then removed everything referring to openlayers in the database before this went away.
Uninstall was not enough.
Comment #12
zzolo commentedCommitted path. Many thanks.
http://drupalcode.org/project/openlayers.git/commit/b4b6ca4
Comment #14
rajmataj commentedI'm not certain if this is related, but after applying a fix of sorts on this related post, the error didn't show itself anymore.