'Null' Error on random Tiddlers

Hello today!

I have recently started getting into Tiddlywiki, and it is absolutely amazing.

Alas, it appears I got too deep too fast – I can’t stop getting ‘TypeError: domNode.parentNode is null’ while certain Tiddlers are open, seemingly without rhyme or reason as to which ones. I suspect plugins, but couldn’t figure out the guilty party. Maybe there’s a way to get the error’s logs or something in that fashion?

Any help would be much appreciated.

Firefox, 5.2.2

EDIT: Ah, I’ve just recalled – it does appear to mostly happen on Tiddlers that have <<list-links filter:"[tag currentTiddler>]">> in them (that one < removed for clarity). Might be relevant?

[Edit] to wrap code: TW_Tones

In general, the method for finding an errant plugin is to first disable all plugins to (hopefully) avoid the error(s).

Then, progressively re-enable plugins one at a time, until the errors start appearing. The last plugin you enabled is the prime suspect.

Also… I notice that you have the “split” plugin installed. This plugin is no longer needed since the TWCore now natively includes a split[] filter. Furthermore, the split plugin works somewhat differently from the TWCore version: if the plugin split operand doesn’t exist in the input text, the filter returns a null result, while the TWCore returns the unmodified input text. The result is that when the plugin is installed, TWCore use of split[...] can trigger errors.

see https://tiddlywiki.com/#split%20Operator

hope this helps,
-e

That’s fair – guess I’ll just keep trying until one definitively trips me up.

Many thanks!

…Aaaaaand it was freelinks. Shame, it was hellishly useful.

This is invalid of course

…So it is. And now I am not sure where I even managed to copy it from. No wonder my everything broke, hah.

Could I trouble you for a correct version of that? Trying to put ‘current tiddlers title’ into… Ahem, anything just doesn’t ever work right for some reason. Something about {{!!title}}, but putting it into filter or ‘search for that title as a tag’ doesn’t seem to be correct. Must’ve missed the relevant piece of documentation.

I thought you said it was deliberate for the purpose of display. The angle brackets make anything inside of them disappear on Discourse :

If you put things in code quotes, then you don’t need to remove the brace:

<<list-links filter:"[tag<currentTiddler>]">>

I’m skeptical that freelinks is the problem, since it’s an official plugin. If so, it would be useful to find out what conditions are triggering it so it could be reported as a bug.

But if you still have the “split” plugin, I would really suspect that one since it likely collides with core code, as Eric mentioned.

…Oh.

You are, of course, completely correct. I made another silly mistake of forgetting that of course anything involving the current tiddler’s title is not going to properly work until one actually saves the draft.

I’ll see what works. Worst case, I guess I can always sanitize the file from all sensitive info and put it into a bug report.

I think what you wanted is

<<list-links filter:"[tag<currentTiddler>]">>