I updated to 7.15 the other day and every time I run core I got this error.

CommentFileSizeAuthor
screenshot.png17.71 KBDrupalDan

Comments

cjtriplett’s picture

Are you still having this issue?

faribafana’s picture

Title: EntityMalformedException: Missing bundle property on entity of type file. in entity_extract_ids() (line 7562 of C:\wamp\www\incl » EntityMalformedException: Missing bundle property on entity of type file. in entity_extract_ids()
Version: 7.15 » 7.14
Component: entity system » field system

I have been struggling with the same problem for a couple of days now. I used features to bring in a content type that includes a couple of field collections. When I delete the field collections everything is fine. But when I recreate them, I get the error again. I have a deadline coming. Would somebody please help? I appreciate any pointer.

lorenv’s picture

I am having the same issue without field collections (or any other modules turned on really). Ill share more as I figure out whats going on.

DrupalDan’s picture

yes, the problem persists.

paskainos’s picture

I have seen this too in a dev environment. In my case the issue appears to be related to file / media handling (i.e. somewhere in the neighborhood of; File entity, Media, Media Browser Plus, Media Gallery, Multiple forms, and / or Plupload integration). There were some other modules I noticed in dev that seemed to generate this issue. I don't recall them specifically, but I believe it was the same case (i.e. file / media handling related).

paskainos’s picture

Digging deeper, it appears related to:
#1266620: Missing bundle property on entity of type file error
which is a duplicate of:
#1268378: Empty file type causes exceptions in Drupal 7.8
(which Dave Reid mentioned in comment #30)

Simply put, it appears File entity / Media related, specifically. A quick check is to follow the step(s) outlined by leeresglas in comment #5 of the former, namely:

I took a look into my database and discovered that the table "file_managed" has a field "type". I filled in the 'type' of the [empty] entity object in question [i.e. db query like: UPDATE `YOURDBNAME_file_managed` SET `type`='image' WHERE `type`=0;] and it works.

The latter of the two issues has more 'more work on it' (also mentioned by Dave Reid in comment #30) and there are several related issue posts, but I found these two the most useful & helpful in my case.

UPDATE: for those who encounter this issue as a result of the empty 'file_managed' table 'type' records, the db query posted by HongPong in comment #11 on this issue - #1446440: Unable to view me media management pages (EntityMalformedException: Missing bundle property...) - is best to use, namely:

UPDATE file_managed set type = 'application' where filemime = 'application/pdf' OR filemime = 'application/msword' OR filemime = 'application/rtf';
UPDATE file_managed set type = 'audio' where filemime = 'audio/mpeg';
UPDATE file_managed set type = 'image' where filemime = 'image/jpeg' OR filemime = 'image/png' OR filemime = 'image/png' OR filemime= 'image/gif';
legolasbo’s picture

Closing this issue as it has gone without any updates for more than a year and all related issues mentioned by paskainos have been closed aswell.

legolasbo’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

Still getting used to the D7 way of updating issues :)