UserMerge Error

懵懂的女人 提交于 2019-12-23 03:56:29

问题


I recently added the UserMerge extension to my mediawiki installation. Followed the instructions found here. I enabled $wgShowExceptionDetails = true; and it gave me this:

[f9bbe088] /wiki/index.php/Special:UserMerge Exception from line 376 of /wiki/includes/SpecialPage.php: Call to undefined method UserMerge::getPageTitle

Backtrace:


#0 /wiki/extensions/UserMerge/UserMerge_body.php(128): SpecialPage->__call(string, array)
#1 /wiki/extensions/UserMerge/UserMerge_body.php(128): UserMerge->getPageTitle()
#2 /wiki/includes/SpecialPage.php(631): UserMerge->execute(NULL)
#3 /wiki/includes/SpecialPageFactory.php(488): SpecialPage->run(NULL)
#4 /wiki/includes/Wiki.php(298): SpecialPageFactory::executePath(Title, RequestContext)
#5 /wiki/includes/Wiki.php(602): MediaWiki->performRequest()
#6 /wiki/includes/Wiki.php(467): MediaWiki->main()
#7 /wiki/index.php(49): MediaWiki->run()
#8 {main}

Any ideas on a fix?


回答1:


You've downloaded too new of a version of the extension. It looks like you may have grabbed the newest version of the code from the git master rather than downloading the appropriate snapshot version of the extension.

The version of the extension you have makes a call to $this->getPageTitle() in UserMerge_body.php. The getPageTitle function does not even exist (in SpecialPage.php) until Mediawiki version 1.23 (which is not yet released).



来源:https://stackoverflow.com/questions/20976472/usermerge-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!