Hello! The installation was succesfull. After enabling image uploads, and thus only changing false into true, de LocalSettings.php doesn't work anymore. I get this error:
Warning: Cannot modify header information - headers already sent by (output started at /opt/www/avontsk/web/www.derepubliek.eu/vvp/wiki/LocalSettings.php:1) in /opt/www/avontsk/web/www.derepubliek.eu/vvp/wiki/includes/WebResponse.php on line 9
Only the original LocalSettings.php seems to work. It's strange that changing just one option makes the wiki go crazy.
Thanks!
On 15/01/07, Ken Avonts ken.avonts@telenet.be wrote:
Warning: Cannot modify header information - headers already sent by (output started at /opt/www/avontsk/web/www.derepubliek.eu/vvp/wiki/LocalSettings.php:1) in /opt/www/avontsk/web/www.derepubliek.eu/vvp/wiki/includes/WebResponse.php on line 9
Check the top of the file for accidentally-inserted whitespace or garbage characters.
Rob Church
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Rob Church wrote:
On 15/01/07, Ken Avonts ken.avonts@telenet.be wrote:
Warning: Cannot modify header information - headers already sent by (output started at /opt/www/avontsk/web/www.derepubliek.eu/vvp/wiki/LocalSettings.php:1) in /opt/www/avontsk/web/www.derepubliek.eu/vvp/wiki/includes/WebResponse.php on line 9
Check the top of the file for accidentally-inserted whitespace or garbage characters.
Note that some text editors like to insert an invisible character at the beginning of UTF-8 files (the "byte order mark" or BOM).
The BOM character, unfortunately, breaks PHP files because it gets sent to output before any of the code is run. If this happens before HTTP headers are sent, it can cause the above error message and makes the headers fail; if XML is output (such as RSS feeds), it causes the output to be invalid XML, producing errors when the feed is loaded.
So it's necessary to save the file as UTF-8 _without_ BOM, if you have the option available.
- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
Thanks for your reply.
There's no accidentally inserted whitespace whatsoever. That's what makes this all so weird... Maybe your suggestion about the BOM is a good clue. I'm using Windows Notepad to edit the php-files. I cannot find an option about this BOM. Should I use another text-editor instead?
Could it have something to do with FileZilla? Maybe FileZilla inserts something...
----- Original Message ----- From: "Brion Vibber" brion@pobox.com To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Sent: Monday, January 15, 2007 11:20 PM Subject: Re: [Mediawiki-l] cannot change LocalSettings.php
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Rob Church wrote:
On 15/01/07, Ken Avonts ken.avonts@telenet.be wrote:
Warning: Cannot modify header information - headers already sent by (output started at /opt/www/avontsk/web/www.derepubliek.eu/vvp/wiki/LocalSettings.php:1) in /opt/www/avontsk/web/www.derepubliek.eu/vvp/wiki/includes/WebResponse.php on line 9
Check the top of the file for accidentally-inserted whitespace or garbage characters.
Note that some text editors like to insert an invisible character at the beginning of UTF-8 files (the "byte order mark" or BOM).
The BOM character, unfortunately, breaks PHP files because it gets sent to output before any of the code is run. If this happens before HTTP headers are sent, it can cause the above error message and makes the headers fail; if XML is output (such as RSS feeds), it causes the output to be invalid XML, producing errors when the feed is loaded.
So it's necessary to save the file as UTF-8 _without_ BOM, if you have the option available.
- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFq/4iwRnhpk1wk44RApD+AJ9KhYee7t/qE3kiHbzTH1Q0IEOO2gCgr8Gu mSNqgiq7TVL/TMd/sSHxphw= =LeuO -----END PGP SIGNATURE-----
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Ken Avonts wrote:
Thanks for your reply.
There's no accidentally inserted whitespace whatsoever. That's what makes this all so weird... Maybe your suggestion about the BOM is a good clue. I'm using Windows Notepad to edit the php-files. I cannot find an option about this BOM. Should I use another text-editor instead?
Notepad inserts a BOM character if you save as UTF-8, with no option that I'm aware of to remove it. (Though you can re-open the file as ANSI, remove the three bytes at the start, and re-save it...)
I usually use jEdit on Windows (requires Java), though others may have other recommendations.
- -- brion vibber (brion @ pobox.com)
On 16/01/07, Brion Vibber brion@pobox.com wrote:
I usually use jEdit on Windows (requires Java), though others may have other recommendations.
I'm a Dreamweaver user. I do have DW set up to treat files as UTF-8 with no BOM, but it still screws up now and again.
Rob Church
Rob Church wrote:
On 16/01/07, Brion Vibber brion@pobox.com wrote:
I usually use jEdit on Windows (requires Java), though others may have other recommendations.
I'm a Dreamweaver user. I do have DW set up to treat files as UTF-8 with no BOM, but it still screws up now and again.
A second for Dreamweaver as a site management and editing tool. Recent versions are excellent. Has some very nice search and replace features. Not cheap, though.
If you're looking for a Notepad replacement for regular text editing, I use UltraEdit as my default editor for .txt, .php, etc. Loads quite fast, but is feature packed. Has explicit support for UTF-8 and can do conversions. They recently added a well-integrated SFTP/FTP client and Telnet/SSH console, which makes it great Mediawiki hacking. Not free, but I've used it for years and it's paid for itself many times over. http://www.ultraedit.com
Yes, it was the BOM-thing. I'm using jEdit now. Thank a lot for your help, guys!
Ken.
----- Original Message ----- From: "Jeff Lane" jeffl@valvesoftware.com To: mediawiki-l@lists.wikimedia.org Sent: Tuesday, January 16, 2007 11:36 PM Subject: Re: [Mediawiki-l] cannot change LocalSettings.php
Rob Church wrote:
On 16/01/07, Brion Vibber brion@pobox.com wrote:
I usually use jEdit on Windows (requires Java), though others may have other recommendations.
I'm a Dreamweaver user. I do have DW set up to treat files as UTF-8 with no BOM, but it still screws up now and again.
A second for Dreamweaver as a site management and editing tool. Recent versions are excellent. Has some very nice search and replace features. Not cheap, though.
If you're looking for a Notepad replacement for regular text editing, I use UltraEdit as my default editor for .txt, .php, etc. Loads quite fast, but is feature packed. Has explicit support for UTF-8 and can do conversions. They recently added a well-integrated SFTP/FTP client and Telnet/SSH console, which makes it great Mediawiki hacking. Not free, but I've used it for years and it's paid for itself many times over. http://www.ultraedit.com
-- View this message in context: http://www.nabble.com/-Mediawiki-l--cannot-change-LocalSettings.php-tf301723... Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org