Last modified: 2010-05-15 15:59:49 UTC
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')
$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
; 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)
Blank page usually means a PHP fatal error. A likely possibility is that the memory limit was exhausted.
Check your PHP error reporting and logging settings and your web server's error log.
I was ambiguous with "blank Special:Upload page". The resulting page is not blank as in completely white. Instead, it looks exactly as if I had visited Special:Upload.
I'll post some screenshots. "Clipboard01.gif" is a screenshot of the filled-out form (for uploading the test file ssdv004.pdf). "Clipboard02.gif" is a screenshot of the page I see after clicking "Upload file".
I am running the server on a new computer with 1Gb of RAM, so I don't think that the action exhausted memory. Additionally, I can use the download form to upload other (smaller) PDFs, but for some reason not large ones.
Created attachment 4411 [details]
A screenshot of the filled-out form
Created attachment 4412 [details]
A screenshot of the page I see after clicking "Upload file"
I fixed it. The problem was that the `post_max_size` option in php.ini was not high enough.
My apologies for filing a bug report.