5.1.22 Upgrade Problem - TypeError: $tw.wiki.doesPluginRequireReload is not a function

131 views
Skip to first unread message

TonyM

unread,
Apr 23, 2020, 1:20:14 AM4/23/20
to TiddlyWiki
Hi,

I just upgraded a large production wiki as a test from 5.1.21  to 5.1.22 I get this Javascript error

Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
TypeError: $tw.wiki.doesPluginRequireReload is not a function

$tw.wiki.doesPluginRequireReload is only found in $:/core/modules/startup/plugins.js

and relates to the reload plugin test.

I cant reload without this message occuring, not can I close it. I had a core tiddler override during upgrade but not sure what may have caused this.

Any insight would be appreciated.

Regards
Tony




Jeremy Ruston

unread,
Apr 23, 2020, 4:40:00 AM4/23/20
to TiddlyWiki
Hi Tony

It sounds like the shadow tiddler $:/core/modules/wiki.js has been overwritten. Can you search for the string “doesPluginRequireReload and report in which system tiddlers it occurs?

Many thanks,

Jeremy

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2c967777-0738-44cf-96d5-8b8bb8a95a22%40googlegroups.com.

TonyM

unread,
Apr 23, 2020, 6:13:39 AM4/23/20
to TiddlyWiki
Jeremy,

The search for doesPluginRequireReload found it only in $:/core/modules/startup/plugins.js

Searching for $:/core/modules/wiki.js and editing it suggests it not an overiddern shadow tiddler, but perhaps the upgrade process did something?

Thanks for your help

Regards
tony


On Thursday, April 23, 2020 at 6:40:00 PM UTC+10, Jeremy Ruston wrote:
Hi Tony

It sounds like the shadow tiddler $:/core/modules/wiki.js has been overwritten. Can you search for the string “doesPluginRequireReload and report in which system tiddlers it occurs?

Many thanks,

Jeremy

On 23 Apr 2020, at 06:20, TonyM <anthon...@gmail.com> wrote:

Hi,

I just upgraded a large production wiki as a test from 5.1.21  to 5.1.22 I get this Javascript error

Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
TypeError: $tw.wiki.doesPluginRequireReload is not a function

$tw.wiki.doesPluginRequireReload is only found in $:/core/modules/startup/plugins.js

and relates to the reload plugin test.

I cant reload without this message occuring, not can I close it. I had a core tiddler override during upgrade but not sure what may have caused this.

Any insight would be appreciated.

Regards
Tony





--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.

TonyM

unread,
Apr 23, 2020, 6:45:39 AM4/23/20
to TiddlyWiki
Jeremy,

I undertook the upgrade again. I get an alert
import - 23rd April 2020 at 8:17pm

You are about to import a tiddler that will overwrite a core module tiddler. This is not recommended as it may make the system unstable


I have printed the upgrade page to PDF in case it sheds light on this.

However its 24MB in size and could not send, 

see here https://drive.google.com/open?id=1_H8j-KlIQYUHxXiwH8vrkY3mjaUQhTas


Regards

Tony



On Thursday, April 23, 2020 at 6:40:00 PM UTC+10, Jeremy Ruston wrote:
Hi Tony

It sounds like the shadow tiddler $:/core/modules/wiki.js has been overwritten. Can you search for the string “doesPluginRequireReload and report in which system tiddlers it occurs?

Many thanks,

Jeremy

On 23 Apr 2020, at 06:20, TonyM <anthon...@gmail.com> wrote:

Hi,

I just upgraded a large production wiki as a test from 5.1.21  to 5.1.22 I get this Javascript error

Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
TypeError: $tw.wiki.doesPluginRequireReload is not a function

$tw.wiki.doesPluginRequireReload is only found in $:/core/modules/startup/plugins.js

and relates to the reload plugin test.

I cant reload without this message occuring, not can I close it. I had a core tiddler override during upgrade but not sure what may have caused this.

Any insight would be appreciated.

Regards
Tony





--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.

Jeremy Ruston

unread,
Apr 23, 2020, 11:05:44 AM4/23/20
to TiddlyWiki
Hi Tony

According to that listing, every core shadow JS module has been exploded into an ordinary tiddler, overwriting the shadow. Perhaps this was a wiki that you’d used for experimentation with plugin packing/unpacking. What number do you see for “Number of overridden shadow tiddlers” at the bottom of the first page of the control panel?

Best wishes

Jeremy.

To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/07d86378-659b-4748-bf25-de5cfd4af69b%40googlegroups.com.

TonyM

unread,
Apr 25, 2020, 12:47:36 AM4/25/20
to TiddlyWiki
Jeremy,

In the source before upgrade I see the following;

Number of tiddlers: 375,
Number of tags: 77,
Number of system tiddlers: 2992,
Number of shadow tiddlers: 2227,
Number of overridden shadow tiddlers: 2227,

Clearly there is no shadow tiddler not overridden in the source, so I expect the upgrade is overwhelmed.

Perhaps this happened in an earlier upgrade and was not noticed by me?

A Possible solution;
If I could build a tool to delete all shadow tiddlers that are identical to core Shadow tiddlers before upgrading I may have the solution?

Regards
Tony



On Friday, April 24, 2020 at 1:05:44 AM UTC+10, Jeremy Ruston wrote:
Hi Tony

According to that listing, every core shadow JS module has been exploded into an ordinary tiddler, overwriting the shadow. Perhaps this was a wiki that you’d used for experimentation with plugin packing/unpacking. What number do you see for “Number of overridden shadow tiddlers” at the bottom of the first page of the control panel?

Best wishes

Jeremy.

TonyM

unread,
Apr 25, 2020, 1:01:27 AM4/25/20
to TiddlyWiki
On Overwritten Shadows

I see with the preview option "differences from shadow (if any)" counts the number of differences.

Thus if I could delete the tiddlers with 0 differences I would get along way. Although perhaps I will hit the odd one that was tagged or something.

Regards
Tony

TonyM

unread,
Apr 25, 2020, 3:19:15 AM4/25/20
to TiddlyWiki
Jeremy,

I am still stuck on this.

I used the following filter to delete overwritten system tiddlers that should not have being
[all[shadows+tiddlers]prefix[$:/]!has[modified]]
The resulting wiki dropped from  6,956 KB to 4,550 KB and seems to be working as expected.

I kept a json of deleted tiddlers.

When Upgrading, as before, the attached PDF shows the resulting tiddler list which seems to ignore all the real tiddlers that should be included in the upgrade process.

I freshly loaded https://tiddlywiki.com/upgrade.html and both dropped and on another attempt selected the reduced file.

I then used the  Save upgraded TiddlyWiki file  button and the resulting file was dropped to 2,262 and seems to be no more than an empty.html.

I am not sure how to proceed and where the problem lays.


thanks in Advance
Tony
TiddlyWiki Upgrader — upgrade your files to the latest version 2.pdf

Jeremy Ruston

unread,
Apr 25, 2020, 8:55:07 AM4/25/20
to TiddlyWiki
Hi Tony

It looks like you’ve still got a bunch of overridden configuration shadow tiddlers. Some of them may be intentional tweaks, but there are so many it looks like you’ve still got the same problem.

I’d suggest unchecking all tiddlers, and then just manually select the tiddlers that you know contain content that you wish to retain.

Best wishes

Jeremy.

To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/db8f512a-81fa-40d7-9c3b-f01bdd2c7038%40googlegroups.com.
<TiddlyWiki Upgrader ? upgrade your  files to the latest version 2.pdf>

Reply all
Reply to author
Forward
0 new messages