Hello, I'm getting this error every time I try to edit a relation from content/relation:

Recoverable fatal error: Argument 3 passed to l() must be an array, null given, called in /home/.../sites/all/modules/relation/relation_endpoint.module on line 144 and defined in l() (line 2340 of /.../includes/common.inc).

I also run into the same error when, in views if I try to load the field endpoints.

PS: i don't know if its related, but in views, when I insert the field user:uid I get an empty value.

Hope someone can help me.

Thanks

nico

CommentFileSizeAuthor
#4 1637602.patch831 byteszkday

Comments

mikran’s picture

Category: support » bug

I think this is actually a bug. What kind of endpoints entities did you have that caused the error?

joeyunitus’s picture

I encountered the same error trying to select a relation I created. It was a Directional relation between an article node and an image.

chx’s picture

This is only possible if entity_uri() comes back empty handed. What sort of image was that? What entity type? The bug report belongs to the module defining the image entity type and not relation cos they didnt define a uri callback.

zkday’s picture

Status: Active » Needs review
StatusFileSize
new831 bytes

I have a same problem when had created relation between: Node -> Profile2 Type.

Default if entity haven't defined in the 'uri callback' of hook_entity_info, the function entity_uri will be return NULL. I think we need to check it.

This is patch for this issue.

jayhariani’s picture

I ran into the same issue when a endpoint was an entity from the Message module (using 7.x-1.0-rc3 ). The patch in #4 fixed it.

mikran’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.