Page MenuHomePhabricator

Catchable fatal error: Argument 3 passed to AbuseFilterHooks::onUploadStashFile() must be of the type array, null given in /var/www/html/w/extensions/AbuseFilter/AbuseFilter.hooks.php on line 730
Closed, ResolvedPublic

Description

When attempting to chunked-upload a file using the API, I get the following error:

Catchable fatal error:  Argument 3 passed to AbuseFilterHooks::onUploadStashFile() must be of the type array, null given in /var/www/html/w/extensions/AbuseFilter/AbuseFilter.hooks.php on line 730

The easiest way to reproduce is to try uploading a file bigger than 5 MB using the UploadWizard.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 305155 had a related patch set uploaded (by Bartosz Dziewoński):
Do not call the 'UploadStashFile' hook for partially uploaded files

https://gerrit.wikimedia.org/r/305155

Change 305155 merged by jenkins-bot:
Do not call the 'UploadStashFile' hook for partially uploaded files

https://gerrit.wikimedia.org/r/305155

Change 305162 had a related patch set uploaded (by Jforrester):
Do not call the 'UploadStashFile' hook for partially uploaded files

https://gerrit.wikimedia.org/r/305162

Change 305162 merged by jenkins-bot:
Do not call the 'UploadStashFile' hook for partially uploaded files

https://gerrit.wikimedia.org/r/305162

Mentioned in SAL [2016-08-17T15:27:29Z] <thcipriani@tin> Synchronized php-1.28.0-wmf.15/includes/upload/UploadBase.php: SWAT: [[gerrit:305162|Do not call the "UploadStashFile" hook for partially uploaded files (T143161)]] PART I (duration: 00m 53s)

Mentioned in SAL [2016-08-17T15:29:08Z] <thcipriani@tin> Synchronized php-1.28.0-wmf.15/includes/api/ApiUpload.php: SWAT: [[gerrit:305162|Do not call the "UploadStashFile" hook for partially uploaded files (T143161)]] PART II (duration: 00m 50s)

So, are we good now after the morning SWAT?

No apologies needed, thanks, all :)