When you want to add a content wich have an entity reference field, with the option entity reference prepopulate actived, you obtain the error below in a white page.

Fatal error: Call to undefined function og_is_group_audience_field() in ........./sites/all/modules/entityreference_prepopulate/entityreference_prepopulate.module on line 57

The content is a content type of organic groups 7.x-1.4. This error occurs when you use node/add/article or node/add/article?field_ref=xx. The entity_reference fielf is a field relative to an other content type.

The module entityreference_prepopulate works fine in the version 7.x-1.0.

Comments

loren H’s picture

I just recently started having the same error coming up. Although the content that the error comes up for is not a content type of og which confuses me. I am using entity reference in as a field type for the content.

Fatal error: Call to undefined function og_is_group_audience_field() in /home/wwwthepo/public_html/sites/all/modules/entityreference_prepopulate/entityreference_prepopulate.module on line 57

amitaibu’s picture

Status: Active » Closed (duplicate)

Please see the "OG integration" section in the homepage