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.

Comments

BarisW’s picture

Status: Active » Needs review
StatusFileSize
new1.49 KB

And the patch.

miroslavbanov’s picture

Had 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.

das-peter’s picture

Status: Needs review » Fixed

Thank 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 ;)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.