mediaWiki 中的 FCKeditor 扩展抛出错误
我正在尝试在 mediaWiki 中添加 FCKeditor 扩展,并且遵循了其文档中写入的所有说明 http://www.mediawiki.org/wiki/Extension:FCKeditor_(官方)< /a>
但它引发了我这个错误。
严格标准:FCKeditorParser::makeImage()的声明应与C:\www\wiki\extensions\FCKeditor\FCKeditorParser.body.php中的FCKeditorParserWrapper::makeImage()的声明兼容上线707
严格标准:FCKeditorParser::parse()的声明应与C:\www\wiki\extensions\FCKeditor\FCKeditorParser.body.php中的FCKeditorParserWrapper::parse()的声明兼容上线707
I'm trying to add FCKeditor extension in mediaWiki and I followed all the instructions that are written in their documentation
http://www.mediawiki.org/wiki/Extension:FCKeditor_(Official)
but it throws me this error.
Strict Standards: Declaration of FCKeditorParser::makeImage() should be compatible with that of FCKeditorParserWrapper::makeImage() in C:\www\wiki\extensions\FCKeditor\FCKeditorParser.body.php on line 707
Strict Standards: Declaration of FCKeditorParser::parse() should be compatible with that of FCKeditorParserWrapper::parse() in C:\www\wiki\extensions\FCKeditor\FCKeditorParser.body.php on line 707
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我在 FCKeditorParser.body.php 第 338 行进行了以下更改
: function makeImage ($nt, $options ,$holders=false)
第 488 行: function parse ($text, Headlined $title、ParserOptions $options、$linestart = true、$clearState = true、$revid = 0)
I have carried out the following changes in FCKeditorParser.body.php
Line 338: function makeImage ($nt, $options ,$holders=false)
line 488: function parse ($text, Headlining $title, ParserOptions $options, $linestart = true, $clearState = true, $revid = zero)
看来您的 PHP 正在严格模式下运行。最新版本的 FCK Editor 似乎在严格的 PHP 方面存在问题。请参阅此处FCK 编辑器扩展对话。
It seems your PHP is running in strict mode. The latest version of FCK Editor seems to have issues with strict PHP. See here FCK Editor Extension Talk.
您应该仔细检查 LocalSettings.php 中的所有路径变量,尤其是 $IP。
在扩展本身中,您应该验证 $wgFCKEditorExtDir 和 $wgFCKEditorDir 设置正确。
You should double check all your path variables in LocalSettings.php, especially $IP.
In the extension itself you should verify that $wgFCKEditorExtDir and $wgFCKEditorDir are set correctly.