I just download the current 1.9.2
After setup, I move the LoalSettings.php and play around without problem.
However, if I open the LocalSettings.php with NotePad and save it. (not changing anything), The site just return blank.
I can delete the file and generate a new one. Then mediawiki works again.
Can anyone help me?
On 06/02/07, kent sin kentsin@gmail.com wrote:
However, if I open the LocalSettings.php with NotePad and save it. (not changing anything), The site just return blank.
The chances are, notepad is inserting a byte-order mark at the start of the file, which causes PHP to choke. Edit the file with a slightly better text editor, such as jEdit (which is free) or similar, which can be instructed not to do this.
Rob Church
On 06/02/07, Rob Church robchur@gmail.com wrote:
The chances are, notepad is inserting a byte-order mark at the start of the file, which causes PHP to choke. Edit the file with a slightly better text editor, such as jEdit (which is free) or similar, which can be instructed not to do this.
I suppose getting MediaWiki to automagically clean these out is a locked-room problem ...
- d.
On 06/02/07, David Gerard dgerard@gmail.com wrote:
I suppose getting MediaWiki to automagically clean these out is a locked-room problem ...
I'm not 100% sure on it, but I think the problem is that PHP dies on a lower level, at least when parsing the file. Having MediaWiki mess about with people's LocalSettings.php files is *possibly* a dodgy cobbled street, especially when the software relies upon that file to initialise itself.
Rob Church
The leading whitespace that Notepad inserts causes PHP to echo out that whitespace before any PHP processing has occurred. Basically this (note leading space):
<?php
Is the same as this:
<?php echo(' ');
Then, since the page output has already started, it's too late to perform any tasks that require HTTP headers such as setting cookies or establishing a session.
Also, Notepad will not display this leading whitespace that it adds, so to see it you'll need to use a better text editor. For editing PHP files on Windows, I use Notepad++ (a popular open-source text editor for windows).
http://notepad-plus.sourceforge.net/uk/site.htm
On 2/6/07, Rob Church robchur@gmail.com wrote:
On 06/02/07, David Gerard dgerard@gmail.com wrote:
I suppose getting MediaWiki to automagically clean these out is a locked-room problem ...
I'm not 100% sure on it, but I think the problem is that PHP dies on a lower level, at least when parsing the file. Having MediaWiki mess about with people's LocalSettings.php files is *possibly* a dodgy cobbled street, especially when the software relies upon that file to initialise itself.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org