Situation:

I have a custom admin menu for file/add/my-custom-sauce

AND I'm using plupload with media_bulk_upload


Fatal Error:

Recoverable fatal error: Argument 3 passed to file_entity_add_upload() must be of the type array, string given, called in sites/all/modules/contrib/file_entity/file_entity.pages.inc on line 540 and defined in file_entity_add_upload() (line 80 of sites/all/modules/contrib/file_entity/file_entity.pages.inc).

Patch

to fix this and restore the behavior:
see forthcoming patch

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joseph.olstad created an issue. See original summary.

joseph.olstad’s picture

Version: 7.x-2.0-beta2 » 7.x-2.0-beta3
joseph.olstad’s picture

Title: patch for file_entity when using custom file/add/path with plupload and media_bulk_upload » fatal error argument 3 must be array - when using custom file/add/path with plupload and media_bulk_upload
FileSize
701 bytes
joseph.olstad’s picture

Status: Active » Needs review

 

joseph.olstad’s picture

Status: Needs review » Active
joseph.olstad’s picture

Status: Active » Needs review

this patch is working for us in combination with
#2000934: Allow selection of which folder a file is to on the file/add form

and using multiform and media_bulk_upload with plupload (latest releases)

Following this ckeditor recipe with media and media_ckeditor (lastest version of ckeditor)

joseph.olstad’s picture

This patch is required for those using <= php 5.4

  • joseph.olstad committed da66d7a on 7.x-2.x
    Issue #2846795 by joseph.olstad: fatal error argument 3 must be array -...
joseph.olstad’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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