Topic on Extension talk:Tabs/Flow

Kanto501 (talkcontribs)

When I installed this extension on a 1.39.1 version of Mediawiki I get these Deprecation errors:

Deprecated: Required parameter $parser follows optional parameter $attr in /mgi/software/test/mediawiki/extensions/Tabs/includes/Tabs.php on line 60


Deprecated: Required parameter $frame follows optional parameter $attr in /mgi/software/test/mediawiki/extensions/Tabs/includes/Tabs.php on line 60


Deprecated: Required parameter $parser follows optional parameter $attr in /mgi/software/test/mediawiki/extensions/Tabs/includes/Tabs.php on line 142


Deprecated: Required parameter $parser follows optional parameter $attr in /mgi/software/test/mediawiki/extensions/Tabs/includes/Tabs.php on line 225


Deprecated: Required parameter $frame follows optional parameter $attr in /mgi/software/test/mediawiki/extensions/Tabs/includes/Tabs.php on line 225


will these be fixed soon or is something else going on I need to dig in to?

Kanto501 (talkcontribs)

ok I fixed the issues for example on line 60 of the Tabs.php file you need to change:

public function renderTab( $input, $attr = [], $parser, $frame ) {

to

public function renderTab( $input, $parser, $frame, $attr = [] ) {

you would basically do the same thing for lines 142 and 225.

Kanto501 (talkcontribs)

well... now I get this when trying to add tabs to a page:

Warning: Attempt to read property "tabsData" on array in /mediawiki/extensions/Tabs/includes/Tabs.php on line 228


Warning: Trying to access array offset on value of type null in /mediawiki/extensions/Tabs/includes/Tabs.php on line 228


Warning: Attempt to read property "tabsData" on array in /mediawiki/extensions/Tabs/includes/Tabs.php on line 229


Warning: Trying to access array offset on value of type null in /mediawiki/extensions/Tabs/includes/Tabs.php on line 229


I could not figure this out. I wonder if it is related to mediawiki 1.39.1 and using python version 8.0.28 which is my setup?

Xhan (talkcontribs)

python ? PHP you mean? :-)

I have exactly the same problem with :

MediaWiki : 1.39.3

PHP: 8.2.7 (fpm-fcgi)

OS : Fedora 38


Warn :

Warning: Attempt to read property "tabsData" on array in /usr/share/mediawiki/extensions/Tabs/includes/Tabs.php on line 228

Warning: Trying to access array offset on value of type null in /usr/share/mediawiki/extensions/Tabs/includes/Tabs.php on line 228

Warning: Attempt to read property "tabsData" on array in /usr/share/mediawiki/extensions/Tabs/includes/Tabs.php on line 229

Warning: Trying to access array offset on value of type null in /usr/share/mediawiki/extensions/Tabs/includes/Tabs.php on line 229


Internal error :

[ZJGtbOzlGDYpFErl95X7PQAAAEE] /wiki/index.php?title=test Error: Attempt to modify property "tabsData" on array

Backtrace:

from /usr/share/mediawiki/extensions/Tabs/includes/Tabs.php(232)

#0 /usr/share/mediawiki/includes/parser/Parser.php(4023): Tabs->renderTabs()

#1 /usr/share/mediawiki/includes/parser/PPFrame_Hash.php(353): Parser->extensionSubstitution()

#2 /usr/share/mediawiki/includes/parser/Parser.php(2955): PPFrame_Hash->expand()

#3 /usr/share/mediawiki/includes/parser/Parser.php(1610): Parser->replaceVariables()

#4 /usr/share/mediawiki/includes/parser/Parser.php(724): Parser->internalParse()

#5 /usr/share/mediawiki/includes/content/WikitextContentHandler.php(301): Parser->parse()

#6 /usr/share/mediawiki/includes/content/ContentHandler.php(1720): WikitextContentHandler->fillParserOutput()

#7 /usr/share/mediawiki/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput()

#8 /usr/share/mediawiki/includes/Revision/RenderedRevision.php(265): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput()

#9 /usr/share/mediawiki/includes/Revision/RenderedRevision.php(237): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()

#10 /usr/share/mediawiki/includes/Revision/RevisionRenderer.php(221): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()

#11 /usr/share/mediawiki/includes/Revision/RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()

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

#13 /usr/share/mediawiki/includes/Revision/RenderedRevision.php(199): call_user_func()

#14 /usr/share/mediawiki/includes/poolcounter/PoolWorkArticleView.php(91): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#15 /usr/share/mediawiki/includes/poolcounter/PoolWorkArticleViewCurrent.php(97): PoolWorkArticleView->renderRevision()

#16 /usr/share/mediawiki/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleViewCurrent->doWork()

#17 /usr/share/mediawiki/includes/page/ParserOutputAccess.php(299): PoolCounterWork->execute()

#18 /usr/share/mediawiki/includes/page/Article.php(713): MediaWiki\Page\ParserOutputAccess->getParserOutput()

#19 /usr/share/mediawiki/includes/page/Article.php(528): Article->generateContentOutput()

#20 /usr/share/mediawiki/includes/actions/ViewAction.php(78): Article->view()

#21 /usr/share/mediawiki/includes/MediaWiki.php(542): ViewAction->show()

#22 /usr/share/mediawiki/includes/MediaWiki.php(322): MediaWiki->performAction()

#23 /usr/share/mediawiki/includes/MediaWiki.php(904): MediaWiki->performRequest()

#24 /usr/share/mediawiki/includes/MediaWiki.php(562): MediaWiki->main()

#25 /usr/share/mediawiki/index.php(50): MediaWiki->run()

#26 /usr/share/mediawiki/index.php(46): wfIndexMain()

#27 {main}

Reply to "Deprecation errors"