Recoverable fatal error: Argument 1 passed to file_delete() must be an instance of stdClass, array given, called in media_browser_plus.module on line 2156 and defined in file_delete() (line 1236 of drupal7/includes/file.inc).
Patch follows.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | media_browser_plus-deleting-media-folder-term-fails-2.patch | 2.23 KB | miroslavbanov |
| #1 | media_browser_plus-deleting-media-folder-term-fails-1.patch | 1.49 KB | BarisW |
Comments
Comment #1
BarisW commentedAnd the patch.
Comment #2
miroslavbanov commentedHad an issue with the patch when I was removing folders from "admin/content/file/folder_list" administration. rmdir() was called twice, resulting in errors. Here is the patch.
Comment #3
das-peter commentedThank you guys for fixing this!
I hope it's ok I set MiroslavBanov as author of the committed patch http://drupalcode.org/project/media_browser_plus.git/commit/ce179c9
@BarisW: You got the author flag for http://drupalcode.org/project/media_browser_plus.git/commit/99b4779 ;)