TiddlyWiki / TiddlyDesktop

A custom desktop browser for TiddlyWiki 5 and TiddlyWiki Classic, based on nw.js
1.71k stars 124 forks source link

External Attachments Plugin not working #142

Closed flygohr closed 5 years ago

flygohr commented 6 years ago

I am on Windows 10 and I tried with both the 32 and 64 bit versions.

I load a new, empty TW file, I open it, I install the above mentioned plugin and I try to import an image (I tried importing various types of files from a variety of locations including at the same level as the TW file, under and above). I tried with both the import file button (the paperclip icon) and via drag and drop (dragging a file on the window shows the usual green bar before dropping). It doesn't matter the file type, its location or where I drop it in the windows, at this point the window goes black and shows a preview of the image (or the pdf or whatever) instead of the import dialog. Sometimes it shows instead the red popup 'internal javascript error...reload' but I have no way to reload the page (tried ctrl-r or f5). Sometimes this red box flashes for an instant and then the windows goes black as described above. At this point I need to close the window and restart NW.

Note that if the plugin is not installed everything works as it should and I can import anything with no error. But as I said, this is not my goal as these files get embedded decreasing the performance of my TW (which is not the goal of EAP neither).

Please help!

flygohr commented 6 years ago

2018-03-21 17_47_40-developer tools - chrome-extension___bpdeplafbjkfabcdjdbibppeobkefplc_html_wiki- I just discovered that I could press F12 to enter dev view, here's a screen of the Internal Javascript Error that I managed to collect

BurningTreeC commented 6 years ago

Hi @ExoCode17

have you tried checking both checkboxes for the absolute paths in the External Attachments Plugin -> Settings?

BTC

flygohr commented 6 years ago

Yes, nothing changed but I taken the above screenshot without them checked. Maybe it will give me a different error? I'll try it asap.

In the meantime I found this: https://groups.google.com/forum/#!topic/tiddlywiki/q2COyG-gKtM

It's a guy lamenting the same error!

flygohr commented 6 years ago

2018-03-22 10_52_33-my tiddlywiki a non-linear personal web notebook

Nothing changed! Just dropping an image in the TW are makes the screen black and I can't read console. Using the import button instead doesn't change the page therefore allowing me to take the screenshot and read the console.

flygohr commented 6 years ago

Anyone? @Jermolene ?

Jermolene commented 6 years ago

Thanks @ExoCode17 I'll take a look.

flygohr commented 6 years ago

Thanks @Jermolene , please let me know!

TW is awesome and I was hoping of using its simplicity and flexibility tu run a pictures database. Unfortunately, external attachments in this case are a must and I am unable to get them to work. Changing the _canonical_uri of each image manually for me is not an option as I have more than 500 images in HD that I want to catalog (I am a digital artist). I am already using TW for a lot of things ranging from collecting poetry to managing role-playing campaigns and I would love to use it also for this purpose. I tried several galleries (chevereto, piwigo, lychee..) but nothing matches TW in doing what I want to achieve.

Anything I can do to troubleshoot?

Jermolene commented 6 years ago

Thanks @ExoCode17 I've found the problem, and will explore a fix and report back.

kalmir commented 6 years ago

@Jermolene, I have encountered the same problem as @ExoCode17. Also Win 10, 32bit TiddlyDesktop.

irlandos commented 5 years ago

@Jermolene, I also have the same problem as @ExoCode17 and @kalmir. I am running Win7 64bit. The tiddlywiki is the 5.1.20 prerelease with the External attachment plugin installed. TiddlyDesktop is version 0.0.13 but I'm afraid I don't know whether it's 32-bit or 64-bit.

Jermolene commented 5 years ago

@Marxsal also raised this issue in the discussion group

Jermolene commented 5 years ago

This should be fixed in the latest version of TW5: https://github.com/Jermolene/TiddlyWiki5/issues/4237