Closed (fixed)
Project:
Media Browser Plus
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2012 at 17:05 UTC
Updated:
31 Aug 2012 at 12:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
brentratliff commentedPossibly related Warning on the same action:
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in EntityCacheControllerHelper::entityCacheLoad() (line 64
Comment #2
brentratliff commentedChanging line 332 to:
$fids = $form_state['file']->fid;fixes the issue and correctly applies the tags for single images. It does not work for multiple images using plupload.Comment #3
brentratliff commentedduplicate .....
Comment #4
brentratliff commentedThis patch fixed it for me. Probably not the most elegant way to handle it. It has to check whether one or more files are uploaded in order to grab the fid from the right place. I rolled it from the 2012-02-25 2.x dev tarball.
Comment #5
anandkp commentedI've applied the patch in comment #4 above and it worked beautifully, but there is still a PHP notice.
I don't know how to make Git patches so if someone with the know-how could update the patch above that would be great. The complaint is a for a very tiny thing... See code below:
If anyone can update the patch, that would be great! Thanks to the module maintainers and the persons who looked into the cause and fix for this issue!
Comment #6
Jackinloadup commentedHere is a reroll as requested in #5.
I haven't tested this patch.
Can someone describe how to reproduce this? I've never experienced this myself.
Comment #7
das-peter commentedI've drilled a bit deeper and it heavily depends on the module version of media / file_entity how the structure looks.
Thus I committed a slightly different version which should support the former and current versions of the modules: http://drupalcode.org/project/media_browser_plus.git/commit/6249eeb6c118...