The commit in #2000934: Allow selection of which folder a file is to on the file/add form adressed a critical issue where media_internet related modules like media_youtube or media_vimeo became unusable with the following PHP error:
The specified file youtube://v/fSed_FPXWrI could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
EntityMalformedException: Missing bundle property on entity of type file. in entity_extract_ids() (line 7766 of includes/common.inc).In the next comment, I will post a patch that fixes this problem!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | php_exception_after-2454823-1.patch | 657 bytes | hctom |
Comments
Comment #1
hctom... and here is the corresponding patch
Comment #2
hctomComment #3
hctomComment #4
colanDowngrading priority as this isn't a problem for users not using Media.
Comment #5
hctom... okay... but doesn't this also affect every file entity using a non writable or remote stream wrapper?
Comment #6
colanFair enough, but it's still not critical. Critical issues imply that the module is useless for everybody. See Priority levels of issues.
Comment #7
colanLooks good. Thanks for catching & fixing it!
Comment #8
broeker commentedNote that there is a competing patch, and both seem to fix the same issue with a slightly different tack:
https://www.drupal.org/node/2443059
Comment #9
devin carlson commented#2000934: Allow selection of which folder a file is to on the file/add form has been reverted.
Comment #10
joseph.olstadsee patch #30 from #2000934: Allow selection of which folder a file is to on the file/add form