Error [MLZ] citation processor only works second time
I am using MLZ and Australian Guide to Legal Citation. Each time I enter a citation in Word using the classic citation dialog, it returns the error 'Zotero experienced an error in updating your document. this.registry.registry[myid] is undefined'. However, the second time I can successfully insert the citation.
I have tried converting the document into MLZ New Zealand style and also copying and pasting into a new document. The error is occurring across computers with different browsers/Word versions, too. Any ideas as to what I can do - I'm writing a long document and although I can get the documents in, it's pretty frustrating.
I have tried converting the document into MLZ New Zealand style and also copying and pasting into a new document. The error is occurring across computers with different browsers/Word versions, too. Any ideas as to what I can do - I'm writing a long document and although I can get the documents in, it's pretty frustrating.
I'm not 100% certain that this has the same cause as the other error. If it's still not working smoothly, post back and I'll dig into it further.
First, just to be sure, you don't have the patch plugin installed, by any chance? (It shows up as "Citation Gadget", I think.) If it is installed, disable or remove it, and the problem should go away.
If the patch plugin is not installed, is this happening with one document only, or does it happen in a freshly created document as well?
In a document that shows the problem, do you also get failures with the New Zealand style, or does it fail only when the AGLC is selected?
Once those answers are in, we can start narrowing things down and get this fixed for you.
To confirm, you are seeing this error?
this.registry.registry[myid] is undefined
If so, I'll need to reproduce the problem in order to find and fix the bug. If you notice a pattern to the failure, please post again.
The interesting thing is if you repeat inserting the same citation, the second time, this error does not occur.
If you have any ideas let me know.
Thanks
If I find any further information, I will let you know.
It must be triggered by data that is sent to the processor from the document. By following the steps here, you should be able to narrow down to a minimal document that reproduces the failure. Once you have that, we'll be closer to a fix.
As joycekwc mentioned it, it occurs once every two times. When I first open my document and add a new footnote, the error appears. When I repeat this same step a second time, it works correctly. Then, if I move to a new part of the document, and try to add a new citation, the error appears again (and so on.).
In the error report, this shows up at some point, several times in a row:
[JavaScript Error: "this.registry.registry[myid] is undefined" {file: "chrome://zotero/content/xpcom/citeproc.js" line: 4182}].
If the latter, as the document is split by halves, do you end with a document containing a single reference that shows the error? If the document is split again to contain no references at all, does it still show the error?
I'm sorry to be responding with further questions; there is clearly an issue, but I need to reproduce the error locally in order to trace the cause.
The sheer size of the document will not make any difference by itself. As I wrote above in response to Rogena, and again in response to joycekwc, the path to pinning down the problem will lie in the steps for debugging broken documents. If you can follow those steps to find a smaller document fragment that triggers the fault, or to identify the specific conditions that trigger it, the prospects for fixing it will be better.
Looking at the MLZ-specific features of the style, one possible cause looks to be parallel citations. If you have parallel citations in the document, that would be one thing to watch during splitting trials.
I copied an pasted my entire document into a fresh word doc and it worked fine for two or three citations then failed. A fresh doc with only half a dozen pages failed after the third attempt with the same citation.
I opened a fresh document and noticed that when I used different citations each time there was no problem, but when I used the same citation more than twice it failed.
Testing different citations and some prompt failure when used consecutively and some dont. In general once I start working every citation fails.
Opened a fresh doc and used Chicago style instead of NZ Law and it worked fine. A new doc using NZ Law failed, so its definitely something about the MLZ plugin. Who would I notify about that?
I can work with this problem, and have been doing so for some time, but its pretty frustrating...
(Sorry to keep responding with questions, but until we pin down the exact steps for reproducing the problem, it's hard for me to get started.)
And no problem, Im glad someone else is having a go at this one, we are recommending that all the law PhDs start using Zotero and its important that things like this dont bother everyone.
If you have an item for which that's the case, export is as bibliontology RDF (right-click-->Export). Then open the file with a text editor (TextEdit, Notepad), select all and copy. The paste the entire content to
gist.github.com --> Create Public Gist (bottom of the screen) and provide a link here.
Again, make sure that, with the item you're exporting, if you insert that one citation several times in a row, you get an error.
You need to put fbennett in a position so that he can generate that error on his own machine--then he'll likely be able to fix it quickly.
I am experiencing this problem on a document ~9000 words long, using Juris-M NZ Law Style. The same thing occurs that the citation always works the second time around, and happens seemingly randomly.
Was there a solution?
TypeError: AbbrevsFilter.initWindow is not a function
TypeError: this._editor is undefined styled-textbox.xml:217:9 (with a red 5 next to it)
this.registry.registry[myid] is undefined citeproc.js:4336:0
TypeError: History.getState is not a function _zoterowwwAll.bugly.1435774747.js:4478:20
I'll try to get a debugging version out tomorrow. I'll post back here when it's ready.
One question before I look further. Do you have the Abbreviation Filter plugin installed? If so, what is its version number?
I've fixed the bug in the processor. To try it out, install the latest release of the Processor Patch plugin. You should remove the plugin at the next Juris-M release.