at admin/content/reported.

EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7636 of /Users/ezra/Developer/htdocs/dev/acquia/commons_nightly/commons/nightly-5/includes/common.inc).

Comments

ezra-g’s picture

Component: Activity/status streams » Content usefulness
ezra-g’s picture

Component: Content usefulness » Groups

I also get this error trying to bulk generate content using devel_generate at admin/config/development/generate/content. So far it seems to happen on the Post and Wikis content type.

A debug backtrace() suggests this may be related to the og_group_ref field.

ezra-g’s picture

Possibly related: #1852112: Invalid field value with devel_generate.

Printing $node at the top of node_save() shows that $node->field_og_group_ref[und][0][target_id] is set to 'group' rather than a target ID or being blank.

ezra-g’s picture

Status: Active » Fixed

The action's 'changes_property' value causes VBO to do an entity_save, which was causing these errors. Note that depending on the content type the error varied somewhat.

I also corrected an incorrect variable name:

http://drupalcode.org/project/commons_content_moderation.git/commitdiff/...

Status: Fixed » Closed (fixed)

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

alison’s picture

Status: Closed (fixed) » Fixed

I also get this error trying to bulk generate content using devel_generate at admin/config/development/generate/content. So far it seems to happen on the Post and Wikis content type.

I'm still experiencing this problem with content types Document, Event, Post, Wiki, Answer, Question.

I'm using beta1 -- I imagine the fix is only in the dev version so far and that's why I'm still having the problem? If so, do you forsee including the fix in a beta release any time soon, or should I just patch it myself for now (if I don't want to switch to the dev release)?

Thank you!

jrbeeman’s picture

Status: Fixed » Closed (fixed)

@alisonjo2786 This issue is resolved in the 7.x-3.x-dev branch, which is why you're seeing the problem on the beta1 release. The followup release will fix it.

ezra-g’s picture

You can also grab the nightly dev snapshot of Commons from the project page.

alison’s picture

Got it, thank you! (sorry for the delayed response)