Hi,

I get this error when I use a nodereference_url with og-7-x.2-x

Notice: Trying to get property of non-object in nodereference_url_build_link() (line 186 of .../sites/all/modules/nodereference_url/nodereference_url.module).

The problem is now, og_context_handler_node() is returning an array like that :

array( entity_type => ( array( id => gid ) ) )

entity_type : The entity type (e.g. node, comment, etc’).
id : The group membership’s unique ID.
gid : The group’s unique ID.

and not an object.

So I commented the line with og_context_handler_node() to get the context from og_context();
and the probleme was solved.

        // First try to get context based on the current page URL.
        // $group_entity = og_context_handler_node();
        // Otherwise try getting the context based on the node being referenced.
        //if (!$group_entity) {
          $group_entity = (object) og_context();
        //}

May be I should be better to get the context only with og_context(); the keep the compatibility between og-7-x.1-x and og-7-x.2-x

Regards,