Topic on Extension talk:WikipediaExtracts

Summary by Sophivorus

WikipediaExtracts has been superseded by Extension:InterwikiExtracts.

Manu.wikidebats (talkcontribs)

On this page, I have this error:

[2d8fa295b759a37197da6c61] /wiki/Mod%C3%A8le:Lien_Wikip%C3%A9dia Error from line 38 of /var/www/wikidebats.org/w/extensions/WikipediaExtracts/WikipediaExtractsError.php: Access to undeclared static property: WikipediaExtracts::$contentLanguage

Backtrace:

#0 /var/www/wikidebats.org/w/extensions/WikipediaExtracts/WikipediaExtracts.php(51): WikipediaExtractsError->getHtmlMessage()

#1 /var/www/wikidebats.org/w/includes/parser/Parser.php(3426): WikipediaExtracts::onFunctionHook(Parser, string, string, string)

#2 /var/www/wikidebats.org/w/includes/parser/Parser.php(3127): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)

#3 /var/www/wikidebats.org/w/includes/parser/Preprocessor_DOM.php(1277): Parser->braceSubstitution(array, PPTemplateFrame_DOM)

#4 /var/www/wikidebats.org/w/includes/parser/Parser.php(3305): PPFrame_DOM->expand(DOMElement)

#5 /var/www/wikidebats.org/w/includes/parser/Preprocessor_DOM.php(1277): Parser->braceSubstitution(array, PPFrame_DOM)

#6 /var/www/wikidebats.org/w/includes/parser/Parser.php(2942): PPFrame_DOM->expand(DOMElement, integer)

#7 /var/www/wikidebats.org/w/includes/parser/Parser.php(1293): Parser->replaceVariables(string)

#8 /var/www/wikidebats.org/w/includes/parser/Parser.php(443): Parser->internalParse(string)

#9 /var/www/wikidebats.org/w/includes/content/WikitextContent.php(323): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)

#10 /var/www/wikidebats.org/w/includes/content/AbstractContent.php(516): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)

#11 /var/www/wikidebats.org/w/includes/poolcounter/PoolWorkArticleView.php(144): AbstractContent->getParserOutput(Title, integer, ParserOptions)

#12 /var/www/wikidebats.org/w/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()

#13 /var/www/wikidebats.org/w/includes/page/Article.php(604): PoolCounterWork->execute()

#14 /var/www/wikidebats.org/w/includes/actions/ViewAction.php(68): Article->view()

#15 /var/www/wikidebats.org/w/includes/MediaWiki.php(500): ViewAction->show()

#16 /var/www/wikidebats.org/w/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#17 /var/www/wikidebats.org/w/includes/MediaWiki.php(861): MediaWiki->performRequest()

#18 /var/www/wikidebats.org/w/includes/MediaWiki.php(524): MediaWiki->main()

#19 /var/www/wikidebats.org/w/index.php(42): MediaWiki->run()

#20 {main}

How to resolve it? Thanks in advance!

Sophivorus (talkcontribs)

Download the latest version and this should no longer be an issue.

Manu.wikidebats (talkcontribs)

Thank you! Now there is this error:

Notice: Undefined property: stdClass::$extract in /var/www/wikidebats.org/w/extensions/WikipediaExtracts/WikipediaExtracts.php on line 103

and: La page '<a target="_blank" rel="nofollow noreferrer noopener" class="external free" href="https://fr.wikipedia.org/wiki/Revenu'">https://fr.wikipedia.org/wiki/Revenu'</a> n’a pas été trouvée(= "The page ... has not been found")

The problem seems to come from a change in the new version of the extension. Before, it was possible to use the URL of the Wikipedia article instead of the title of the article. Now, when I use the URL as a parameter, this error occurs...

Sophivorus (talkcontribs)

Hi, yes, unfortunately I removed support for using the URL instead of the title, because guaranteeing safe parsing is quite difficult and I'm trying to get this extension approved/deployed on Wikiversity. Sorry, only way is to use titles for now.