Manual talk:LocalSettings.php/Archive 1

No title
It said "Don't edit this file with Notepad, TextEdit, or other text editor that adds byte order marks to files, or you will break your wiki." so what can I use to edit it?--一個正常人 (talk) 12:28, 26 September 2012 (UTC)
 * Notepad++ and Vim are both good options.--Jasper Deng (talk) 15:14, 26 September 2012 (UTC)
 * Thanks.--一個正常人 (talk) 08:57, 28 September 2012 (UTC)
 * Haha, that's funny. One of the reasons I avoid Notepad++ like the plague is that when I've used it to edit simple ASCII files in the past, it screwed the file up by changing the encoding.  I have used notepad ever since and it left my ASCII files as ASCII (Windows XP and Windows 7).
 * But for LocalSettings.php it's optimal. For one thing it doesn't insert byte-ordering marks (I learned this the hard way on my first attempt at installing MediaWiki myself).--Jasper Deng (talk) 21:42, 24 November 2012 (UTC)
 * Fixed. I have just added that to Template:BOMWarning. --Jörgi123 (talk) 13:44, 30 April 2014 (UTC)

What type of text editor to use?
It says, "Don't edit this file with Notepad or other text editor that adds byte order marks to files, or you will break your wiki." What is a better text editor to use? Metapad? Tisane 02:40, 24 February 2010 (UTC)
 * In reference to this edit, I understand the concern about advertising any particular software, but it would be a useful service to site administrators to provide some guidance as to what text editors are safe. Of course, we can't include a bunch of software names on the LocalSettings.php page, but maybe a link could be provided to a list of suitable and unsuitable text editors? Tisane 22:46, 1 March 2010 (UTC)
 * I wish they were more specific about what the problem is. I've used Notepad to edit LocalSettings.php for use on both windows and linux installations and have never had it create a problem. --Jerry Fallon 22:32, 13 October 2010 (UTC)
 * Any php editor would work Natkabrown (talk) 11:47, 29 May 2013 (UTC) - with help of Yaron Koren
 * Fixed. I have just added that to Template:BOMWarning. --Jörgi123 (talk) 13:44, 30 April 2014 (UTC)

Help needed to repair localsettings.php
Hi all

I need help repairing my localsettings.php after accidentally using notepad to edit it (adds byte order marks to file), please could the answer be in baby steps, I'm very new to this. Currently it's just giving me a blank page rather than the wiki I've been working on.

Many thanks

Mrjohncummings (talk) 13:06, 21 August 2013 (UTC)
 * I have just added that to Template:BOMWarning. --Jörgi123 (talk) 13:44, 30 April 2014 (UTC)

Language
''The wgEmergencyContact variable is the e-mail address of the user to contact if something goes wrong. This e-mail address is used to send internal bug reports to. As an administrator, you want to include your e-mail address here.''
 * I just fixed that. --Jörgi123 (talk) 13:44, 30 April 2014 (UTC)

Problem After Editing LocalSettings.php
On several occasions, I have have tried editing LocalSettings.php by adding "require_once" extensions toward the end (but before the >? characters). This was after uploading the correct php files to the correct directory. After saving, my wiki cannot load. There's no error message--there's just nothing there. It's blank. If I delete the line I added, the wiki comes back just fine. I've edited other variables and it's fine. Let me know if you have any suggestions for this issue. Thanks. Corsulian 01:01, 28 December 2007 (UTC)
 * Make sure that you are getting the correct variations of the Cite and ParserFunctions extension for your PHP version. I think Cite is fine, but the current version of ParserFunctions requires PHP 5 in order to run (and since you're running MediaWiki 1.6.10, I'm assuming you only have PHP 4). Try getting the other version of it and see if that works. And as for your logo, try changing $wgLogo to an absolute path to the image. --Skizzerz talk 15:14, 28 December 2007 (UTC)
 * Thank you. It does appear that I am stuck with PHP 4.  I'll see if that changes things.  As for the image, I am currently using the absolute path.  I'm a little concerned that I can't find any reference to these issues from anyone else.  I'm hoping that I'm not missing some enormous step in my configuration somewhere--I installed the wiki through one of those automated "here's a bunch of free programs you can use" modules through the admin panel that my host provides.  Corsulian 16:25, 28 December 2007 (UTC)
 * Ok, you're setting the wrong path to the logo, which is why it's not appearing. Try  instead (you were linking it to the image page, not the image itself). --Skizzerz talk 16:57, 28 December 2007 (UTC)
 * Thank you--fantastic. The logo is fixed and the ParserFunctions extension is installed.  I was expecting it to fix a few issues I had with the NavBox template but no such luck--I'll look into that more.  I haven't found a PHP4/5 differentiation with the Cite extension yet--the "blank" problem remains at least for now.  I'll continue looking into it--please, anyone, let me know in the meantime if you have specific experience with Cite.php and PHP4.  I'll look to the Cite.php discussion page for more details otherwise. Corsulian 21:40, 28 December 2007 (UTC)

Comments
The comment signs in the default localsettings.php are # or ##, is there any reason for this? It seems to me // or /*...*/ works too, but can this make any problems? --Lastwebpage 14:50, 22 April 2011 (UTC)
 * Comments in PHP are delimited by,   or  , there should be no difference with any of these three methods. i Alex  15:13, 22 April 2011 (UTC)