Author: dtrebbien
Description:
Whenever I attempt to upload a large PDF file (9 Mb is "large", but I don't know the minimum cutoff), the resulting page is a blank Special:Upload page. There is no error message, so I don't know what's wrong. I believe, however, that the file was uploaded, which is why I think that there is a bug in MediaWiki.
The following are the only changes to MediaWiki software that I have made (to LocalSettings.php):
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
$wgEnableUploads = true;
$wgStrictFileExtensions = false;
$wgAllowCopyUploads = true;
$wgUploadSizeWarning = 10*1024*1024;
$wgUseTeX = true;
$wgLaTexCommand = "C:/MiKTeX/main/miktex/bin/latex.exe";
$wgDvipsCommand = "C:/MiKTeX/main/miktex/bin/dvipng.exe";
$wgEnableScaryTranscluding = true;
$wgDefaultSkin = "common";
#$wgShowExceptionDetails = true;
require_once( $IP.'/extensions/Cite.php' );
require_once( $IP.'/extensions/InterWiki.php' );
function simpleWhitelistUserCan($title, $user, $action, $result)
{
if($title=='User:Dtrebbien/Adblock Plus list')
{
$result=true; return false;
}
$result=null;
return true;
}
$wgHooks['userCan'][] = 'simpleWhitelistUserCan';
Note that the Cite extension is one used by Wikipedia and the InterWiki extension is the one from Organic Design.
I am using xcache (no other caching software).
These are the relevant settings from php.ini:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
upload_max_filesize = 40M
so I think that it is not that I have misconfigured PHP.
I have tried to upload two, different "large" PDFs as a Sysop, so I don't think that there is some problem with corrupted PDFs or permissions.
As an example, try to upload: http://www-s.ti.com/sc/techlit/ssdv004.pdf (9.34 Mb)
Version: 1.11.x
Severity: normal