Topic on Project:Support desk

Pooja2425 (talkcontribs)

Hi,

<pdf width="780" height="560">Flow_charts.pdf</pdf>

Please suggest me which extension i have to use to work if we include pdf in this type. Its working in Version 1.31 . But not working in v 1.35.3.

Osnard (talkcontribs)
Pooja2425 (talkcontribs)

HI ,

Product Version
MediaWiki 1.35.3
PHP 7.4.23 (apache2handler)
MySQL 8.0.26
Lua 5.1.5
Elasticsearch

when using PDFEmbed giving error " Call to undefined method Parser::disableCache() ", error given below.

<pdf height=800 width=800>CARBONATE_SEISMIC_CHECKLIST.pdf</pdf>

<embed>CARBONATE_SEISMIC_CHECKLIST.pdf</embed>


same file coming with simple embed extension, but not from <pdf> tag.

since we are using <pdf></pdf> tag into 1000+ pages. we cannot change manually.

pls suggest any supporting extension to support <pdf></pdf> tag.


or give working extenison PDFEmbed.

[YUNWMeVcOnGQwRm0xefEugAAAAI] /wiki/index.php/Discipline/Prospect_evaluation Error from line 39 of /data/www/html/wiki/extensions/PDFEmbed/PDFEmbed.hooks.php: Call to undefined method Parser::disableCache()

Backtrace:

#0 /data/www/html/wiki/includes/parser/Parser.php(3922): PDFEmbed::generateTag()

#1 /data/www/html/wiki/includes/parser/PPFrame_Hash.php(330): Parser->extensionSubstitution()

#2 /data/www/html/wiki/includes/parser/Parser.php(2887): PPFrame_Hash->expand()

#3 /data/www/html/wiki/includes/parser/Parser.php(1556): Parser->replaceVariables()

#4 /data/www/html/wiki/includes/parser/Parser.php(651): Parser->internalParse()

#5 /data/www/html/wiki/includes/content/WikitextContent.php(374): Parser->parse()

#6 /data/www/html/wiki/includes/content/AbstractContent.php(590): WikitextContent->fillParserOutput()

#7 /data/www/html/wiki/includes/Revision/RenderedRevision.php(263): AbstractContent->getParserOutput()

#8 /data/www/html/wiki/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()

#9 /data/www/html/wiki/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()

#10 /data/www/html/wiki/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()

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

#12 /data/www/html/wiki/includes/Revision/RenderedRevision.php(197): call_user_func()

#13 /data/www/html/wiki/includes/poolcounter/PoolWorkArticleView.php(216): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#14 /data/www/html/wiki/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleView->doWork()

#15 /data/www/html/wiki/includes/page/Article.php(810): PoolCounterWork->execute()

#16 /data/www/html/wiki/includes/actions/ViewAction.php(74): Article->view()

#17 /data/www/html/wiki/includes/MediaWiki.php(527): ViewAction->show()

#18 /data/www/html/wiki/includes/MediaWiki.php(313): MediaWiki->performAction()

#19 /data/www/html/wiki/includes/MediaWiki.php(940): MediaWiki->performRequest()

#20 /data/www/html/wiki/includes/MediaWiki.php(543): MediaWiki->main()

#21 /data/www/html/wiki/index.php(53): MediaWiki->run()

#22 /data/www/html/wiki/index.php(46): wfIndexMain()

#23 {main}

Osnard (talkcontribs)
Pooja2425 (talkcontribs)

Hi ,

It works only for <pdf>test.pdf</pdf> not for filepath under <pdf> tag.

<pdf width="600" height="450">{{filepath:test.pdf|nowiki}}</pdf>


some pages includes pdf like this, where error came.ie. ⧼embed_pdf_invalid_relative_domain⧽

its working under 1.31.x but not in 1.35.x

pls suggest ,

Osnard (talkcontribs)
Reply to "Pdf issue"