Can't open my node.js TW5

113 views
Skip to first unread message

David Gifford

unread,
Jan 25, 2014, 7:53:07 AM1/25/14
to tiddl...@googlegroups.com
Hi all

I was so proud of myself last night. I created a node.js TW5, imported tiddlers, edited and created, saved, rearranged my tiddlers, etc.

Now today I get the message below, which makes me think everything is okay, but when I try to open the 127.thingamajigger in my browser, it tells me I can't connect to it.

I did move all the $ tiddlers into a separate folder to make it easy to sort tiddlers. Don't know if that makes a difference.

Any help would be appreciated.

Your environment has been set up for using Node.js 0.10.24 (x64) and npm.

C:\Users\Dave>cd C:/Users/Dave/SkyDrive/globaltw

C:\Users\Dave\SkyDrive\globaltw>tiddlywiki --server

$:/core/modules/wiki.js:279
                        bb = b.fields[sortField].toLowerCase() || "";
                                                 ^
TypeError: Cannot call method 'toLowerCase' of undefined
    at $:/core/modules/wiki.js:279:29
    at Array.sort (native)
    at exports.getTiddlers ($:/core/modules/wiki.js:277:11)
    at exports.forEachTiddler ($:/core/modules/wiki.js:351:17)
    at Syncer.init ($:/core/modules/syncer.js:71:12)
    at new Syncer ($:/core/modules/syncer.js:31:8)
    at Object.exports.startup ($:/core/modules/startup.js:35:15)
    at C:\Users\Dave\AppData\Roaming\npm\node_modules\tiddlywiki\boot\boot.js:14
60:11
    at C:\Users\Dave\AppData\Roaming\npm\node_modules\tiddlywiki\boot\boot.js:65
5:3
    at Object.$tw.utils.each (C:\Users\Dave\AppData\Roaming\npm\node_modules\tid
dlywiki\boot\boot.js:92:6)

C:\Users\Dave\SkyDrive\globaltw>

David Gifford

unread,
Jan 25, 2014, 7:57:08 AM1/25/14
to tiddl...@googlegroups.com
By the way I should really point out that I am starting to get pretty excited about TW5 on node.js. So glad I am taking the time to learn to do this. This is really going to be cool!

Dave

Jeremy Ruston

unread,
Jan 25, 2014, 8:03:10 AM1/25/14
to TiddlyWiki
Hi Dave

I'm very pleased you're using Node as well, firstly because I'm excited to see what you'll come up with when given this new palette of possibilities, and secondly because I think you'll be in a great position to help others through the journey you've undergone.

The error trace implies that you've somehow got a tiddler in your wiki folder that does not have a properly formed title. It's not clear how that happened, but it does suggest a strategy for tracking it down.

Can you make an empty copy of your wiki folder, and then gradually add back in the tiddlers from your current folder? You'll need to restart TiddlyWiki between each attempt. By trial and error you should be able to track down if there's a specific tiddler that is causing the problem.

Best wishes

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 post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

David Gifford

unread,
Jan 25, 2014, 8:07:05 AM1/25/14
to tiddl...@googlegroups.com
Are there any symbols that must not be in tiddler titles? I saw one with ~ and I have Spanish characters in some titles

Dave


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/6usfxdcOlSw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.



--
David Gifford
Christian Reformed World Missions, Mexico City

Jeremy Ruston

unread,
Jan 25, 2014, 8:09:37 AM1/25/14
to TiddlyWiki
On Sat, Jan 25, 2014 at 1:07 PM, David Gifford <dgif...@crcna.org> wrote:
Are there any symbols that must not be in tiddler titles? I saw one with ~ and I have Spanish characters in some titles

There are no restrictions on tiddler titles, you can use any characters that you can type. There are characters that can't be used in filenames, depending on the operating system, but TiddlyWiki avoids those characters when generating filenames from tiddler titles.

Best wishes

Jeremy

David Gifford

unread,
Jan 25, 2014, 8:20:06 AM1/25/14
to tiddl...@googlegroups.com
So for hundreds of tiddlers I need to add one tiddler at a time, and each time I need to close and reopen node.js, and do the two steps to get the TW open?

Dave

Jeremy Ruston

unread,
Jan 25, 2014, 8:23:59 AM1/25/14
to TiddlyWiki
No, you can do it with a binary chop: start by adding half the tiddlers. If it works, add the other half. If it doesn't work, try each of the halves of the half that didn't work. By repeating those steps you can track it down.

If you're running into problems you can also zip up the wiki folder and send it to me,

Best wishes

Jeremy.

David Gifford

unread,
Jan 25, 2014, 8:31:34 AM1/25/14
to tiddl...@googlegroups.com
ok I will try that later. gotta run to an appointment. Blessings!

Mark Kerrigan

unread,
Feb 4, 2014, 3:01:55 PM2/4/14
to tiddl...@googlegroups.com
I have a similar problem.

mkerriganmacbookpro:Five Mark$ tiddlywiki --server

$:/core/modules/wiki.js:279
bb = b.fields[sortField].toLowerCase() || "";
                        ^
TypeError: Cannot call method 'toLowerCase' of undefined
    at $:/core/modules/wiki.js:279:29
    at Array.sort (native)
    at exports.getTiddlers ($:/core/modules/wiki.js:277:11)
    at exports.forEachTiddler ($:/core/modules/wiki.js:345:17)
    at Syncer.init ($:/core/modules/syncer.js:71:12)
    at new Syncer ($:/core/modules/syncer.js:31:8)
    at Object.exports.startup ($:/core/modules/startup.js:35:15)
    at /usr/local/lib/node_modules/tiddlywiki/boot/boot.js:1460:11
    at /usr/local/lib/node_modules/tiddlywiki/boot/boot.js:655:3
    at Object.$tw.utils.each (/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:92:6)

Fortunately, I was able to make it disappear when I removed all of the images from my tiddlers folder. Is there something about about the node.js version that can't handle images?

Thanks
Mark Kerrigan

Jeremy Ruston

unread,
Feb 10, 2014, 1:10:51 PM2/10/14
to TiddlyWiki
Fortunately, I was able to make it disappear when I removed all of the images from my tiddlers folder. Is there something about about the node.js version that can't handle images?

Image files in tiddler folders need to have .meta files accompanying them giving the values for the other fields (eg title, tags, type, etc). For example:


Best wishes

Jeremy
Reply all
Reply to author
Forward
0 new messages