Difference between revisions of "GraphViz MediaWiki extension"
Jump to navigation
Jump to search
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{:Diagrams/Links}} | ||
+ | |||
+ | see | ||
{{Link|target=GraphViz}} | {{Link|target=GraphViz}} | ||
+ | = Links = | ||
+ | * https://www.mediawiki.org/wiki/Extension:GraphViz | ||
+ | * https://www.semantic-mediawiki.org/wiki/Extension:GraphViz | ||
+ | * https://github.com/WolfgangFahl/mediawiki-extensions-GraphViz | ||
+ | = Issues = | ||
+ | == Unknown column 'img_description' in 'field list' == | ||
+ | === Problem === | ||
+ | <pre> | ||
+ | Function: MediaWiki\Extension\GraphViz\UploadLocalFile::recordUpload3 | ||
+ | Error: 1054 Unknown column 'img_description' in 'field list' (localhost) | ||
+ | </pre> | ||
+ | === Diagnosis === | ||
* https://www.mediawiki.org/wiki/Manual:Image_table | * https://www.mediawiki.org/wiki/Manual:Image_table | ||
+ | * {{commit|host=https://github.com|path=WolfgangFahl|project=mediawiki-extensions-GraphViz|subject=work-arounds for Error: 1054 Unknown column 'img_description' in 'field list' and imageMap dependency (bundled)|name=Wolfgang Fahl|date=2020-02-10 11:40:28 +0100|hash=f3cfc18|storemode=subobject|viewmode=line}} | ||
+ | |||
+ | === Therapy === | ||
+ | * https://www.mediawiki.org/wiki/Topic:V2cf1hrkrjb8i2ub | ||
+ | * https://phabricator.wikimedia.org/T226616 | ||
+ | |||
+ | === Workaround === | ||
+ | <source lang='sql'> | ||
+ | alter table image add img_description varchar(255); | ||
+ | alter table oldimage add oi_description varchar(255); | ||
+ | </source> | ||
+ | |||
+ | == Could not acquire lock for "mwstore://local-backend/local-public/3/3f/GraphViz_graph_graphname_dot.svg". == | ||
+ | |||
+ | === Problem === | ||
+ | <pre> | ||
+ | Could not acquire lock for "mwstore://local-backend/local-public/3/3f/GraphViz_graph_graphname_dot.svg". | ||
+ | </pre> | ||
+ | === Diagnosis === | ||
+ | * https://www.mediawiki.org/wiki/Topic:Qz1bltqssxd9o0ic | ||
+ | |||
+ | == Error: Image is invalid or non-existent. == | ||
+ | === Problem === | ||
+ | <pre> | ||
+ | Error: Image is invalid or non-existent. | ||
+ | </pre> | ||
+ | === Diagnosis === | ||
+ | * https://www.semantic-mediawiki.org/wiki/Thread:Help_talk:Graph_format/Error:_Image_is_invalid_or_non-existent. | ||
+ | <source lang='bash' highlight='1,3'> | ||
+ | grep -r "invalid or non-existent" | ||
+ | extensions/ImageMap/i18n/en.json: "imagemap_invalid_image": "Error: Image is invalid or non-existent.", | ||
+ | grep -r "magemap_invalid_image" | ||
+ | ImageMap/includes/ImageMap.php: return self::error( 'imagemap_invalid_image' ); | ||
+ | ImageMap/includes/ImageMap.php: return self::error( 'imagemap_invalid_image' ); | ||
+ | ImageMap/includes/ImageMap.php: return self::error( 'imagemap_invalid_image' ); | ||
+ | ImageMap/includes/ImageMap.php: return self::error( 'imagemap_invalid_image' ); | ||
+ | </source> | ||
+ | <source lang='sql'> | ||
+ | select img_name from image; | ||
+ | +----------------------------------+ | ||
+ | | img_name | | ||
+ | +----------------------------------+ | ||
+ | | GraphViz_graph_rq_dot.svg | | ||
+ | | GraphViz_graph_graphname_dot.svg | | ||
+ | </source> | ||
+ | === Therapy === | ||
+ | unclear | ||
+ | * https://phabricator.wikimedia.org/T244720 | ||
+ | * https://phabricator.wikimedia.org/T244742 | ||
+ | |||
+ | = Diagrams extension = | ||
+ | An alternative approach is outlined in: | ||
+ | * https://www.mediawiki.org/wiki/Extension:Diagrams | ||
+ | Fork at: | ||
+ | * https://github.com/WolfgangFahl/diagrams-extension | ||
+ | == Commits == | ||
+ | {{commit|host=https://github.com|path=WolfgangFahl|project=diagrams-extension|subject=adds Special page with java installation check|name=Wolfgang Fahl|date=2020-02-10 15:34:57 +0100|hash=2964c07|storemode=subobject|viewmode=line}} | ||
+ | {{commit|host=https://github.com|path=WolfgangFahl|project=diagrams-extension|subject=fixes help link|name=Wolfgang Fahl|date=2020-02-10 15:36:04 +0100|hash=5178436|storemode=subobject|viewmode=line}} | ||
+ | {{commit|host=https://github.com|path=WolfgangFahl|project=diagrams-extension|subject=preparese local service alternative|name=Wolfgang Fahl|date=2020-02-10 18:05:49 +0100|hash=7dbdf3e|storemode=subobject|viewmode=line}} |
Latest revision as of 10:16, 17 August 2020
Click here to comment see Diagrams
see GraphViz
Links
- https://www.mediawiki.org/wiki/Extension:GraphViz
- https://www.semantic-mediawiki.org/wiki/Extension:GraphViz
- https://github.com/WolfgangFahl/mediawiki-extensions-GraphViz
Issues
Unknown column 'img_description' in 'field list'
Problem
Function: MediaWiki\Extension\GraphViz\UploadLocalFile::recordUpload3 Error: 1054 Unknown column 'img_description' in 'field list' (localhost)
Diagnosis
Commit | |
---|---|
host | https://github.com |
path | WolfgangFahl |
project | mediawiki-extensions-GraphViz |
subject | work-arounds for Error: 1054 Unknown column 'img_description' in 'field list' and imageMap dependency (bundled) |
name | Wolfgang Fahl |
date | 2020-02-10 11:40:28 +0100 |
hash | f3cfc18 |
Therapy
Workaround
alter table image add img_description varchar(255);
alter table oldimage add oi_description varchar(255);
Could not acquire lock for "mwstore://local-backend/local-public/3/3f/GraphViz_graph_graphname_dot.svg".
Problem
Could not acquire lock for "mwstore://local-backend/local-public/3/3f/GraphViz_graph_graphname_dot.svg".
Diagnosis
Error: Image is invalid or non-existent.
Problem
Error: Image is invalid or non-existent.
Diagnosis
grep -r "invalid or non-existent"
extensions/ImageMap/i18n/en.json: "imagemap_invalid_image": "Error: Image is invalid or non-existent.",
grep -r "magemap_invalid_image"
ImageMap/includes/ImageMap.php: return self::error( 'imagemap_invalid_image' );
ImageMap/includes/ImageMap.php: return self::error( 'imagemap_invalid_image' );
ImageMap/includes/ImageMap.php: return self::error( 'imagemap_invalid_image' );
ImageMap/includes/ImageMap.php: return self::error( 'imagemap_invalid_image' );
select img_name from image;
+----------------------------------+
| img_name |
+----------------------------------+
| GraphViz_graph_rq_dot.svg |
| GraphViz_graph_graphname_dot.svg |
Therapy
unclear
Diagrams extension
An alternative approach is outlined in:
Fork at:
Commits
Commit | |
---|---|
host | https://github.com |
path | WolfgangFahl |
project | diagrams-extension |
subject | adds Special page with java installation check |
name | Wolfgang Fahl |
date | 2020-02-10 15:34:57 +0100 |
hash | 2964c07 |
Commit | |
---|---|
host | https://github.com |
path | WolfgangFahl |
project | diagrams-extension |
subject | fixes help link |
name | Wolfgang Fahl |
date | 2020-02-10 15:36:04 +0100 |
hash | 5178436 |
Commit | |
---|---|
host | https://github.com |
path | WolfgangFahl |
project | diagrams-extension |
subject | preparese local service alternative |
name | Wolfgang Fahl |
date | 2020-02-10 18:05:49 +0100 |
hash | 7dbdf3e |