When the File Entity module (required by the Media project) is enabled, the following exception is raised after you create an import:
EntityMalformedException: Missing bundle property on entity of type file. in entity_extract_ids() (line 7647 of /var/www/drupal-7.x-dev/includes/common.inc).
Steps to reproduce:
- Install standard Drupal 7.x-dev
- Download and install media + user_import
- Enable file_entity + user_import
- Go to People > Import > New Import and create a first import
- Go to People > List Imports
Quick and dirty workaround : define the file "type" in function _user_import_file_deletion of user_import.admin.inc by adding at line 672:
$file->type = 'user_import';
But a better integration with File Entity (using entity_get_info('file') ?) should be implemented.
Comments
Comment #1
gaxze commentedThought i'd pop this fix into a patch - for me this was done on 7.x-1.0-beta5.
Excuse my patch name - trying to follow the naming conventions from: http://drupal.org/patch/submit
Comment #2
ace11 commentedWorks like a charm. Thanks!
Comment #3
FAAREIA commentedTested, works fine.
Using 7.x-1.0-beta6
Thanks
Comment #4
gisleI am unable to reproduce this bug with the lastest snapshot of User Import 7.x-3.x-dev in combination with Media 7.x-2.21 and File Entity 7.x-2.25, following the five steps outlined in the issue summary.
Can anybody confirm that this bug is still in the latest version of User Import 7.x-3.x-dev? And if "yes", please update the steps required to reproduce.
The patch in comment #1 does not apply (the code it patches has been moved from
user_import.admin.inctouser_import.module). However, as noted in the issue summary, this should be resolved by better integration with File Entity.Comment #5
gisleSix year old issue that cannot be reproduced. Time to close.