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

Comments

tmcw’s picture

Priority: Major » Normal

Sounds like you have a view that's set to use a WKT field, but the WKT field isn't set?

dgastudio’s picture

Status: Active » Fixed
tmcw’s picture

Status: Fixed » Active

Was that the problem? If it was, we need more checking in this area so that people with your PHP configuration don't get burned.

dgastudio’s picture

i don't know for sure.

i make clean install of drupal with last dev version of openlayers and now everything es working nice. thanks!

tmcw’s picture

Status: Active » Closed (fixed)

Okay, assuming it was some odd configuration that borked your setup. Closing.

fuerst’s picture

Status: Closed (fixed) » Active
StatusFileSize
new1.09 KB

Got the same error after upgrading 6.x-2.x-dev (2010-Aug-10) to 6.x-2.x-dev (2011-Feb-11).

$datasource in 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 $datasource for being an array fixes this. See attached patch.

Note: I do not know if the string case of $datasource itself is an error worth to be explored.

fuerst’s picture

Status: Active » Needs review
StatusFileSize
new1.15 KB

Rerolled the patch to make it runable from within the openlayers module root.

rob70’s picture

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

mathieu’s picture

Subscribing. Had a similar issue (line 400) and the patch fixed it. Not sure why/what, not much time to investigate either.. :(

barwonhack’s picture

Patch worked for me. I have a few sites using openlayers and openlayers geocoder and only one was showing the defect. Weird.

barwonhack’s picture

I completely uninstalled openlayers and then removed everything referring to openlayers in the database before this went away.

Uninstall was not enough.

zzolo’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

rajmataj’s picture

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