Hi all, I search an article in my localwiki,sometimes it shows the error: Inner error
Preprocessor_DOM::preprocessToObj generated invalid XML
Backtrace:
#0 D:\wamp\www\mediawiki\includes\parser\Parser.php(2579): Preprocessor_DOM->preprocessToObj('<div style="bor...', 1) #1 D:\wamp\www\mediawiki\includes\parser\Parser.php(3008): Parser->preprocessToDom('<div style="bor...', 1) #2 D:\wamp\www\mediawiki\includes\parser\Parser.php(2880): Parser->getTemplateDom(Object(Title)) #3 D:\wamp\www\mediawiki\includes\parser\Preprocessor_DOM.php(959): Parser->braceSubstitution(Array, Object(PPFrame_DOM)) #4 D:\wamp\www\mediawiki\includes\parser\Parser.php(2632): PPFrame_DOM->expand(Object(PPNode_DOM), 0) #5 D:\wamp\www\mediawiki\includes\parser\Parser.php(875): Parser->replaceVariables('{{Infobox_housi...') #6 D:\wamp\www\mediawiki\includes\parser\Parser.php(327): Parser->internalParse('{{Infobox_housi...') #7 D:\wamp\www\mediawiki\includes\Article.php(2955): Parser->parse('{{Infobox_housi...', Object(Title), Object(ParserOptions), true, true, NULL) #8 D:\wamp\www\mediawiki\includes\Article.php(1665): Article->prepareTextForEdit('{{Infobox_housi...') #9 D:\wamp\www\mediawiki\includes\Article.php(1541): Article->doEdit('{{Infobox_housi...', '', 98) #10 D:\wamp\www\mediawiki\extensions\update\update_body.php(65): Article->myUpdateArticle('{{Infobox_housi...', '', false, false) #11 D:\wamp\www\mediawiki\includes\SpecialPage.php(559): Update->execute(NULL) #12 D:\wamp\www\mediawiki\includes\Wiki.php(229): SpecialPage::executePath(Object(Title)) #13 D:\wamp\www\mediawiki\includes\Wiki.php(59): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest)) #14 D:\wamp\www\mediawiki\index.php(116): MediaWiki->initialize(Object(Title), NULL, Object(OutputPage), Object(User),
Object(WebRequest)) #15 {main}
why does this happen?how can I solve this problem?
Thanks :-)
vanessa
李琴 wrote:
Hi all, I search an article in my localwiki,sometimes it shows the error: Inner error
Preprocessor_DOM::preprocessToObj generated invalid XML
why does this happen?how can I solve this problem?
Thanks :-)
vanessa
This "shouldn't happen". Do you use any search extension?
I added some existing extentions like " wikihiero,ParserFunctions,Cite,CharInsert,CategoryTree". Is anyone of them lead to that error?
-----Original Message----- From: Platonides Platonides@gmail.com To: wikitech-l@lists.wikimedia.org Date: Fri, 29 Jan 2010 16:33:55 +0100 Subject: Re: [Wikitech-l] Search article error (Inner error)
李琴 wrote:
Hi all, I search an article in my localwiki,sometimes it shows the error: Inner error
Preprocessor_DOM::preprocessToObj generated invalid XML
why does this happen?how can I solve this problem?
Thanks :-)
vanessa
This "shouldn't happen". Do you use any search extension?
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
* 李琴 qli@ica.stc.sh.cn [Sat, 30 Jan 2010 14:31:43 +0800]:
I added some existing extentions like " wikihiero,ParserFunctions,Cite,CharInsert,CategoryTree". Is anyone of them lead to that error?
These extensions are all used by Wikimedia and are very stable. Parser is a large and complex code. I'd rather suspect that MediaWiki version and extension version could be incompatible, or, perhaps an outdated version of PHP is being used, or the core of MediaWiki was patched. Why not to paste the modified code or to provide the diffs somewhere? But I doubt that Parser questions can be answered quickly, because there are not many experts and they are busy on high profile jobs. You probably have to study the Parser yourself, although it's not easy task. I wonder also if a lot of xml mixed with wikitext in source of article can bring a difficulty to PHP DOM parser, I don't know. Dmitriy
On Sat, Jan 30, 2010 at 3:27 AM, Dmitriy Sintsov questpc@rambler.ru wrote:
- 李琴 qli@ica.stc.sh.cn [Sat, 30 Jan 2010 14:31:43 +0800]:
I added some existing extentions like " wikihiero,ParserFunctions,Cite,CharInsert,CategoryTree". Is anyone of them lead to that error?
These extensions are all used by Wikimedia and are very stable. Parser is a large and complex code. I'd rather suspect that MediaWiki version and extension version could be incompatible, or, perhaps an outdated version of PHP is being used, or the core of MediaWiki was patched. Why not to paste the modified code or to provide the diffs somewhere? But I doubt that Parser questions can be answered quickly, because there are not many experts and they are busy on high profile jobs. You probably have to study the Parser yourself, although it's not easy task. I wonder also if a lot of xml mixed with wikitext in source of article can bring a difficulty to PHP DOM parser, I don't know. Dmitriy
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
At the very least, you can file a bug[1] with the backtrace and your error so hopefully it can be diagnosed (and fixed, if it's indeed a bug on our end). And always take a peak at the currently open bugs, you might be experiencing an already-reported issue--although no bugs come to mind offhand.
https://bugzilla.wikimedia.org
-Chad
2010/1/29 李琴 qli@ica.stc.sh.cn:
Hi all, I search an article in my localwiki,sometimes it shows the error: Inner error
Preprocessor_DOM::preprocessToObj generated invalid XML
This is probably caused by an extension. Try turning off extensions to see if that fixes the problem.
Roan Kattouw (Catrope)
I turned off all my extentions,but it still has that error....
:(
vanessa
-----Original Message----- From: Roan Kattouw roan.kattouw@gmail.com To: Wikimedia developers wikitech-l@lists.wikimedia.org Date: Fri, 29 Jan 2010 18:16:55 +0100 Subject: Re: [Wikitech-l] Search article error (Inner error)
2010/1/29 李琴 qli@ica.stc.sh.cn:
Hi all, I search an article in my localwiki,sometimes it shows the error: Inner error
Preprocessor_DOM::preprocessToObj generated invalid XML
This is probably caused by an extension. Try turning off extensions to see if that fixes the problem.
Roan Kattouw (Catrope)
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
李琴 wrote:
I turned off all my extentions,but it still has that error....
:(
vanessa
What's the wikitext of that Infobox_housi(ing?) template / the pages containing it? Try finding the wikitext that produces the error. It's probably that search is truncating the wikitext, but still that shouldn't produce errors.
The error shows when I search the Template:Babel article.Also my wiki is 'zh_cn'. I think maybe this template is not the only one causes this error.
-----Original Message----- From: Platonides Platonides@gmail.com To: wikitech-l@lists.wikimedia.org Date: Sat, 30 Jan 2010 20:21:46 +0100 Subject: Re: [Wikitech-l] Search article error (Inner error)
李琴 wrote:
I turned off all my extentions,but it still has that error....
:(
vanessa
What's the wikitext of that Infobox_housi(ing?) template / the pages containing it? Try finding the wikitext that produces the error. It's probably that search is truncating the wikitext, but still that shouldn't produce errors.
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org