We have a content type in which we have a entityreference field for a taxonomy field. In the entity reference field We are using A field attached to this entity as sort by field.
When we submit the node form we get a Fatal error: Call to a member function conditions() on null in /Applications/MAMP/htdocs/cdb/docroot/modules/node/node.module on line 3462.
Proposed Solution:
I fixed it temporarily by adding a extra condition check in node core module.
Fix if ($type == 'entity' && is_object($subquery) && count($subquery->conditions()))
line 3462.
But I am not sure if the fix should belong to core node module or to entityreference module since taxonomy reference field is a plugin declared by entityreference module, and ideally call flow in node module should have early returned before the statement throwing error.
Comment | File | Size | Author |
---|---|---|---|
#2 | Error_on_node_submit_form.png | 236.51 KB | itdevshri |
Comments
Comment #2
itdevshri CreditAttribution: itdevshri commented