SemanticMediaWiki / Mermaid

Provides a parser function to generate diagrams and flowcharts with the help of the mermaid script language
https://www.mediawiki.org/wiki/Extension:Mermaid
Other
36 stars 24 forks source link

FYI Deprecation warnings #80

Closed danshearer closed 3 years ago

danshearer commented 3 years ago

I'm debugging an unrelated problem, and I noticed these deprecation warnings after getting the latest mermaid via composer. I didn't see an issue logged for them, so here you are. Functionality does not appear affected, however I'm seeing some fragility so I'm going through every option...

Setup and configuration

Issue

Produces a stack trace and outputs:

Deprecated: Use of Revision::newFromTitle was deprecated in MediaWiki 1.31. [Called from FDDisplayDiagram::run in /var/www/cv/extensions/FlexDiagrams/includes/FD_DisplayDiagram.php at line 57] in /var/www/cv/includes/debug/MWDebug.php on line 376

Deprecated: Use of Revision::__construct was deprecated in MediaWiki 1.31. [Called from Revision::newFromTitle in /var/www/cv/includes/Revision.php at line 146] in /var/www/cv/includes/debug/MWDebug.php on line 376

Deprecated: Use of Revision::getContent was deprecated in MediaWiki 1.31. [Called from FDDisplayDiagram::run in /var/www/cv/extensions/FlexDiagrams/includes/FD_DisplayDiagram.php at line 58] in /var/www/cv/includes/debug/MWDebug.php on line 376

Steps to reproduce the observation (recommendation is to use the sandbox):

View any diagram with debugging switched on in LocalSettings.php

danshearer commented 3 years ago

Actually I think this belongs over at mermaidjs, not here.

Along with the crashdump I've finally been able to isolate.