[TW5] Another 'Internal JavaScript Error' :(

133 views
Skip to first unread message

elemarti...@gmail.com

unread,
Oct 16, 2016, 3:30:17 PM10/16/16
to TiddlyWiki


Hello everybody! I'm new here, I discovered Tiddlywiki one week ago and since then I have been playing with it and saving info. I love it! But today I had a heart-attack when I got the following message when opening my wiki:




 I looked on the internet and in this group and saw several cases related to the 'Internal JavaScript Error' but couldn't solve my problem. I have no idea what it is referring to with this error so anybody who knows what could be wrong, please give me some clues :( I was creating a wiki with my languages project and I had everything perfectly organized so I'm quite sad. I guess I didn't lose the information but I can't figure out how to recover it. If I click on 'close' the page is just blank and if I refresh the browser I get the same error.

I noticed it happened today after I edited my wiki -which is located in my pen drive- saved it, and then took the pen-drive back. I tried to eject the pen in safety mode but I couldn't and I had to take it anyway, I had no time. Now that I got home and tried to open my wiki I got that message.

Thanks in advance, if you could help me with this I would be so happy!

Sincerely,
Lena.

 

PMario

unread,
Oct 16, 2016, 4:36:45 PM10/16/16
to TiddlyWiki
Hi Lena,

Do you know, how big your tw.html file was? .. and is it different now? ... How big is it?

Which browser do you use? Did you try to disable the browser plugins and reload the TW file?

Any special TiddlyWiki plugins? You can load tw in "safe" mode. see: http://tiddlywiki.com/#SafeMode  So no plugins are activated and you can disable them in the ControlPanel.

-m

elemarti...@gmail.com

unread,
Oct 16, 2016, 4:56:43 PM10/16/16
to TiddlyWiki

Hello PMario!

Thanks a lot for taking your time, I really appreciate it.

  1. I don't remember the size before but currently it is 4.56 MB.
  2. I use Firefox. I did what you recommended me (safe mode) and I get the same 'SyntaxError: JSON.parse: bad control character in string literal at line 11 column 9995 of the JSON data' message. Nevertheless, I have tried the same in the other browsers and I got the following messages:
    • Microsoft Edge and Internet Explorer: 'Invalid character'
    • Chrome and Vivaldi: 'Script error.'

And I have run out of browsers to try, haha. Seriously I have no idea what is wrong here. I also disabled all plugins and nothing.


Thanks!
Lena.

Mark S.

unread,
Oct 16, 2016, 11:35:00 PM10/16/16
to TiddlyWiki
This looks to me like real data corruption, especially since you had problems with your flash drive.

It might be worth a shot to drag, drop, and import your TW into an empty TW. If the importer "sees" the incoming tiddlers, then you can try either importing all the tiddlers (optimistic), or even importing 5 or so tiddlers at a time, each time checking that the new TW still works.

Good luck,
Mark

Thomas Elmiger

unread,
Oct 17, 2016, 12:34:18 AM10/17/16
to TiddlyWiki
Hi Lena

I would go the way Mark suggested, but try to import everything but the last few (e.g. 5) tiddlers you edited. Maybe the illegal character is something you entered or copied into your Wiki before you saved.

Good luck!
Thomas

BJ

unread,
Oct 17, 2016, 5:25:27 AM10/17/16
to TiddlyWiki
If Marks suggestion does not work, I can take a look at the internals of the file (you would need to email it to me, or if it is not personal stuff you could attach it to a post).

best of luck!
BJ

elemarti...@gmail.com

unread,
Oct 17, 2016, 11:20:40 AM10/17/16
to TiddlyWiki


Hello Mark!

Thanks a lot for your reply! Honestly, I'm afraid I don't know how to import tiddlers (I looked for it on the Internet though!). Could you tell me how to do such a thing? Since my TW is totally blank I tried to open it with Notepad and that was so crazy, such a mess! So I downloaded Notepad++ and opened it with it and now I can see everything organized. I was so happy to see all my information there!  So for example this is one of my tiddlers called 'Timetables':



So... should I create an empty TW and then open it with Notepad++ and paste there the tiddlers one by one? Or you would recommend me another way?

Thank you a lot for your time,
Lena.

elemarti...@gmail.com

unread,
Oct 17, 2016, 11:24:21 AM10/17/16
to TiddlyWiki
Hello Thomas,

Thanks for your reply! That's a great idea, if I manage to import tiddlers I will definitely start with that option!

Regards,
Lena

elemarti...@gmail.com

unread,
Oct 17, 2016, 11:28:51 AM10/17/16
to TiddlyWiki
Hey BJ!

That is so kind from you. I totally appreciate that. I will let you know if I need your help once that I finish importing the tiddlers.

Best regards,
Lena

Mark S.

unread,
Oct 17, 2016, 11:34:32 AM10/17/16
to TiddlyWiki
Just drag the bad file from your system over the new "empty" tw. A green bar should appear at the top of the empty indicating that it recognizes an incoming tiddler. Drop. Then there will be a tiddler with a list of other tiddlers to import. You can check which ones you want to import before confirming the import.

Good luck!
Mark

elemarti...@gmail.com

unread,
Oct 17, 2016, 1:00:38 PM10/17/16
to TiddlyWiki

That was kind of easy, haha, thanks a lot Mark, really. It totally worked and I recovered my TW thanks to you guys :)
Mark, PMario, Thomas and BJ, you are the best!!

Best regards,
Lena

PMario

unread,
Oct 17, 2016, 5:10:38 PM10/17/16
to TiddlyWiki
On Monday, October 17, 2016 at 7:00:38 PM UTC+2, elemarti...@gmail.com wrote:

That was kind of easy, haha, thanks a lot Mark, really. It totally worked and I recovered my TW thanks to you guys :)
Mark, PMario, Thomas and BJ, you are the best!!

Best regards,
Lena

We are happy that it worked! ... Check all your stuff and do some backups from time to time ;)

have fun!
mario

Reply all
Reply to author
Forward
0 new messages