red square of death

90 views
Skip to first unread message

Sapphireslinger

unread,
Dec 8, 2020, 5:10:23 AM12/8/20
to TiddlyWiki
Can not open my tiddlywiki because:

Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 4 column 25 of the JSON data

How do I fix that if I can't open my tiddlywiki? Open it with a text editor instead of a browser?

Will the problem still be line 4 column 25 even in the text editor?

I opened it with a text editor, and the only thing on line 4 was:
<!-- saved from url=(0021)https://tiddlywiki.com -->

I constantly back up so all I would lose would be a bunch of book quotes.

clutterstack

unread,
Dec 8, 2020, 10:30:22 AM12/8/20
to TiddlyWiki
Hi Sapphireslinger, I've had to open standalone wikis in a text editor to fix them when I've written a bad macro or whatnot. It's a pain because it's such a big file and not very readable, but it can be done. If you don't have an idea what caused it, I'm not sure where you'd start looking...if it's one of your tiddlers, you can use the editor's search function for the title. If your tiddlers are actually in there, and it's worth the effort, you could copy-paste the quotes out of the html file into new tiddlers in a restored backup wiki.

Best,
Chris

Jeremy Ruston

unread,
Dec 8, 2020, 10:48:13 AM12/8/20
to TiddlyWiki Group
If you encounter a non-functioning, corrupt standalone TiddlyWiki HTML file, a good first line of attack is to try to import the file into a blank TiddlyWiki. If the tiddler listing shows up then you can try first try importing all the tiddlers and saving, and then testing. If it doesn’t work, you can progressively remove tiddlers from the import to narrow down the specific tiddlers causing the problem.

Best iwshes

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/7d1fdf8f-1912-4179-9893-e0e6266bd801n%40googlegroups.com.

Message has been deleted

Eric Shulman

unread,
Dec 8, 2020, 2:37:16 PM12/8/20
to TiddlyWiki
On Tuesday, December 8, 2020 at 2:10:23 AM UTC-8 Sapphireslinger wrote:
SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 4 column 25 of the JSON data

Note that the error is in "JSON data"... thus, line 4 column 25 doesn't refer to the HTML file contents, but just some JSON data that is being loaded during startup.

How are you loading your TiddlyWiki?  Is it a standalone HTML file opened directly in the browser, or are you using TiddlyDesktop or a NodeJS setup?

-e
Reply all
Reply to author
Forward
0 new messages