Jump to content

Extension talk:GraphViz/Flow

About this board

Previous discussion was archived at Extension talk:GraphViz/Archive3 on 21 June 2020.

Graphviz exception recordUpload3

3
Jofrey0077 (talkcontribs)

Hi,

my configuration is Centos 8, PHP 7.3.20, Mediawiki 1.35.0, 10.3.17-MariaDB, GraphViz extension 3.0.0.

When I would like save page I got error


MediaWiki\Extension\GraphViz\GraphViz::deleteArticleUploadedFiles: entering

[exception] [YAktfefGunYgbrCYlzSC6gAAANc] /index.php?title=DEVEL:Metodika:GIT&action=submit   PHP Fatal Error from line 495 of /var/www/html/mediawiki-1.35.0/ex

tensions/GraphViz_1_35/includes/UploadLocalFile.php: Declaration of MediaWiki\Extension\GraphViz\UploadLocalFile::recordUpload3($oldver, $comment, $props, User

$user) must be compatible with LocalFile::recordUpload3(string $oldver, string $comment, string $pageText, User $user, $props = false, $timestamp = false, $tags

= Array, bool $createNullRevision = true, bool $revert = false): Status

#0 [internal function]: MWExceptionHandler::handleFatalError()


May you help me somebody ?

108.254.163.238 (talkcontribs)

Hey Jofrey0077, did you figure out this error?

2A12:ACC0:A890:28:27CF:278C:F7F:4837 (talkcontribs)

Someone found out solution onto this?

Reply to "Graphviz exception recordUpload3"

This extension shouldn't die

12
82.249.205.192 (talkcontribs)

I'm shocked by the two banners currently on the front page of this extension. Not only graphviz has no equivalent, and is certainly not replaced by new fancy libraries, but integration to mediawiki is one most the most powerful extension around. It slowly degraded during the past years, not allowing dynamic graphs without tweaks, or other issues getting less and less minor through time, but now it seems that a death threat is upon this unique tool. It shouldn't happen.

Revansx (talkcontribs)

agreed. what to do?

Gota de agua (talkcontribs)

This extension would be very useful for wikis for children, someone could know a patch to make it compatible with medawiki 1.36, please don't deserves die, it's worth installing, there is no other that does the same

Revansx (talkcontribs)

Maybe another way to ask is.. What's the best way to render DOT graphs in MW? If not this extension, what then?

DWizzy (talkcontribs)

I'm leaning towards Extension:Mermaid myself. I know it's not DOT-language, so it'll take some editing of your content.

The Graphviz extension was too finicky as is, in my opinion, so reviving it may not be worth it.

The downside of Mermaid however seems to be it's much less feature-rich. Specifically, you can't modify nodes, including giving them hyperlinks.

AID-PMBD (talkcontribs)

Where GraphViz gets interesting is when you combine it with Semantic Mediawikis Ask queries and the Semantic Result Formats extension.That's our primary usecase for GraphViz, which is actually the reason why we can't upgrade our Mediawiki to 1.35. I would love to see GraphViz in further Mediawiki versions.

Revansx (talkcontribs)

Agreed - MW(and SMW) needs a good core graph extension.. Would love to see Extension:Semantic_MediaWiki_Graph brought back to life as well.

[Update] It looks like a graph showing the relation between pages is possible with SRF via the "graph" format.

AID-PMBD (talkcontribs)

@Revansx Unfortunately the "graph" format uses GraphViz to render the graph images.


I am confident that if there was a realistic estimate of the hours needed to make GraphViz compatible with 1.35, sponsors could be found.

Revansx (talkcontribs)

["graph" format uses GraphViz] - Ah. Yes, that is unfortunate.

[realistic estimate of hours needed to make GraphViz work for 1.35] - I do recall there being an issue with the way GraphViz was generating images for each graph and that being one of the primary issues behind the lack of support. Let me see if I can find that discussion...

AID-PMBD (talkcontribs)

@Revansx I found this discussion regarding the latest efforts to make GraphViz compatible. It seems that as of know none is actively working on the GRaphViz compatibility.

KFDCompiled (talkcontribs)
AID-PMBD (talkcontribs)

That is amazing, thank you for the patch. I will test it as soon as time allows for it.

Reply to "This extension shouldn't die"
KFDCompiled (talkcontribs)

I've been using this extension since before it was abandoned. Got it working again on 1.37.1 using this patchset

Angerdan (talkcontribs)

How did you use/install the pachset?

KFDCompiled (talkcontribs)
Pspviwki (talkcontribs)

Thank you. Very useful extension for which there was no replacement. After upgrade to 1.37.1 it was possible to resurrect the generated pictures from images directory and keep the pages but impossible to create new ones. Now it works again.

Reply to "Resurrected Extension"
Alex Mashin (talkcontribs)
Reply to "Patch"

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"
There are no older topics