Page MenuHomePhabricator

Attempts to upload large PDFs fail without error message (may be true for all large files)
Closed, InvalidPublic

Description

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

Details

Reference
bz12090

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:00 PM
bzimport set Reference to bz12090.
bzimport added a subscriber: Unknown Object (MLST).

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.

dtrebbien wrote:

Hi Brion,

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.

Daniel

dtrebbien wrote:

A screenshot of the filled-out form

Attached:

Clipboard01.gif (1×1 px, 95 KB)

dtrebbien wrote:

A screenshot of the page I see after clicking "Upload file"

Attached:

Clipboard02.gif (1×1 px, 95 KB)

dtrebbien wrote:

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.