Hi,

Since upgrading from D7.7, I am facing a problem where the 'Node Reference' module is causing:

EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7405 of /var/www/htdocs/includes/common.inc).

The problem appears only when I am logged in as a site administrator and not with any other user.

I am continuing to investigate this problem, but if someone has any idea - please share it..

Thank you,

Pimmy

Comments

vladimiraus’s picture

Version: 7.x-2.0-beta3 » 7.x-2.x-dev

Yep, got the same.
It appeared when I'm editing brand new autocomplete node reference field.
This is the first autocomplete field I created after upgrading to to
- Views 7.x-3.0-rc3
- References 7.x-2.x-dev (2011-Oct-10)
Old dropdown node reference fields are OK to edit.
After I changed widget type from Autocomplete to Select list, the error disappeared.
I'm using Drupal 7.9

Pimmy’s picture

Yes, this workaround resolves the problem for me as well, however its not a pretty solution as I have way too many items for a drop down menu.

Thanks for the tip though..

ricovandevin’s picture

I can confirm this bug. I can also confirm that the workaround suggested by VladimirAus is working. But it is indeed just that: a workaround. We also have a list with hundreds of nodes that can be referenced. A select list is not a working solution for the long term.

grantlucas’s picture

I'm receiving this as well though it only happened for one content type which was using node reference. For this particular content type, I don't think any of the node actually had assigned any node references yet. Other content types which already had references established weren't causing errors.

On the affected content type, removing the autocomplete field and then re-adding it resolved the issue.

Ghostthinker’s picture

If you use field_permission, this patch might help http://drupal.org/node/1321050#comment-5236916

itserich’s picture

The error does seem Field Permissions related, when disabled the error is gone.

yched’s picture

Status: Active » Closed (duplicate)

Closing as duplicate, then.