When calling the admin/content/relation page i get the following error message:

EntityMalformedException: Missing bundle property on entity of type relation. in entity_extract_ids() (line 7633 of /Users/steffen/d7/includes/common.inc).
CommentFileSizeAuthor
#1 enititymalformedexciption-1921032-1.patch647 bytessteffenr

Comments

steffenr’s picture

Version: 7.x-1.0-rc4 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new647 bytes

Attached you'll find a patch solving the issue for me..

Please review / test..

mikran’s picture

Version: 7.x-1.x-dev » 7.x-1.0-rc4
Status: Needs review » Postponed (maintainer needs more info)

How to repeat that? What kind of relations are causing the error? Do you have entity collector block enabled?

steffenr’s picture

I created several relations and got this error while calling the admin/content/relation page.
I think it the error happens if you changed the structure of your relation-types and still have old relations saved. After clearing the old stuff it worked fine again..

SteffenR

mikran’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

It should not be possible to have deleted entity as endpoint. If the entity was correctly deleted hook_entity_update would have taken care of deleting / updating the relation.

There might be a bug somewhere else causing this to not occur but it's not here.

watchdog’s picture

Status: Closed (works as designed) » Needs review

yes, the patch works, thanks!

Status: Needs review » Needs work

The last submitted patch, enititymalformedexciption-1921032-1.patch, failed testing.

naught101’s picture

Status: Needs work » Postponed (maintainer needs more info)

Please list steps to reproduce this bug from a clean installation, before re-submitting a patch that applies cleanly.

watchdog’s picture

ok, sorry

steffenr’s picture

Finally we got it working here - the error was caused by an old relation with fields that where not existant anymore.
After deleting all the old "stuff" it was working fine for us again..

From my perspective we can close this issue..

mikran’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

yep

mikran’s picture

Status: Closed (duplicate) » Closed (works as designed)

wrong status