Home > Know-how >
MediaWiki - CMS >
Reference Tips & Tricks > Error Messages (Hints)
|
|
|
4.7 Error Messages (Hints)
|
15.06.2007
|
X
X
X
-
Upload warning
This file contains HTML or script code that my be erroneously be interpreted by a web browser.
Event uploadscripted is thrown by includes/SpecialUpload.php
#check for htmlish code and javascript
if( $this->detectScript ( $tmpfile, $mime ) ) {
return new WikiErrorMsg( 'uploadscripted' );
}
Solution: See Upload html files
-
Upload warning
".ppt" is not a recommended image file format.
Solution: See $wgFileExtensions
-
Upload warning
The file is corrupt or has an incorrect extension. Please check the file and upload again.
MediaWiki tends to misrecognize the correct Mime type while uploading files;
usually the Mime type "text/plain" is being allocated instead! You may add your special file extension(s) in
MimeMagic.php as a very ugly quick fix:
text/plain txt doc ppt
Or better, edit includes/DefaultSettings.php: $wgVerifyMimeType= false;
See also my work-around on the uploading page the Word problem.
-
Sorry, uploading is disabled.
See Uploading
-
This file contains HTML or script code that may be erroneously be interpreted by a web browser.
Found @ MediaWiki: 1.6.8
→ uploadscripted
Add green line to includes/SpecialUpload.php:
#check for htmlish code and javascript
if( $this->detectScript ( $tmpfile, $mime ) ) {
if ($mime == 'text/plain') { return true; } # XX Don't be paranoid
return new WikiErrorMsg( 'uploadscripted' );
}
See also:
← 4.6 MediaWiki Recipes (Tips)
A - Z Index
Top
Disclaimer
4.8 Namespaces →
$Id: error-messages.html,v 1.110 2007/06/15 11:49:14 webcms Exp $
copyright © 2005-2007 by reto