After upgrading to 7.8 and 7.8, I got this error when editing a node

EntityMalformedException: Missing bundle property on entity of type redirect. in entity_extract_ids() (line 7405 of /drupal/path/includes/common.inc).

disabling the module allows me to edit the node. Tried both beta3 and dev.

Comments

primerg’s picture

Found the problem. It was from en empty "type" field in the redirect table. Fixed it by adding a value using the following sql:
update redirect set type='redirect' where type = '';

It was caused by a script I made to add redirects during a migration. Checking the type column, it was noted it's ok for it to be empty so I did not add any value to it but now drupal wants a value. I think the module should now add a value if it's empty?

webchick’s picture

Category: bug » support
Priority: Critical » Normal

I'm not sure the answer, but it sounds like this is a support request and no longer critical. Adjusting status.

dave reid’s picture

Status: Active » Fixed

Gah, I see in my schema description technically I support it being blank so I have fixed the schema description: http://drupalcode.org/project/redirect.git/commit/da0e109.

Just like with node_save() you have to specify a valid type with your redirect object.

Status: Fixed » Closed (fixed)

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