DebugID D682095689

Bonjour,
J'ai rencontré un problème lors de l'importation d'une citation avec LibreOffice sous Mac.
J'obtiens l'erreur "curr is undefined" et ma citation reste sous la forme "Citation" sous LibreOffice.

La même erreur se produit avec le fichier dupliqué.
Testé également sous une machine virtuelle Windows et LibreOffice dernière version : même erreur.

Merci d'avance
  • 5.0.42
    Start by upgrading to Zotero 5.0.43 via Help → "Check for Updates…" and seeing if this still happens.
  • Thanks for your answer.

    After updating Zotero to 5.0.43, I've still got problems.

    Now, I've "blob.strings is undefined" error when I try to import citation.
  • Can you provide another Report ID?
  • Done. ID : D561525237
  • (3)(+0000001): Integration: style.updateUncitedItems []

    (3)(+0000027): TypeError: blob.strings is undefined
    CSL.Output.Queue.prototype.closeLevel@chrome://zotero/content/xpcom/citeproc.js:3730:9
    CSL.Output.Queue.prototype.endTag@chrome://zotero/content/xpcom/citeproc.js:3702:5
    CSL.getBibliographyEntries@chrome://zotero/content/xpcom/citeproc.js:6136:9
    CSL.Engine.prototype.makeBibliography@chrome://zotero/content/xpcom/citeproc.js:5943:11
    getCiteprocBibliography@chrome://zotero/content/xpcom/integration.js:2663:22
    Zotero.Integration.Fields.prototype._updateDocument@chrome://zotero/content/xpcom/integration.js:1068:13
    @adomasven, @fbennett: Not sure if this is Zotero or citeproc-js, but the line in question is here:

    https://github.com/zotero/zotero/blob/89d7dad12653ff1fad10ca8769e43a050d145ba4/chrome/content/zotero/xpcom/citeproc.js#L3730
  • @dstillman Does the trace show the CSL JSON input?
  • It looks very much like the processor is wrong-footing on a combination of parens in prefixes/affixes.

    @v.cordier It looks like you are inserting the citation with text in the Prefix and/or Affix fields. If that is correct, could you cut-and-paste the content of those fields here?
  • edited April 3, 2018
    @fbennett I'm sorry, but I don't have any text into my Prefix/Suffix fields when I attempt to import my citation.
  • edited April 3, 2018
    @v.cordier Alternatively. if you are not setting Prefix or Affix fields in the bad citation, could you export that item as CSL JSON, and post the exported text here?

    (With the Prefix/Affix content, or with the CSL JSON, I can check exactly the same input here, to see if you are being hit by a bug in the processor.)
  • edited April 3, 2018
    I don't know if it is the good way to proceed but this is my result of the exportation :

    [
    {
    "id": "http://zotero.org/users/3189823/items/JUJCAGCV",
    "type": "legislation",
    "title": "Arrêté du 23 mars 1992 relatif au programme des études conduisant au diplôme d'État d'infirmier",
    "issued": {
    "date-parts": [
    [
    "1992",
    3,
    23
    ]
    ]
    },
    "accessed": {
    "date-parts": [
    [
    "2017",
    8,
    29
    ]
    ]
    }
    }
    ]
  • That's great, thanks. Testing ...
  • @v.cordier One more question, sorry. What citation style are you using in your document? Also, is it a custom style, or a standard style from the Zotero repository?
  • I'm using the ISO 690 (author-date, French) style. I haven't modified it.
  • @v.cordier Bingo. This combination crashes the processor when rendering the bibliography entry, with exactly that error.

    @adomasven, @dstillman This is a processor bug. Will post back after digging further on it.
  • I have a full day of meetings ahead, but I'll get back as soon as I have something to show.

    @v.cordier This will be fixed, so if you are not at the point of submission, you can continue work on the document by switching to another citation style that does not throw this error.
  • @adomasven, @dstillman The revised processor that fixes is issue this available at tag 1.1.201.

    The bug was triggered by a call to a date inside a cs:substitute parent, followed by a call to the same variable later in the style. A minimal CSL snippet that triggered the bug is now in the test suite. The closing tag function for the subsequently-suppressed date was not being properly avoided, and the attempt to close a non-existent nesting environment triggered the crash. All fixed now.
  • @v.cordier: This is now fixed in the latest Zotero beta. If you need to use this citation style now, you can install the beta over your current version. You can revert to the release version at any time.
  • @fbennett: Thanks for the quick fix.
  • Thanks you. I'll try to install the beta version.

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.