Unfortunately all error messages and code are gone, maybe because I enclosed
them in raw-Tags.
The last code with message (without tags):
Code:
$pageTitleText = "my new wikipage";
$pageTitle = Title::newFromText( $pageTitleText );
$pageContentText = "my new page content";
$newWikiPage = WikiPage::factory( $pageTitle );
if (is_null ($newWikiPage )) return "is null";
$pageContent = new WikitextContent( $pageContentText );
if ( is_null ($pageContent)) return "kein content";
$exists = !$newWikiPage->exists();
$newWikiPage->doEditContent( $pageContent, "summary", EDIT_NEW );
Error messages:
[98217b478daf6bb32df82e4d] /disk2/index.php/Sendung MWException from line
6115 of /var/www/html/disk2/includes/parser/Parser.php: Parser state cleared
while parsing. Did you call Parser::parse recursively? Lock is held by: #0
/var/www/html/disk2/includes/parser/Parser.php(412): Parser->lock()
#1 /var/www/html/disk2/includes/content/WikitextContent.php(323):
Parser->parse('<sendung par1="...', Object(Title),
Object(ParserOptions),
true, true, 326)
#2 /var/www/html/disk2/includes/content/AbstractContent.php(516):
WikitextContent->fillParserOutput(Object(Title), 326, Object(ParserOptions),
true, Object(ParserOutput))
#3 /var/www/html/disk2/includes/poolcounter/PoolWorkArticleView.php(144):
AbstractContent->getParserOutput(Object(Title), 326, Object(ParserOptions))
#4 /var/www/html/disk2/includes/poolcounter/PoolCounterWork.php(123):
PoolWorkArticleView->doWork()
#5 /var/www/html/disk2/includes/page/Article.php(604):
PoolCounterWork->execute()
#6 /var/www/html/disk2/includes/actions/ViewAction.php(68): Article->view()
#7 /var/www/html/disk2/includes/MediaWiki.php(500): ViewAction->show()
#8 /var/www/html/disk2/includes/MediaWiki.php(294):
MediaWiki->performAction(Object(Article), Object(Title))
#9 /var/www/html/disk2/includes/MediaWiki.php(861):
MediaWiki->performRequest()
#10 /var/www/html/disk2/includes/MediaWiki.php(524): MediaWiki->main()
#11 /var/www/html/disk2/index.php(42): MediaWiki->run()
#12 {main}
Backtrace:
#0 /var/www/html/disk2/includes/parser/Parser.php(4447): Parser->lock()
#1 /var/www/html/disk2/includes/content/WikitextContent.php(139):
Parser->preSaveTransform(string, Title, User, ParserOptions)
#2 /var/www/html/disk2/includes/page/WikiPage.php(2089):
WikitextContent->preSaveTransform(Title, User, ParserOptions)
#3 /var/www/html/disk2/includes/page/WikiPage.php(1655):
WikiPage->prepareContentForEdit(WikitextContent, NULL, User, string,
boolean)
#4 /var/www/html/disk2/extensions/Lilypond/Sendung.php(175):
WikiPage->doEditContent(WikitextContent, string, integer)
#5 /var/www/html/disk2/includes/parser/Parser.php(3888):
Sendung->hookSendung(string, array, Parser, PPFrame_DOM)
#6 /var/www/html/disk2/includes/parser/Preprocessor_DOM.php(1362):
Parser->extensionSubstitution(array, PPFrame_DOM)
#7 /var/www/html/disk2/includes/parser/Parser.php(2942):
PPFrame_DOM->expand(DOMElement, integer)
#8 /var/www/html/disk2/includes/parser/Parser.php(1293):
Parser->replaceVariables(string)
#9 /var/www/html/disk2/includes/parser/Parser.php(443):
Parser->internalParse(string)
#10 /var/www/html/disk2/includes/content/WikitextContent.php(323):
Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#11 /var/www/html/disk2/includes/content/AbstractContent.php(516):
WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean,
ParserOutput)
#12 /var/www/html/disk2/includes/poolcounter/PoolWorkArticleView.php(144):
AbstractContent->getParserOutput(Title, integer, ParserOptions)
#13 /var/www/html/disk2/includes/poolcounter/PoolCounterWork.php(123):
PoolWorkArticleView->doWork()
#14 /var/www/html/disk2/includes/page/Article.php(604):
PoolCounterWork->execute()
#15 /var/www/html/disk2/includes/actions/ViewAction.php(68): Article->view()
#16 /var/www/html/disk2/includes/MediaWiki.php(500): ViewAction->show()
#17 /var/www/html/disk2/includes/MediaWiki.php(294):
MediaWiki->performAction(Article, Title)
#18 /var/www/html/disk2/includes/MediaWiki.php(861):
MediaWiki->performRequest()
#19 /var/www/html/disk2/includes/MediaWiki.php(524): MediaWiki->main()
#20 /var/www/html/disk2/index.php(42): MediaWiki->run()
#21 {main}
Manuela wrote
ur patience. Error messages are getting more and more
interesting ;-)
Code:
Error message:
--
Sent from:
http://mediawiki-i.429.n8.nabble.com/