Hi,
I'm working with Relation module and got the following error when applying a view:
Fatal error: Cannot access protected property SearchApiViewsQuery::$fields in .../sites/all/modules/relation/relation_entity_collector/relation_entity_collector.module on line 255
I didn't know if this problem should better be reported here or in Relation queue.
What should be done?
Thanks,
Comments
Comment #1
drunken monkeyIt's a problem that many Views-related modules have, i.e., not taking into account non-default query plugins. The code seems to assume that the query object has a readable
$fieldsproperty, which isn't the case in the Search API. Therefore, the code fails.Moving this to the correct issue queue …
Comment #2
marty2081 commentedFor now we changed line 433 of relation_entity_collector.module (7.x-1.0-rc2) into:
This prevents the error by checking if the fields property exists. However, I don't know what the purpose of the views_post_execute() code of the entity_collector is. Does the code make any sense if there is no fields property?
Comment #3
marty2081 commentedWe installed the latest dev version of Relation and this seems to be fixed now?
Comment #4
mikran commentedclosing if it seems fixed