Tiddlywiki5: [BUG] Get more plugins window can not be opened

Created on 17 Apr 2020  路  8Comments  路  Source: Jermolene/TiddlyWiki5

Describe the bug

After upgrade to 5.1.22, the Get more plugins window can not be opened/loaded.

I can not find clear error message in devtools and command line logs.

To Reproduce

Steps to reproduce the behavior:

  1. Go to ControlPanel
  2. Click on Plugins
  3. Click on Get more plugins
  4. See error

Expected behavior

Can open the plugins list page

Screenshots

138

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Chrome
  • Version: 5.1.22

Start by

/usr/bin/tiddlywiki --listen port=8181 "root-tiddler=$:/core/save/lazy-images"
````

Tiddlywiki.info

```json
{
    "plugins": [
        "tiddlywiki/blog",
        "tiddlywiki/codemirror",
        "tiddlywiki/codemirror-autocomplete",
        "tiddlywiki/codemirror-closebrackets",
        "tiddlywiki/codemirror-closetag",
        "tiddlywiki/codemirror-fullscreen-editing",
        "tiddlywiki/codemirror-keymap-vim",
        "tiddlywiki/codemirror-mode-css",
        "tiddlywiki/codemirror-search-replace",
        "tiddlywiki/d3",
        "tiddlywiki/filesystem",
        "tiddlywiki/highlight",
        "tiddlywiki/internals",
        "tiddlywiki/jszip",
        "tiddlywiki/katex",
        "tiddlywiki/markdown",
        "tiddlywiki/menubar",
        "tiddlywiki/pluginlibrary",
        "tiddlywiki/railroad",
        "tiddlywiki/tiddlyweb"
    ],
    "themes": [
        "tiddlywiki/vanilla",
        "tiddlywiki/snowwhite"
    ],
    "build": {
        "renderfull": [
            "--rendertiddler", "$:/core/save/all", "index_full.html", "text/plain"
        ],
        "render": [
            "--rendertiddler", "$:/core/save/lazy-images", "index_without_img.html", "text/plain"
        ],
        "index": [
            "--rendertiddler",
            "$:/core/save/all",
            "index.html",
            "text/plain"
        ],
        "empty": [
            "--rendertiddler",
            "$:/core/save/all",
            "empty.html",
            "text/plain",
            "--rendertiddler",
            "$:/core/save/all",
            "empty.hta",
            "text/plain"
        ],
        "externalimages": [
            "--savetiddlers",
            "[is[image]]",
            "images",
            "--setfield",
            "[is[image]]",
            "_canonical_uri",
            "$:/core/templates/canonical-uri-external-image",
            "text/plain",
            "--setfield",
            "[is[image]]",
            "text",
            "",
            "text/plain",
            "--rendertiddler",
            "$:/core/save/all",
            "externalimages.html",
            "text/plain"
        ],
        "static": [
            "--rendertiddler",
            "$:/core/templates/static.template.html",
            "static.html",
            "text/plain",
            "--rendertiddler",
            "$:/core/templates/alltiddlers.template.html",
            "alltiddlers.html",
            "text/plain",
            "--rendertiddlers",
            "[!is[system]]",
            "$:/core/templates/static.tiddler.html",
            "static",
            "text/plain",
            "--rendertiddler",
            "$:/core/templates/static.template.css",
            "static/static.css",
            "text/plain"
        ]
    },
    "config": {
        "retain-original-tiddler-path": true
    }
}

Most helpful comment

I had the same problem before, I have installed Kookma plugin library and main plugin library.

But after the upgrade, only the Kookma plugin library remains.

So I have to recreate the main plugin library by hand. You can do that too.

Just add a tiddler with title $:/config/OfficalPluginLibrary and tag $:/tags/PluginLibrary and a caption Offical Plugin Library and a url https://tiddlywiki.com/library/v5.1.22/index.html and text The official TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team..

Then the problem will be solved.

All 8 comments

I had the same problem before, I have installed Kookma plugin library and main plugin library.

But after the upgrade, only the Kookma plugin library remains.

So I have to recreate the main plugin library by hand. You can do that too.

Just add a tiddler with title $:/config/OfficalPluginLibrary and tag $:/tags/PluginLibrary and a caption Offical Plugin Library and a url https://tiddlywiki.com/library/v5.1.22/index.html and text The official TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team..

Then the problem will be solved.

But it is still weird that upgrading npm package tiddlywiki will remove the OfficalPluginLibrary

Your solution works, thanks a lot.

Your solution works for me too, @linonetwo! Thanks!

I've fixed the bug by copying the /tiddlers/$__config_OfficalPluginLibrary.tid file of the official Tiddlywiki repository in my local Tiddlywiki project.

$__config_OfficalPluginLibrary.tid:

title: $:/config/OfficialPluginLibrary
tags: $:/tags/PluginLibrary
url: https://tiddlywiki.com/library/v5.1.22/index.html
caption: {{$:/language/OfficialPluginLibrary}}

{{$:/language/OfficialPluginLibrary/Hint}}

This seems to be intentional, but communicated poorly. The present $:/config/OfficalPluginLibrary tiddler says

(This core tiddler is overridden by the tiddlyweb plugin to prevent users from installing official plugins via control panel. Instead they should be installed by editing tiddlywiki.info in the root of the wiki folder)

which I'm fine with, but upon clicking Get more plugins one should be presented with this message instead of a blank window.

@KendrickLamarck Oh, I didn't know that!

But I think clicking button to upgrade and install plugin is more comfortable for me, compare to manually download things, extract zip and put into the folder and edit config file...

@linonetwo Are you talking about plugins from the official tiddlywiki/ plugin library? Because in that case, no downloading or unzipping is required. Simply edit the config file, start the server and the plugins will be there.

Thanks everyone, and sorry for the confusion. As @KendrickLamarck says, this is intentional. When using the client-server configuration plugins from the official plugin library should be installed in tiddlywiki.info. Using the browser-based plugin installer means that the plugin is installed as a regular tiddler, and won't be upgraded when the TW installation is upgraded.

I'll have a look at making a warning message visible.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

morosanuae picture morosanuae  路  56Comments

joshuafontany picture joshuafontany  路  34Comments

Spangenhelm picture Spangenhelm  路  63Comments

Jermolene picture Jermolene  路  48Comments

Jermolene picture Jermolene  路  38Comments