Mediawiki保存模板时出现内部错误

时间:2017-05-03 19:35:18

标签: mediawiki mediawiki-templates

大家, 我正在尝试为mediawiki创建一个模板,这就是我正在做的事情:

  1. 创建一个名为Template:test
  2. 的新页面
  3. 将“{{{1}}}”作为文字
  4. 保存
  5. 然后我得到一个Internall Error页面  带文字:

      

    [ca127b174f26a5c978fe0ec0]   /index.php?title=Template:Test&action=submit来自第1777行的错误   /var/www/public_html/includes/parser/Preprocessor_DOM.php:无法使用   StripState类型的对象为数组

         

    回溯:

         

    0 /var/www/public_html/includes/parser/Parser.php(3776):PPCustomFrame_DOM-> getArgument(string)
      1 /var/www/public_html/includes/parser/Preprocessor_DOM.php(1194):Parser-> argSubstitution(array,PPCustomFrame_DOM)
      2 /var/www/public_html/includes/parser/Parser.php(2931):PPFrame_DOM->展开(DOMElement,整数)
      3 /var/www/public_html/extensions/TinyMCE_MW/TinyMCE_MW.php(264):Parser-> replaceVariables(string,PPCustomFrame_DOM)
      4 /var/www/public_html/includes/Hooks.php(195):wfTinymceParserPaste(Parser,string)
      5 /var/www/public_html/includes/parser/Parser.php(1413):Hooks :: run(string,array)
      6 /var/www/public_html/includes/parser/Parser.php(450):Parser-> internalParseHalfParsed(string,boolean,boolean)
      7 /var/www/public_html/includes/content/WikitextContent.php(330):Parser-> parse(string,Title,ParserOptions,boolean,boolean,NULL)
      8 /var/www/public_html/includes/content/AbstractContent.php(497):WikitextContent-> fillParserOutput(Title,NULL,ParserOptions,boolean,   ParserOutput)
      9 /var/www/public_html/includes/page/WikiPage.php(2198):AbstractContent-> getParserOutput(Title,NULL,ParserOptions)
      10 /var/www/public_html/includes/page/WikiPage.php(1717):WikiPage-> prepareContentForEdit(WikitextContent,NULL,User,string,   布尔)
      11 /var/www/public_html/includes/EditPage.php(2144):WikiPage-> doEditContent(WikitextContent,string,integer,boolean,   用户,字符串,数组)
      12 /var/www/public_html/includes/EditPage.php(1470):EditPage-> internalAttemptSave(array,boolean)
      13 /var/www/public_html/includes/EditPage.php(612):EditPage-> attemptSave(array)
      14 /var/www/public_html/includes/actions/EditAction.php(59):EditPage-> edit()
      15 /var/www/public_html/includes/actions/SubmitAction.php(38):EditAction-> show()
      16 /var/www/public_html/includes/MediaWiki.php(495):SubmitAction-> show()   17 /var/www/public_html/includes/MediaWiki.php(289):MediaWiki-> performAction(文章,标题)
      18 /var/www/public_html/includes/MediaWiki.php(851):MediaWiki-> performRequest()
      19 /var/www/public_html/includes/MediaWiki.php(512):MediaWiki-> main()
      20 /var/www/public_html/index.php(43):
      MediaWiki-> run()
      21 {main}

0 个答案:

没有答案