Last modified: 2010-05-15 15:41:16 UTC
I have edited the file DefaultSettings.php for configure the File-Upload regarding to the
documentation on http://meta.wikimedia.org/wiki/Hilfe:Konfigurieren#Datei-Upload
If i now change $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg' );
and add a filetype such as 'doc' and then reenter mediawiki, i get several exceptions in
the browser like:
Warning: Cannot modify header information - headers already sent by (output started at
C:\Programme\xampp\htdocs\mediawiki-1.7.1\includes\OutputPage.php on line 508
If i now revoke the changes, the errors still are displayed. The only way to fix this
problem is to restore a backup file. How can i configure upload for accepting additional
You should never edit DefaultSettings.php. Every changes you want to make to
settings from DefaultSettings.php should be made in LocalSettings.php (that
overrides the defaults). Copy back the backup and edit LocalSettings.php
What value should be changed in LocalSettings.php to add the additional filetypes?
Well, since there is no corresponding value in LocalSettings.php, you should
copy/paste the code you want from DefaultSettings.php.
I would put near the end (not at the end) of the file the following:
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'doc' );
Ok, that works... Thank you for helping me!!
*** Bug 15822 has been marked as a duplicate of this bug. ***