Topic on Extension talk:PDFEmbed

Error with MW 1:34.2 undefined method: getUserFactory

1
Robinhair2441 (talkcontribs)

Just installed PDFEmbed 3.0.0 on a MediWiki 1:34.2 and php 7.4 and got the following error. I assumed PDFEmbed 3.0.0 includes any previous items fixed in this discussion area?


[Y20UWoSC-V0pUiyM3altfQAAABQ] /wiki/xxxxxxxxxx Error from line 115 of /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/extensions/PDFEmbed/PDFEmbed.hooks.php: Call to undefined method MediaWiki\MediaWikiServices::getUserFactory()

Backtrace:

#0 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/parser/Parser.php(4293): PDFEmbed::generateTag(string, array, Parser, PPFrame_Hash)

#1 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/parser/PPFrame_Hash.php(328): Parser->extensionSubstitution(array, PPFrame_Hash)

#2 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/parser/Parser.php(3330): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)

#3 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/parser/Parser.php(1489): Parser->replaceVariables(string)

#4 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/parser/Parser.php(593): Parser->internalParse(string)

#5 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/content/WikitextContent.php(368): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)

#6 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/content/AbstractContent.php(555): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)

#7 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/Revision/RenderedRevision.php(264): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)

#8 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/Revision/RenderedRevision.php(236): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)

#9 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)

#10 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)

#11 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)

#12 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/Revision/RenderedRevision.php(198): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)

#13 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/poolcounter/PoolWorkArticleView.php(196): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#14 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/poolcounter/PoolCounterWork.php(125): PoolWorkArticleView->doWork()

#15 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/page/Article.php(791): PoolCounterWork->execute()

#16 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/actions/ViewAction.php(63): Article->view()

#17 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/MediaWiki.php(511): ViewAction->show()

#18 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)

#19 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/MediaWiki.php(900): MediaWiki->performRequest()

#20 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/includes/MediaWiki.php(527): MediaWiki->main()

#21 /var/www/vhosts/xxxxx.xxx/httpdocs/mediawiki/index.php(44): MediaWiki->run()

#22 {main}

Reply to "Error with MW 1:34.2 undefined method: getUserFactory"