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.
  • What error are you getting? There are no Zotero errors in that report.
    I inserted some pictures in note by linking to the file in storage.
    Linking how, exactly? Generally speaking, images in notes aren't currently supported. If you simply use an <img/> tag with a (non-data) URL, that might work, but any other method of getting images in notes isn't meant to be used at the current time.
  • Thanks, Dan.

    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.
  • edited April 22, 2013
    But I got an error like this.
    Like what? We need more than just an error report. We need to know what exactly you're seeing on-screen. Are you getting a restart error in the middle pane of Zotero? A sync error?
  • No, Dan, I do not have any error on screen.

    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.
  • Ah, OK.

    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?
  • I don’t know if it is the same problem, because the note in which I try to insert the image is blank.

    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.
  • 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?
    How are you adding the image?
    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.
    Is that an HTTP URL or a file:// URL?
    But these errors do not break note editing.
    For that, the best I can tell you for now is not to try to add non-HTTP images into notes, which has never really been meant to work. (It'd be nice if it did, but support for that will likely have to be added explicitly, which has never happened.)
  • "How are you adding the image?"
    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.
Sign In or Register to comment.