When I enable file_entity my site crashes.
This is the log message:
EntityMalformedException: Missing bundle property on entity of type file. in entity_extract_ids() (line 7633 of .../drupal/includes/common.inc).
I've looked over a couple of past threads in regards to this error but this is the first I've seen on 7.17.
I double checked my db for missing node->types but found none.
Comments
Comment #1
mjbirdge commentedWhen trying to view Gallery pages, I get the same error:
EntityMalformedException: Missing bundle property on entity of type file. in entity_extract_ids() (line 7633 in ../includes/common.inc)Also looked over several past threads with similar errors, but this was the only one I could find with 7.17 & Media 7.x-2.x / 7.x-2.0-unstable.
Looking through the file_managed table, all lines have the 'type' and 'filemime' fields populated.
e.g.
SELECT fid,filemime,type from drupal_file_managed;Looking at this issue #1268006: Get error when upgrading from 7.7 to 7.8 EntityMalformedException:Missing bundle property on entity of type file. in entity_extr led me to try to edit common.inc to get more debugging info. Here's a portion of the results from using print_r() to print the entity in question:
So it looks as though there is data for the file type showing: [type] => image.
This looks like it is at very least populated, but I did read elsewhere that changing this to 'jpeg' might be part of the solution. I haven't tried mucking with my DB yet to confirm.
I'm not sure where to go from here yet, but wanted to share this in case it helps someone else.
Comment #2
dave reidWhat are you using to display the Gallery pages? It looks like something is trying to pass in a file field value as a file entity somehow. Can you do a backtrace() where this error happens to help trace where it's being passed from?
Comment #3
dave reidClosing due to lack of information.