I'm getting this fatal when trying to use OpenLayers with a view generated by Search API rather than Views itself.

I'm fairly certain the problem is that OpenLayers is accessing a raw property in the Views object. There should be an API call instead that is the correct way to access that data. Views itself makes everything public out of habit (since it had to in PHP 4 / Drupal 6), whereas Search API does things properly and hides data structures that should not be accessed directly.

The fix here is to figure out what the new API method is and use that instead. There may be other instances of the same problem, too.

I'm marking this as major, since it causes a fatal even in preview, which makes unbreaking stuff somewhat more difficult.

Comments

nod_’s picture

Status: Active » Closed (duplicate)

#1340888: Protected $fields kills OpenLayers module as mentioned on the other thread, tests are welcome :)