Jump to content

Topic on Extension talk:GraphViz

overrideUserRightsForTesting can not be called outside of tests

1
Fr-ptchek (talkcontribs)

Hello,

I'm trying to use GraphViz on UBUNTU 18.04 server with mediawiki 1.34


After installing with composer

COMPOSER=composer.local.json composer require --no-update mediawiki/graph-viz ^3.1

composer update mediawiki/graph-viz --no-dev -o


installing dependancy

sudo apt-get install graphviz* -y


setting permission to images folder and executable folder


I'm getting this error


[0ae3351c8b263bbe417f997e] /index.php?title=Main_Page&action=submit Exception from line 1614 of /var/www/elastic.camerwiki.net/includes/Permissions/PermissionManager.php: MediaWiki\Permissions\PermissionManager::overrideUserRightsForTesting can not be called outside of tests

Backtrace:

#0 /var/www/elastic.camerwiki.net/includes/user/User.php(263): MediaWiki\Permissions\PermissionManager->overrideUserRightsForTesting(User, array)

#1 /var/www/elastic.camerwiki.net/extensions/GraphViz/includes/GraphViz.php(455): User->__set(string, array)

#2 /var/www/elastic.camerwiki.net/extensions/GraphViz/includes/GraphViz.php(631): MediaWiki\Extension\GraphViz\GraphViz::getUser()

#3 /var/www/elastic.camerwiki.net/extensions/GraphViz/includes/GraphViz.php(433): MediaWiki\Extension\GraphViz\GraphViz::render(string, array, Parser, PPFrame_Hash)

#4 /var/www/elastic.camerwiki.net/includes/parser/Parser.php(4293): MediaWiki\Extension\GraphViz\GraphViz::graphvizParserHook(string, array, Parser, PPFrame_Hash)

#5 /var/www/elastic.camerwiki.net/includes/parser/PPFrame_Hash.php(328): Parser->extensionSubstitution(array, PPFrame_Hash)

#6 /var/www/elastic.camerwiki.net/includes/parser/Parser.php(3330): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)

#7 /var/www/elastic.camerwiki.net/includes/parser/Parser.php(1489): Parser->replaceVariables(string)

#8 /var/www/elastic.camerwiki.net/includes/parser/Parser.php(593): Parser->internalParse(string)

#9 /var/www/elastic.camerwiki.net/includes/content/WikitextContent.php(368): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)

#10 /var/www/elastic.camerwiki.net/includes/content/AbstractContent.php(555): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)

#11 /var/www/elastic.camerwiki.net/includes/Revision/RenderedRevision.php(264): AbstractContent->getParserOutput(Title, NULL, ParserOptions, boolean)

#12 /var/www/elastic.camerwiki.net/includes/Revision/RenderedRevision.php(236): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)

#13 /var/www/elastic.camerwiki.net/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)

#14 /var/www/elastic.camerwiki.net/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)

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

#16 /var/www/elastic.camerwiki.net/includes/Revision/RenderedRevision.php(198): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)

#17 /var/www/elastic.camerwiki.net/includes/Storage/DerivedPageDataUpdater.php(1290): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#18 [internal function]: MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()

#19 /var/www/elastic.camerwiki.net/includes/edit/PreparedEdit.php(104): call_user_func(array)

#20 /var/www/elastic.camerwiki.net/includes/edit/PreparedEdit.php(119): MediaWiki\Edit\PreparedEdit->getOutput()

#21 /var/www/elastic.camerwiki.net/includes/Storage/DerivedPageDataUpdater.php(1268): MediaWiki\Edit\PreparedEdit->__get(string)

#22 /var/www/elastic.camerwiki.net/includes/page/WikiPage.php(2030): MediaWiki\Storage\DerivedPageDataUpdater->getPreparedEdit()

#23 /var/www/elastic.camerwiki.net/extensions/SpamBlacklist/includes/SpamBlacklistHooks.php(30): WikiPage->prepareContentForEdit(WikitextContent)

#24 /var/www/elastic.camerwiki.net/includes/Hooks.php(174): SpamBlacklistHooks::filterMergedContent(DerivativeContext, WikitextContent, Status, string, User, boolean)

#25 /var/www/elastic.camerwiki.net/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#26 /var/www/elastic.camerwiki.net/includes/EditPage.php(1790): Hooks::run(string, array)

#27 /var/www/elastic.camerwiki.net/includes/EditPage.php(2247): EditPage->runPostMergeFilters(WikitextContent, Status, User)

#28 /var/www/elastic.camerwiki.net/includes/EditPage.php(1617): EditPage->internalAttemptSave(NULL, boolean)

#29 /var/www/elastic.camerwiki.net/includes/EditPage.php(682): EditPage->attemptSave(NULL)

#30 /var/www/elastic.camerwiki.net/includes/actions/EditAction.php(55): EditPage->edit()

#31 /var/www/elastic.camerwiki.net/includes/actions/SubmitAction.php(38): EditAction->show()

#32 /var/www/elastic.camerwiki.net/includes/MediaWiki.php(511): SubmitAction->show()

#33 /var/www/elastic.camerwiki.net/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)

#34 /var/www/elastic.camerwiki.net/includes/MediaWiki.php(900): MediaWiki->performRequest()

#35 /var/www/elastic.camerwiki.net/includes/MediaWiki.php(527): MediaWiki->main()

#36 /var/www/elastic.camerwiki.net/index.php(44): MediaWiki->run()

#37 {main}


Please Help

Reply to "overrideUserRightsForTesting can not be called outside of tests"