Error Message
No specifications provided to ArchivedFile constructor. in mediawiki/php-1.31.0-wmf.21/includes/filerepo/file/ArchivedFile.php:145
Stack Trace
#0 /srv/mediawiki/php-1.31.0-wmf.21/includes/upload/UploadBase.php(822): ArchivedFile->__construct(NULL, integer, string, boolean) #1 /srv/mediawiki/php-1.31.0-wmf.21/includes/upload/UploadBase.php(685): UploadBase->checkAgainstArchiveDupes(boolean) #2 /srv/mediawiki/php-1.31.0-wmf.21/includes/api/ApiUpload.php(661): UploadBase->checkWarnings() #3 /srv/mediawiki/php-1.31.0-wmf.21/includes/api/ApiUpload.php(126): ApiUpload->getApiWarnings() #4 /srv/mediawiki/php-1.31.0-wmf.21/includes/api/ApiUpload.php(104): ApiUpload->getContextResult() #5 /srv/mediawiki/php-1.31.0-wmf.21/includes/api/ApiMain.php(1580): ApiUpload->execute() #6 /srv/mediawiki/php-1.31.0-wmf.21/includes/api/ApiMain.php(542): ApiMain->executeAction() #7 /srv/mediawiki/php-1.31.0-wmf.21/includes/api/ApiMain.php(513): ApiMain->executeActionWithErrorHandling() #8 /srv/mediawiki/php-1.31.0-wmf.21/api.php(94): ApiMain->execute() #9 /srv/mediawiki/w/api.php(3): include(string) #10 {main}
Notes
According to some tests done by @Seb35:
When uploading media in VisualEditor, the issue happens if the file is larger than the authorised file size.