...and it seems that I failed to install the Maps extension for my #MediaWiki installation successfully
-
@juergen_hubert check your logs for the actual error message, to begin with
Good point.
Hmmm... doesn't look like this shows up in the public logs, since those apparently only show actual changes to pages, and the software doesn't actually allow me to save the page with this code. Do you know where I can find further logs on the server which might help me?
(I am fairly new to #MediaWiki, obviously...)
-
Good point.
Hmmm... doesn't look like this shows up in the public logs, since those apparently only show actual changes to pages, and the software doesn't actually allow me to save the page with this code. Do you know where I can find further logs on the server which might help me?
(I am fairly new to #MediaWiki, obviously...)
@ratsnakegames Never mind, I figured it out how to display them on the page. Now I need to figure out what these error messages mean:
[c9021c4917719257cb3d0c5c] /index.php?title=Sandbox2&action=submit Error: Class "Html" not found
Backtrace:
from /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/Map/MapHtmlBuilder.php(21)
#0 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/Map/MapOutputBuilder.php(22): Maps\Map\MapHtmlBuilder->getMapHTML()
#1 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/Map/MapOutputBuilder.php(13): Maps\Map\MapOutputBuilder->buildMapHtml()
#2 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/Map/DisplayMap/DisplayMapRenderer.php(61): Maps\Map\MapOutputBuilder->buildOutput()
#3 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/Map/DisplayMap/DisplayMapFunction.php(64): Maps\Map\DisplayMap\DisplayMapRenderer->renderMap()
#4 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/ParserHookSetup.php(77): Maps\Map\DisplayMap\DisplayMapFunction->getMapHtmlForKeyValueStrings()
#5 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/ParserHookSetup.php(58): Maps\ParserHookSetup->handleFunctionHook()
#6 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/Parser.php(3492): Maps\ParserHookSetup->Maps\{closure}()
#7 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/Parser.php(3147): MediaWiki\Parser\Parser->callParserFunction()
#8 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/PPFrame_Hash.php(280): MediaWiki\Parser\Parser->braceSubstitution()
#9 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/Parser.php(2970): MediaWiki\Parser\PPFrame_Hash->expand()
#10 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/Parser.php(1606): MediaWiki\Parser\Parser->replaceVariables()
#11 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/Parser.php(705): MediaWiki\Parser\Parser->internalParse()
#12 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/content/WikitextContentHandler.php(380): MediaWiki\Parser\Parser->parse()
#13 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/content/ContentHandler.php(1692): MediaWiki\Content\WikitextContentHandler->fillParserOutput()
#14 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/content/Renderer/ContentRenderer.php(75): MediaWiki\Content\ContentHandler->getParserOutput()
#15 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Revision/RenderedRevision.php(260): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput()
#16 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Revision/RenderedRevision.php(233): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
#17 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Revision/RevisionRenderer.php(236): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
#18 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Revision/RevisionRenderer.php(169): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
#19 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Revision/RenderedRevision.php(196): MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
#20 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/TemplateData/includes/Hooks.php(101): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#21 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/HookContainer/HookContainer.php(155): MediaWiki\Extension\TemplateData\Hooks->onMultiContentSave()
#22 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/HookContainer/HookRunner.php(2699): MediaWiki\HookContainer\HookContainer->run()
#23 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Storage/PageUpdater.php(936): MediaWiki\HookContainer\HookRunner->onMultiContentSave()
#24 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/editpage/EditPage.php(2580): MediaWiki\Storage\PageUpdater->saveRevision()
#25 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/editpage/EditPage.php(1842): MediaWiki\EditPage\EditPage->internalAttemptSave()
#26 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/editpage/EditPage.php(747): MediaWiki\EditPage\EditPage->attemptSave()
#27 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/actions/EditAction.php(68): MediaWiki\EditPage\EditPage->edit()
#28 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/actions/SubmitAction.php(40): MediaWiki\Actions\EditAction->show()
#29 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/actions/ActionEntryPoint.php(728): MediaWiki\Actions\SubmitAction->show()
#30 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/actions/ActionEntryPoint.php(505): MediaWiki\Actions\ActionEntryPoint->performAction()
#31 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/actions/ActionEntryPoint.php(143): MediaWiki\Actions\ActionEntryPoint->performRequest()
#32 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/MediaWikiEntryPoint.php(202): MediaWiki\Actions\ActionEntryPoint->execute()
#33 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#34 {main} -
@ratsnakegames Never mind, I figured it out how to display them on the page. Now I need to figure out what these error messages mean:
[c9021c4917719257cb3d0c5c] /index.php?title=Sandbox2&action=submit Error: Class "Html" not found
Backtrace:
from /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/Map/MapHtmlBuilder.php(21)
#0 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/Map/MapOutputBuilder.php(22): Maps\Map\MapHtmlBuilder->getMapHTML()
#1 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/Map/MapOutputBuilder.php(13): Maps\Map\MapOutputBuilder->buildMapHtml()
#2 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/Map/DisplayMap/DisplayMapRenderer.php(61): Maps\Map\MapOutputBuilder->buildOutput()
#3 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/Map/DisplayMap/DisplayMapFunction.php(64): Maps\Map\DisplayMap\DisplayMapRenderer->renderMap()
#4 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/ParserHookSetup.php(77): Maps\Map\DisplayMap\DisplayMapFunction->getMapHtmlForKeyValueStrings()
#5 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/Maps/src/ParserHookSetup.php(58): Maps\ParserHookSetup->handleFunctionHook()
#6 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/Parser.php(3492): Maps\ParserHookSetup->Maps\{closure}()
#7 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/Parser.php(3147): MediaWiki\Parser\Parser->callParserFunction()
#8 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/PPFrame_Hash.php(280): MediaWiki\Parser\Parser->braceSubstitution()
#9 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/Parser.php(2970): MediaWiki\Parser\PPFrame_Hash->expand()
#10 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/Parser.php(1606): MediaWiki\Parser\Parser->replaceVariables()
#11 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/parser/Parser.php(705): MediaWiki\Parser\Parser->internalParse()
#12 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/content/WikitextContentHandler.php(380): MediaWiki\Parser\Parser->parse()
#13 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/content/ContentHandler.php(1692): MediaWiki\Content\WikitextContentHandler->fillParserOutput()
#14 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/content/Renderer/ContentRenderer.php(75): MediaWiki\Content\ContentHandler->getParserOutput()
#15 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Revision/RenderedRevision.php(260): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput()
#16 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Revision/RenderedRevision.php(233): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
#17 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Revision/RevisionRenderer.php(236): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
#18 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Revision/RevisionRenderer.php(169): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
#19 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Revision/RenderedRevision.php(196): MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
#20 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/extensions/TemplateData/includes/Hooks.php(101): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#21 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/HookContainer/HookContainer.php(155): MediaWiki\Extension\TemplateData\Hooks->onMultiContentSave()
#22 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/HookContainer/HookRunner.php(2699): MediaWiki\HookContainer\HookContainer->run()
#23 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/Storage/PageUpdater.php(936): MediaWiki\HookContainer\HookRunner->onMultiContentSave()
#24 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/editpage/EditPage.php(2580): MediaWiki\Storage\PageUpdater->saveRevision()
#25 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/editpage/EditPage.php(1842): MediaWiki\EditPage\EditPage->internalAttemptSave()
#26 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/editpage/EditPage.php(747): MediaWiki\EditPage\EditPage->attemptSave()
#27 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/actions/EditAction.php(68): MediaWiki\EditPage\EditPage->edit()
#28 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/actions/SubmitAction.php(40): MediaWiki\Actions\EditAction->show()
#29 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/actions/ActionEntryPoint.php(728): MediaWiki\Actions\SubmitAction->show()
#30 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/actions/ActionEntryPoint.php(505): MediaWiki\Actions\ActionEntryPoint->performAction()
#31 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/actions/ActionEntryPoint.php(143): MediaWiki\Actions\ActionEntryPoint->performRequest()
#32 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/includes/MediaWikiEntryPoint.php(202): MediaWiki\Actions\ActionEntryPoint->execute()
#33 /srv/data/web/vhosts/wiki.sunkencastles.com/htdocs/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#34 {main}@juergen_hubert this is a complete shot in the dark but errors like that often result from version incompatibilities, or missing plugins - are you sure all plugins you are using are compatible with your current MediaWiki version?
-
@juergen_hubert this is a complete shot in the dark but errors like that often result from version incompatibilities, or missing plugins - are you sure all plugins you are using are compatible with your current MediaWiki version?
...now that I've actually found the compatibility lists for the Maps extension, this does look like a rather strong contender. Thanks for pointing that out!
I guess I'll just wait until a new, compatible version of the extension has been released.
-
...now that I've actually found the compatibility lists for the Maps extension, this does look like a rather strong contender. Thanks for pointing that out!
I guess I'll just wait until a new, compatible version of the extension has been released.
@juergen_hubert @ratsnakegames
Or run MediaWiki 1.43, if that's an option for you?
-
@juergen_hubert @ratsnakegames
Or run MediaWiki 1.43, if that's an option for you?
I am leery of downgrading an active wiki.
-
-
...now that I've actually found the compatibility lists for the Maps extension, this does look like a rather strong contender. Thanks for pointing that out!
I guess I'll just wait until a new, compatible version of the extension has been released.
@juergen_hubert @ratsnakegames
Looks like it's been reported and fixed by others testing on MW 1.43.
-
@juergen_hubert @ratsnakegames
Looks like it's been reported and fixed by others testing on MW 1.43.
@krinkle @juergen_hubert Their policy seems to be to only support LTS releases of MediaWiki, so official support for 1.44 is unlikely.
-
@krinkle @juergen_hubert Their policy seems to be to only support LTS releases of MediaWiki, so official support for 1.44 is unlikely.
Ugh. I have 1.44, but I _really_ don't want to start over.
-
@krinkle @juergen_hubert Their policy seems to be to only support LTS releases of MediaWiki, so official support for 1.44 is unlikely.
@ratsnakegames @juergen_hubert
This particular issue was fixed so if you install it from Git, it might work.
-
@ratsnakegames @juergen_hubert
This particular issue was fixed so if you install it from Git, it might work.
@krinkle @juergen_hubert I do not see any commit that looks like it might have fixed it in the git history, and the ticket you shared was closed by the reporter after they were told the issue would not be fixed and they should stick to the LTS version. So no, I don't think it is fixed on the git main branch and I don't think running some random wip commit from Github in production is a good idea anyway.
-
@krinkle @juergen_hubert I do not see any commit that looks like it might have fixed it in the git history, and the ticket you shared was closed by the reporter after they were told the issue would not be fixed and they should stick to the LTS version. So no, I don't think it is fixed on the git main branch and I don't think running some random wip commit from Github in production is a good idea anyway.
@krinkle @juergen_hubert It does seem like version 12.0.0 lists "partial" 1.44 compatibility in its readme, whatever that means.
-
@krinkle @juergen_hubert It does seem like version 12.0.0 lists "partial" 1.44 compatibility in its readme, whatever that means.
...huh. I just realized that the official instructions for installing Maps, which I used, only install version 10.1:
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~10.1
Perhaps it will work if I substitute "10.1" for "12.0".
-
...huh. I just realized that the official instructions for installing Maps, which I used, only install version 10.1:
COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~10.1
Perhaps it will work if I substitute "10.1" for "12.0".
Okay, I tried it again - with Maps 12.0 this time.
It doesn't create an error, which is progress. But while it displays a map box in the correct size, the map is stuck at "Loading map..."
https://wiki.sunkencastles.com/wiki/Sandbox2
EDIT: Huh, now it loads. Presumably, it took a while until the leaflet API recognized my site...
-
Okay, I tried it again - with Maps 12.0 this time.
It doesn't create an error, which is progress. But while it displays a map box in the correct size, the map is stuck at "Loading map..."
https://wiki.sunkencastles.com/wiki/Sandbox2
EDIT: Huh, now it loads. Presumably, it took a while until the leaflet API recognized my site...
Success! I managed to generate a map with a map icon generated by a semantic query!
For the next step, I will have to wait until the Maps Extension Wiki becomes online again so that I can read up on their assorted templates - annoyingly, that wiki has a _lot_ of downtime.
But either way, thank you both for your help!