Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey,
When using data module to adopt a custom table, create an entity from it and then execute feeds_entity_processor dev module to run an import into the entity, it leads to this warning:
Notice: Undefined index: module in data_entity_feeds_processor_targets_alter() (line 256 of /sites/all/modules/data/data_entity/data_entity.module)
Regards, J.
Comment | File | Size | Author |
---|---|---|---|
#8 | data_entity-feeds-2522112-08.patch | 668 bytes | robertwb |
Comments
Comment #1
jelo CreditAttribution: jelo commentedThis error is caused by Data Entity module. Can be fixed by changing line 256 of data_entity.module:
if ($entity_info['module'] == 'data_entity') {
to
if (isset($entity_info['module']) && $entity_info['module'] == 'data_entity') {
Comment #2
gparsloe CreditAttribution: gparsloe commentedThanks! This worked for me.
Comment #3
joachim CreditAttribution: joachim commentedPlease could you post that change as a patch?
Comment #4
jelo CreditAttribution: jelo commentedSorry, I just tried to make a patch, but I am not setup with GIT yet. When I followed the instructions to make a patch it did not include the submodule in the checkout. I will have to get setup appropriately with the required tools like GIT before I can provide this as patch...
Comment #5
joachim CreditAttribution: joachim commentedIf the data entity sub module wasn't in the checkout then you probably checked out the wrong branch.
Comment #6
gparsloe CreditAttribution: gparsloe commentedIf I import data (and create nodes) without correcting this issue, will it matter? In other words, is this just a warning which I can ignore or will my imported/created nodes be different if I don't correct it? The reason I'm asking is because I don't have write access to the file on the server (my message above is in regards to my local setup) to make the changes and I'm not sure if/when the changes will get made. I'd like to import/create new nodes now. The nodes I'm creating have nothing to do with the data entity module.
Comment #7
Rasti CreditAttribution: Rasti commentedsubscribe
Comment #8
robertwb CreditAttribution: robertwb commentedAttached patch is a literal application of the line of code introduced above. Changing status to "needs review".
Comment #9
joachim CreditAttribution: joachim commentedCommitted. Thanks everyone!