WordPlugin error: "this.state.registry.registry [cite.itemId].siblings is undefined"
Hello there,
after updating to Zotero 2.1 I encountered an annoying problem. Trying to update my old docs in MS Word, I always get the following error:
"Ein Fehler ist beim Updaten Ihres Dokuments aufgetreten. this.state.registry.registry [cite.itemId].siblings is undefined". ("Ein Fehler ist beim Updaten Ihres Dokuments aufgetreten" should read "an error occurred updating your document" or sth. like that in English).
I tried different docs - always the same error. Making a new document and inserting citations works. BUT: if I copy and paste my old text into a new document, the error keeps occurring.
After trying around a bit, I found out the error has something to do with my own (custom) citation style. In fact it won't occur, if I use one of the standard-styles (updating with a standard-style and changing to my custom-style afterwards won't do it either). So I had a look into my style, updated it to CSL 1.0 as described here (http://citationstyles.org/downloads/upgrade-notes.html#updating-csl-0-8-styles) and validated to the CSL 1.0 schema. That didn't change anything, so I started to narrow down the problem, commenting out some parts. Now I know it has something to do, with my legal_case citation section: If I delete the whole section it won't crash. But I don't get the exact problem.
This is, how it should read:
<else-if type="legal_case">
<text macro="author-short" suffix=" "/>
<choose>
<if variable="volume">
<text macro="container-title-short" suffix=" "/>
<text macro="volume"/>
<text macro="page" prefix=", "/>
</if>
<else>
<text macro="case-type"/>
<text macro="full-date" prefix=" v. "/>
<text macro="case-locator"/>
<text macro="docket-number"/>
</else>
</choose>
<text variable="locator" prefix=", "/>
<text variable="abstract" prefix=" "/>
</else-if>
Deleting one line after another didn't help much. Even an empty section or one single line with an simple text macro won't work:
<else-if type="legal_case">
<text macro="author-short" suffix=" "/>
</else-if>
BUT (don't ask why): The following works (beside that it's not what I want):
<else-if type="legal_case">
<text macro="author-short" suffix=" "/>
<text macro="case-type"/>
<text macro="full-date" prefix=" v. "/>
<text macro="case-locator"/>
<text macro="docket-number"/>
<text variable="locator" prefix=", Tz. "/>
<text variable="abstract" prefix=" "/>
</else-if>
Im testing with an doc of 15 pages with about 100 footnotes. Funnily after deleting 12 Pages I got another type of errormessage: "myparams[pos] is undefined". After deleting everything except the first page with 3 footnotes it works.
I’m desperate :o
I posted an error Report under ID: 1335922590.
Full CSL-File: https://gist.github.com/879687 (it's "dirty", but worked well up to 2.1).
I'm running Zotero 2.1.1 (tried standalone too), WinWordIntegration 3.1b1, MS Word 2007 SP2, Windows Vista Sp 2, Firefox 3.6.15.
I'd appreciate any help very much. Thank you!
after updating to Zotero 2.1 I encountered an annoying problem. Trying to update my old docs in MS Word, I always get the following error:
"Ein Fehler ist beim Updaten Ihres Dokuments aufgetreten. this.state.registry.registry [cite.itemId].siblings is undefined". ("Ein Fehler ist beim Updaten Ihres Dokuments aufgetreten" should read "an error occurred updating your document" or sth. like that in English).
I tried different docs - always the same error. Making a new document and inserting citations works. BUT: if I copy and paste my old text into a new document, the error keeps occurring.
After trying around a bit, I found out the error has something to do with my own (custom) citation style. In fact it won't occur, if I use one of the standard-styles (updating with a standard-style and changing to my custom-style afterwards won't do it either). So I had a look into my style, updated it to CSL 1.0 as described here (http://citationstyles.org/downloads/upgrade-notes.html#updating-csl-0-8-styles) and validated to the CSL 1.0 schema. That didn't change anything, so I started to narrow down the problem, commenting out some parts. Now I know it has something to do, with my legal_case citation section: If I delete the whole section it won't crash. But I don't get the exact problem.
This is, how it should read:
<else-if type="legal_case">
<text macro="author-short" suffix=" "/>
<choose>
<if variable="volume">
<text macro="container-title-short" suffix=" "/>
<text macro="volume"/>
<text macro="page" prefix=", "/>
</if>
<else>
<text macro="case-type"/>
<text macro="full-date" prefix=" v. "/>
<text macro="case-locator"/>
<text macro="docket-number"/>
</else>
</choose>
<text variable="locator" prefix=", "/>
<text variable="abstract" prefix=" "/>
</else-if>
Deleting one line after another didn't help much. Even an empty section or one single line with an simple text macro won't work:
<else-if type="legal_case">
<text macro="author-short" suffix=" "/>
</else-if>
BUT (don't ask why): The following works (beside that it's not what I want):
<else-if type="legal_case">
<text macro="author-short" suffix=" "/>
<text macro="case-type"/>
<text macro="full-date" prefix=" v. "/>
<text macro="case-locator"/>
<text macro="docket-number"/>
<text variable="locator" prefix=", Tz. "/>
<text variable="abstract" prefix=" "/>
</else-if>
Im testing with an doc of 15 pages with about 100 footnotes. Funnily after deleting 12 Pages I got another type of errormessage: "myparams[pos] is undefined". After deleting everything except the first page with 3 footnotes it works.
I’m desperate :o
I posted an error Report under ID: 1335922590.
Full CSL-File: https://gist.github.com/879687 (it's "dirty", but worked well up to 2.1).
I'm running Zotero 2.1.1 (tried standalone too), WinWordIntegration 3.1b1, MS Word 2007 SP2, Windows Vista Sp 2, Firefox 3.6.15.
I'd appreciate any help very much. Thank you!
More soon ...
I have the same Wordplugin error: "this.state.registry.registry [cite.itemId].siblings is undefined".
After reading this forms' response, I located the source that wasn't working and deleted it. For this, I used "move to trash" then I emptied the trash. Afterwards, I tipped the same source in manually.
Now, the same error occurs, when I try to use the manually tipped in source and when I try to use another source, this error follows:
"CSL error
TypeError: this.registry.citationreg.citationByld[c[0]] is
undefined
citationID=F0ZZI8tK
noteIndex=0
at array citationsPost index 241, from citation at document
position 0"
Then I have to close and reopen zotero, to be able to use the other sources again.
Can you help me?
Best wishes
here is the Report ID: 49744781
Thank you
Report ID: 1163174109