2016-07-07 99 views
1

我遇到此問題。當我想編輯某些東西時,工具欄不顯示。我將Wiki從1.23升級到1.27,PHP版本從5.3升級到5.6。從1.23升級到1.27後,Mediawiki編輯工具欄丟失

我打開谷歌瀏覽器的控制檯,我得到這個錯誤:

  • Gadget "wikEd" was not loaded. Please migrate it to use ResourceLoader.

  • Uncaught ReferenceError: importScript is not defined. -> (anonymous function) @ load.php?debug=true&lang=es&modules=site&only=scripts&skin=monobook&version=9f6eab9f43c7:26

  • Uncaught ReferenceError: importScriptURI is not defined. ->

initializeRefTools @ load.php?debug=true&lang=es&modules=ext.gadget.refToolbar&only=scripts&skin=monobook&version=9f6eab…:16

fire @ load.php?debug=true&lang=es&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=kvvF0DI1:3148

fireWith @ load.php?debug=true&lang=es&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=kvvF0DI1:3260

ready @ load.php?debug=true&lang=es&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=kvvF0DI1:3472

completed @ load.php?debug=true&lang=es&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=kvvF0DI1:3503

Here is an image of the errors

我去特殊:配件和我編輯wikEd的配置,我把這個:wikEd[ResourceLoader]|wikEd.js

但仍然無法正常工作。

而且我配置WikiEditor擴展:

wfLoadExtension('WikiEditor'); // at the bottom of my LocalSettings.php 

$wgDefaultUserOptions['usebetatoolbar'] = 1; 

$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; 

$wgDefaultUserOptions['wikieditor-preview'] = 1; 

$wgDefaultUserOptions['wikieditor-publish'] = 1; 

任何幫助嗎?

回答

0

您有一個JavaScript錯誤會中斷一切,具體取決於JavaScript。嘗試編輯您的Common.js/Monobook.js以刪除對importScriptimportScriptURI的任何引用,清空wikEd小工具等,直到您刪除違規代碼。

然後,您可以按照migration guide並導入最新版本的小工具來恢復您實際需要的功能。