After I created a group and a group content type, I tried to generate content using devel-7.x-1.3 module. Here is the error I get:

EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7663 of xxx\includes\common.inc).
The website encountered an unexpected error. Please try again later.

Please see this node for a full report of this issue and other issues that might be related: https://drupal.org/node/1986222

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mo Omar’s picture

Title: Notice: Undefined index: comment in _demo_table_is_view() (line 335 » EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7663 of xxx\includes\com
salvis’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Can you reproduce this without the "Demo" module that you mentioned in the other post?

Please fix the first error first.

Mo Omar’s picture

1) I can generate content manually without devel module
2) I uninstalled demo module then tried to generate OG content again but without luck. I got the same error mentioned above

salvis’s picture

Ok, then add your your error details for this error to this issue and move it to the OG queue to find out what the OG maintainers think of it.

sainath258’s picture

hello,

I am having the same issue. Initially The devel module worked fine for generating users.

It throws me the same error when i wanted to generate content..

EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7666 of F:\Drupal\ogdev\includes\common.inc).

And now the devel generate users also does not work. i tried uninstalling the devel module and reinstalling countless times. But that didnot work either.

Please help..

sainath258’s picture

I was trying to go through #13 here http://drupal.org/node/1778572

I am beginner. any simpler solution of the same?

InternetDevels’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
710 bytes

Here is a patch which fixes this issue

Status: Needs review » Needs work

The last submitted patch, devel-generate_users-1986438-7.patch, failed testing.

pcambra’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Needs work » Postponed (maintainer needs more info)

You need to generate the patch from the module root, check this doc page for more info

The first line of the patch

diff --git a/sites/all/modules/devel/devel_generate/devel_generate.fields.inc b/sites/all/modules/devel/devel_generate/devel_generate.fields.inc

should look like

diff --git a/devel_generate/devel_generate.fields.inc b/devel_generate/devel_generate.fields.inc

In any case I don't see how your patch fixes the problem, you're just removing the object field from the data...

What we need here are steps to reproduce the problem and maybe a trace of the error to track what's happening

InternetDevels’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
614 bytes

Regenerated patch:

smiletrl’s picture

Patch at #10 fixed this error for me. Thanks!

I get this error when I generate user in site. This error happens on one of my sites which has installed og package modules. Other sites work fine this the original devel module.

Thanks again!

salvis’s picture

+++ b/devel_generate/devel_generate.fields.inc
@@ -65,7 +65,7 @@ function devel_generate_fields(&$object, $obj_type, $bundle) {
-      $field['translatable'] ?  $object->language : LANGUAGE_NONE => $object_field,
+      $field['translatable'] ?  $object->language : LANGUAGE_NONE,

This is a fundamental change: Instead of setting

$object->{$field['field_name']}['und'] = $object_field;

you're setting

$object->{$field['field_name']}[0] = 'und';

This may avoid the crash, but it does not smell right.

EdgarPE’s picture

@salvis, I think it's NOT setting to

$object->{$field['field_name']}[0] = 'und';

but to:

$object->{$field['field_name']}[0]['und'] = NULL;
k.dani’s picture

Status: Needs review » Needs work

#10 patch doesn't work for me...only the node title is going to be filled, the other fields will be empty, if I generate content after I applied the patch.

massiws’s picture

Same problem here.
After install Organic Group module I get the same error as #1 when I try to generate users or contents.
Apply patch at #10 fixed this error but only title is filled, same as #14.

Yorgg’s picture

#10 worked for me

salvis’s picture

Status: Needs work » Needs review

@EdgarPE:
You could be right, thanks for catching that. I think it should be written with => NULL for clarity.

Still, we have anecdotal evidence for and against the patch, and no one besides the patch author has made an effort to understand what is happening.

#10 may get us closer to a solution and may be sufficient in some cases — we need a code-level review by a third party who knows this stuff.

vadim.jin’s picture

vadim.jin’s picture

Issue summary: View changes

I wrote the wrong error. Here is the right one.

willzyx’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Closing for lack of activity. Feel free to reopen if the issue still exists