For debugging...
There is a
Notice: Undefined property: DOMDocument::$documentElement in
/home/~/public_html/w/includes/parser/Preprocessor_DOM.php on line 179 with all error
reporting turned on.
Not a warning or fatal.
I added
if ( !$obj ) {
throw new MWException( "No result for XML: $xml" );
}
Right before line 179, which is where return $obj; is
Still same message
[WI@fKsY2ckcAAAMN9cYAAAAs] /w/index.php?title=Main_Page MWException from line 1284 of
/home/~/public_html/w/includes/parser/Preprocessor_DOM.php: PPFrame_DOM::expand: Invalid
parameter type
Backtrace:
#0 /home/~/public_html/w/includes/parser/Parser.php(3366): PPFrame_DOM->expand(NULL,
integer)
#1 /home/~/public_html/w/includes/parser/Parser.php(655):
Parser->replaceVariables(string, PPFrame_DOM)
#2 /home/~/public_html/w/includes/parser/Parser.php(5101): Parser->preprocess(string,
Title, ParserOptions)
#3 /home/~/public_html/w/includes/cache/MessageCache.php(1036):
Parser->transformMsg(string, ParserOptions, Title)
#4 /home/~/public_html/w/includes/Message.php(1161): MessageCache->transform(string,
boolean, Language, Title)
#5 /home/~/public_html/w/includes/Message.php(829): Message->transformText(string)
#6 /home/~/public_html/w/includes/Message.php(892): Message->toString()
#7 /home/~/public_html/w/includes/OutputPage.php(927): Message->text()
#8 /home/~/public_html/w/includes/OutputPage.php(974):
OutputPage->setHTMLTitle(Message)
#9 /home/~/public_html/w/includes/page/Article.php(504):
OutputPage->setPageTitle(string)
#10 /home/~/public_html/w/includes/actions/ViewAction.php(44): Article->view()
#11 /home/~/public_html/w/includes/MediaWiki.php(503): ViewAction->show()
#12 /home/~/public_html/w/includes/MediaWiki.php(288):
MediaWiki->performAction(Article, Title)
#13 /home/~/public_html/w/includes/MediaWiki.php(745): MediaWiki->performRequest()
#14 /home/~/public_html/w/includes/MediaWiki.php(519): MediaWiki->main()
#15 /home/~/public_html/w/index.php(43): MediaWiki->run()
#16 {main}
Tom
-----Original Message-----
From: MediaWiki-l [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Bartosz
Dziewonski
Sent: Monday, January 30, 2017 1:56 PM
To: MediaWiki announcements and site admin list <mediawiki-l(a)lists.wikimedia.org>
Subject: Re: [MediaWiki-l] Update to php 7.0.15 breaking MW 1.23
Huh, that's interesting. Going through the backtrace, it looks like
Preprocessor_DOM::preprocessToObj is returning null when it really should never do that.
For debugging, can you add the following at the end of the file
/includes/parser/Preprocessor_DOM.php (just before 'return $obj;'):
if ( !$obj ) {
throw new MWException( "No result for XML: $xml" );
}
And report the new error message and backtrace you should get?
--
Bartosz DziewoĆski
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l