TiddlyWiki Playground Broken (only for me) FIXED

130 views
Skip to first unread message

TW Tones

unread,
Aug 22, 2020, 11:05:18 PM8/22/20
to tiddl...@googlegroups.com
Folks,

Have you seen my TiddlyEWiki playground?

It has access to 4 plugin libraries and a good place to experiment as ii has the local storage plugin, reload without needing to save to file, to get your plugins working.

My Problem,
I broke something and I get an error when I load it in my browser instance. 

Internal JavaScript Error

Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
Script error.

Using the developer tools I can't find a way to delete the storage, can't enter safe mode etc...

Its fine in another browser/incognito so I believe the error is trapped in local storage, but I can't get in to the wiki to clear local storage. And cant find it in the developer tools (Chrome)

Any ideas please?

Tones

Birthe C

unread,
Aug 22, 2020, 11:22:12 PM8/22/20
to TiddlyWiki
TW Tones,
I get the 404 file not found message.
 

Birthe

TW Tones

unread,
Aug 23, 2020, 1:33:47 AM8/23/20
to TiddlyWiki
Birthe,

Thanks, That is new, and for me too now. Thanks.

Perhaps GItHub has a problem, I can download and open the file from here  download/r-click save link as, and it loads. 

Perhaps there is something wrong with the GitHub server process, perhaps the best is to try later.

Regards
TW Tones

Birthe C

unread,
Aug 23, 2020, 4:13:52 AM8/23/20
to TiddlyWiki
TW Tones,

i can open your file now, you are right, the red error are not shown here. I do not have chrome on this pc unfortunately in this case.

Birthe


Birthe C

unread,
Aug 23, 2020, 4:31:05 AM8/23/20
to TiddlyWiki
TW Tones,

As I said I do not have Chrome, but I do have Chromium on another pc. I tried that, clicking the three dots in the upper right corner, developer tools, and then it opens on elements, click the next tab console, and you will see mentioning of the browser storage. The first part I see is an error: Failed to load resource the server responded with a status of 405 ()

Birthe


Mark S.

unread,
Aug 23, 2020, 9:42:48 AM8/23/20
to TiddlyWiki
Didn't try it, but this article claims to show how to clear local storage:




On Saturday, August 22, 2020 at 8:05:18 PM UTC-7, TW Tones wrote:
Folks,

Have you seen my TiddlyEWiki playground?


Birthe C

unread,
Aug 23, 2020, 10:39:08 AM8/23/20
to TiddlyWiki
What is disturbing to me is, that searching will find lots of descriptions of how to, and how the result will be, but the descriptions differ quite a lot. Users often reports having had unpredictable results.

The many different browsers we are using and the rapid changes in the browsers the last couple of years makes the confusing worse.

I hope Tony will describe more, when he has used the functionality.

I will just add, doing as I described above, I get to see Tonys wiki on the left, and the developer tools in a panel on the right. After doing as described above, I went to applications, and could see the storage from Antonio Muscios playground, no doubt there.

I haven't used your playground in this browser before, so not much was stored, only story and history or something like that. An X button to delete chosen item. I did not do it, as I did not really have anything to delete, but it seems to me, that it could work.

TW Tones,
I really hope you will find a solution soon.
If you want to go ahead using local storage and I kind of think, you will ;-),,,,,we will need to find matching solutions for other browsers too- and have it described so that users of your playground can find a way out of potential mess.

With fingers crossed,
Birthe

TW Tones

unread,
Aug 23, 2020, 8:03:19 PM8/23/20
to TiddlyWiki
Birthe/Mark,

I will review your comments in detail later today, thanks.

Of importance with the playground, it does not matter if I loose anything (Although I would prefer not) I just kept adding things I was experimenting with and always exported valuable progress. I have done this mostly since I released the playground. So on the whole it has being very reliable. You can also save a full copy of the wiki at a click.

On this occasion there is a bug either caused by what I installed, or one in my browser. To correct it I can not get into the wiki in the same browser. Accessing from another browser initially threw the same error, which made be think with a 404 it was github. Shortly after I could access the playground again from incognito or other browsers, and since these are new sessions nothing(or little) was in local storage as in Birthe's experience), yet the original browser was still throwing errors visiting the playground address, presumably because local storage existed and was part of the load process, but then something it it, triggers the error.

Despite a reboot today, the error still occurs in the original session. 

  • It even fails to load the favicon on the tab.
My key concern it establishing a debug or storage reset for wikis using the local storage plugin if the wiki will not load,

Thanks for you help, I will update soon.

Regards
Tones

TW Tones

unread,
Aug 23, 2020, 8:11:42 PM8/23/20
to TiddlyWiki
Folks,

FYI if interested.

Selecting memory in Chromes Dev tools only gives me the following; as if memory is not yet setup?

Snag_1ef45092.png

The console shows this error

Snag_1ef4c2b5.png


Regards
Tony

Birthe C

unread,
Aug 23, 2020, 8:55:03 PM8/23/20
to TiddlyWiki
TW Tones,

As you know I have used your playground a couple of times. I did remember I used it in Firefox. Setting up lots of computers lately it did take some time before I remembered on what computer and browser I had used it. Finally jackpot. In Firefox I found the storage and several more entries from your playground. I deleted one at a time, just to see if that was possible. Finally I had deleted every entry. Refreshed the browser and ready to start using it again. ;-)  A quick test did not find any reverse effects, but will report If I find any.

I did of course not see any errors, as I used it quite some time before you experienced this. And your favicon is showing.

I think it is a good thing that we learn a little about all this. 

I have been thinking about something, It may be totally stupid, but I will describe it anyway. We have been warned about using local storage, as it was not dependable. Could give unpredictable results, due to browser emptying or deleting at times. Is it possible to get an error that you get now due to some part of your used browser storage being deleted, and then the part left through errors due to lacking necessary parts?

I have no idea? But it would be nice to know.

Birthe


Birthe

Mark S.

unread,
Aug 23, 2020, 10:21:52 PM8/23/20
to TiddlyWiki
FWIW. Your link is wrong -- the final "l" in .html was truncated. That's probably the source of Birthe's 404 errors -- it was for me.

Mark S.

unread,
Aug 23, 2020, 10:28:52 PM8/23/20
to TiddlyWiki
You're on the memory tab. You need to be on the application tab.

TW Tones

unread,
Aug 23, 2020, 10:32:21 PM8/23/20
to TiddlyWiki
Birthe,Mark

Mark, Yes I discovered the Application tab is where the memory is, and deleted it and its back now. Difference between Chrome and FireFox?

Birthe,

Exactly my thoughts. 
  • We need to understand the local storage usage and complications because it provides powerful possibilities. 
  • It may be corrupt local storage, but I cant get to it and safe mode or direct to a tiddler does not work. The failure is earlier, and unfortunately I do not remember they last thing I did, that it may explain it.
However this is a test case, but does not deserve too much time as it may be a one off.

I do not know what in memory caused this, and I was confused finding the memory in the dev tools.

All,

I expect a bookmarklet to delete local storage could be useful here for such cases.

Regards
Tony

TW Tones

unread,
Aug 23, 2020, 10:32:40 PM8/23/20
to TiddlyWiki
fixed thanks

Felicia Crow

unread,
Aug 24, 2020, 3:14:04 AM8/24/20
to TiddlyWiki
Hi Tony,

glad it is fixed.

While localstorage can have its problem - never experienced it, but heard of item dropping, although it seems to have gotten better with the years - in this case to its defence it only held corrupted data.
From the error message it seems one of the saved strings could not be parsed back to a javascript object and this stopped the entire script.

For future reference: The easiest cross-browers way - at least as long as the browser gives you a javascript console - is: localStorage.clear().
If you drop the below link into a tiddler/somewhere else html gets rendered you can create a bookmarklet that clears the localstorage:

<a href="javascript:localStorage.clear();">Clear localStorage</a>

Regards,
Felicia

Off-Topic P.S.: Still working on your request for variables, just ran into some very interesting problems and our heatwave wasn't helping with processing the new information needed to solve them, so it takes far longer than I expected. Terribly Sorry for that.

TW Tones

unread,
Aug 24, 2020, 4:21:05 AM8/24/20
to TiddlyWiki
Felicia,

Thanks for that helpful bookmarklet.

I will add it to the playground wikis next version.

On the variables, in your time. Regards
Tones/Tony

Birthe C

unread,
Aug 24, 2020, 4:24:32 AM8/24/20
to TiddlyWiki
Felicia,
Thank you, a bookmarklet will make it easier.

Tony,
Happy you got your wiki fixed.

Mark,
No, link missing the l was not the cause for me, as I had Tonys playground bookmarked from earlier use. My bookmarks is in a tiddlywiki I drag along as I shift from computer to computer or from browser to another browser.
As a matter of fact I have used that wiki from my first day of using TW5. Early on the wiki was based on yet an adaptation from David Gifford, but changed during the years of use. It has really helped me when running OS'es from usb-stick, using my friends computer in a hurry and all that kind of things. All the notes and comments is in Danish, much easier for me to search that instead of guessing what something would be called in a foreign language. Things I have used or just tested got comments making it much easier for me when reusing. It takes a little longer bookmarking but not long. I should add it is only used for tiddlywiki related bookmarks.


Birthe
Reply all
Reply to author
Forward
0 new messages