MediaWiki在修改文件后发生混乱。 Checksums可能?

我最近在开发服务器上安装了最新版本的MediaWiki。 我想在编辑页面上添加一些信息,为此需要修改现有的.php文件以添加更多文本。

我用grep来find哪个文件包含我想改变的文本。 原来是languages / messages / MessagesEn.php。 我find了文本,并将其改为我想要的。

我只是最后在“编辑”页面的版权声明下添加了几行额外的信息。 现在我无法访问我的wiki的主页。

有人知道为什么吗? MediaWiki是开源的,所以改变源代码不应该是一个大问题。 我想也许有一些校验和检查,看到我修改文件时,MediaWiki看到文件没有相同的校验和恐慌。

想法?

编辑:我删除了我添加到文件中的文本,MediaWiki又回来了。 这表明我添加的文本是/是问题。 我仍然希望那里的文字,所以我的问题仍然有效。

更新:

这是我正在编辑的一点:

'copyrightwarning' => "Please note that all contributions to {{SITENAME}} are considered to be released under the $2 (see $1 for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.<br /> You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. '''Do not submit copyrighted work without permission!'''", 'copyrightwarning2' => "Please note that all contributions to {{SITENAME}} may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.<br /> You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see $1 for details). '''Do not submit copyrighted work without permission!'''", 

我正在改变文字是这样的:

 'copyrightwarning' => "Please note that all contributions to {{SITENAME}} are considered to be released under the $2 (see $1 for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.<br /> You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. '''Do not submit copyrighted work without permission!''' **blah blah blah blah**", 'copyrightwarning2' => "Please note that all contributions to {{SITENAME}} may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.<br /> You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see $1 for details). '''Do not submit copyrighted work without permission!''' **blah blah blah blah**", 

MediaWiki在这里恐慌吗? 我会尽可能地提供尽可能多的信息,但直到星期一我才再次到办公室。 谢谢

听起来像你的编辑打破了一些PHP,可能是因为不正确的字符转义。

MediaWiki中的大部分内容都不涉及到.php文件的直接编辑。 对MediaWiki界面中的系统消息进行编辑,就像编辑其他页面一样。 系统消息位于以下特殊页面:

http://example.com/index.php?title=Special:AllMessages

具体而言,对于您的版权信息:

http://example.com/index.php?title=MediaWiki:Copyrightwarning&action=edit

http://example.com/index.php?title=MediaWiki:Copyrightwarning2&action=edit