Closed (fixed)
Project:
Redirect
Version:
7.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2011 at 21:55 UTC
Updated:
18 Nov 2011 at 16:50 UTC
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
Comment #1
primerg commentedFound 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?
Comment #2
webchickI'm not sure the answer, but it sounds like this is a support request and no longer critical. Adjusting status.
Comment #4
dave reidGah, 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.