Last modified: 2010-05-15 15:41:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 6902 - Editing the DefaultSettings.php causes the file to get corrupt
Editing the DefaultSettings.php causes the file to get corrupt
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
PC Windows XP
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-08-02 09:58 UTC by Saad Daoud
Modified: 2010-05-15 15:41 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Saad Daoud 2006-08-02 09:58:00 UTC
I have edited the file DefaultSettings.php for configure the File-Upload regarding to the 
documentation on
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\DefaultSettings.php:1) in 
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 
Comment 1 Filip Maljkovic [Dungodung] 2006-08-02 10:13:11 UTC
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
Comment 2 Saad Daoud 2006-08-02 10:18:26 UTC
What value should be changed in LocalSettings.php to add the additional filetypes?

Comment 3 Filip Maljkovic [Dungodung] 2006-08-02 10:20:07 UTC
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' );
Comment 4 Saad Daoud 2006-08-02 10:35:41 UTC
Ok, that works... Thank you for helping me!!
Comment 5 Chad H. 2008-10-04 14:49:15 UTC
*** Bug 15822 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.