Error with inserted pictures
I inserted some pictures in note by linking to the file in storage.
The pictures do show in the note, but when I sync I got an error (which only appear in "Report Errors").
The Report ID is 2138654008.
The pictures do show in the note, but when I sync I got an error (which only appear in "Report Errors").
The Report ID is 2138654008.
I followed first the method in http://www.zotero.org/support/tips_and_tricks. But I got an error like this.
Report ID 165977914
I could not edit that item without restart Zotero.
Next, I tried by selecting the mouse right click menu "Insert/Edit Image" and in the URL the path to the image. Then I get an error like the one in the previous report.
I'm using Zotero Standalone and Linux Mint.
What happens is:
1. I add an image as an attachment to an item in my Zotero library.
If I go to “Report Errors” it says:
Security Error: Content at moz-nullprincipal:{15a8843e-a751-471e-b71c-a9b6a7e845ba} may not load or link to file:///XXXX/storage/XZ3DXVPI/rrchnmlogo-gray.png.
2. Double-click the item attachment to show the image.
3. I open the note to which I want to add the image.
4. I drag the image it into the note.
If I go to “Report errors” it says:
[JavaScript Error: "TypeError: base is undefined" {file: "jar:file:///opt/zotero/chrome/zotero.jar!/content/zotero/tinymce/tiny_mce.js" line: 712}]
After that, I cannot edit the item without restarting Zotero. But there is not error messages on Zotero panel. I'm using Zotero Standalone and Linux Mint.
Well, first, that tip shouldn't really have been there, and I've removed it. There's currently no supported way of adding a local (non-HTTP) image to a note. Anything that works is a fluke, and most ways either don't work or cause problems. (I'm not actually even sure where you were opening the PNG in order to get the file:// link. In Zotero for Firefox you'd get a zotero://attachment URL that wouldn't work and, if it did, wouldn't work across machines. In Standalone on OS X the PNG just opens in Preview. And a file:// link often wouldn't work across machines either.)
Nothing shouldn't cause note editing to break, though, so I'll try to reproduce that. I'm actually wondering if this is the underlying cause behind this issue, since at least one of the people there was getting the same "base is undefined" error. Have you noticed anything like the problems described there?
Anyway, the error I get on the first step is when I attach the image to the item, before opening the image from the Zotero or trying to insert it into the note. It happens either with .png, .gif or .jpg image.
Do you have any clue about it?
I get a similar error when I insert the image in the note by selecting the mouse right click menu "Insert/Edit Image" and write in the URL the path to the image.
But these errors do not break note editing.
Either by "drag and drop" or by "Attach Stored Copy of File".
The error happens on both cases.
When I try to insert in the note, I write a file:// URL. Indeed, It'd be nice if work, but I understand.