"curr is undefined" in Mac Word 2011
When I try to do just about anything with the Word plugin (3.1.2) I get an error message saying "curr is undefined". This started after I tried to insert a reference into a footnote.
I searched the forum and googled, but could not find any other reports of this error.
If it helps, I can send the document for troubleshooting.
I searched the forum and googled, but could not find any other reports of this error.
If it helps, I can send the document for troubleshooting.
For example an item with uri
http://zotero.org/groups/6184/items/8ZZ2JQH7
is rendered as
(Wu, 2000)
where as it should be
(Xu, 2005)
Here is a stacktrace of the error:
zotero(3)(+0000098): 'message' => "curr is undefined"
'fileName' => "chrome://zotero/content/xpcom/citeproc.js"
'lineNumber' => 811
'stack' => "("8","empty",true)@chrome://zotero/content/xpcom/citeproc.js:811
([object Array],", ")@chrome://zotero/content/xpcom/citeproc.js:1006
([object Object],[object Array],[object Object])@chrome://zotero/content/xpcom/citeproc.js:896
([object Object],[object Array],[object Object])@chrome://zotero/content/xpcom/citeproc.js:872
([object Object],[object Array],[object Object])@chrome://zotero/content/xpcom/citeproc.js:872
([object Object],[object Array],[object Object])@chrome://zotero/content/xpcom/citeproc.js:872
([object Object],[object Array],[object Object])@chrome://zotero/content/xpcom/citeproc.js:872
([object Object],[object Array])@chrome://zotero/content/xpcom/citeproc.js:872
((void 0))@chrome://zotero/content/xpcom/citeproc.js:2929
()@chrome://zotero/content/xpcom/citeproc.js:2748
()@chrome://zotero/content/xpcom/integration.js:1657
(true,true)@chrome://zotero/content/xpcom/integration.js:1016
()@chrome://zotero/content/xpcom/integration.js:1143
_callIntegration("MacWord2008","refresh","/Applications/Microsoft Office 2011/Microsoft Word.app/")@chrome://zotero/content/xpcom/integration.js:480
execCommand("MacWord2008","refresh","/Applications/Microsoft Office 2011/Microsoft Word.app/")@chrome://zotero/content/xpcom/integration.js:197
([object XPCWrappedNative_NoHelper])@chrome://zotero/content/xpcom/integration.js:435
"
'name' => "TypeError"
zotero(3)(+0000002): 'message' => "curr is undefined"
'fileName' => "chrome://zotero/content/xpcom/citeproc.js"
'lineNumber' => 756
'stack' => "("empty")@chrome://zotero/content/xpcom/citeproc.js:756
([object Object],[object Object],[object Object])@chrome://zotero/content/xpcom/citeproc.js:4586
([object Object],[object Object],[object Object])@chrome://zotero/content/xpcom/citeproc.js:1444
([object Object],[object Object])@chrome://zotero/content/xpcom/citeproc.js:3504
([object Array],(void 0))@chrome://zotero/content/xpcom/citeproc.js:3359
([object Array])@chrome://zotero/content/xpcom/citeproc.js:3270
([object Object],[object Array],[object Array])@chrome://zotero/content/xpcom/citeproc.js:3252
(0,[object Object])@chrome://zotero/content/xpcom/integration.js:1738
()@chrome://zotero/content/xpcom/integration.js:1792
(true,true)@chrome://zotero/content/xpcom/integration.js:978
()@chrome://zotero/content/xpcom/integration.js:1143
()@chrome://zotero/content/xpcom/integration.js:1205
_callIntegration("MacWord2008","setDocPrefs","/Applications/Microsoft Office 2011/Microsoft Word.app/")@chrome://zotero/content/xpcom/integration.js:480
execCommand("MacWord2008","setDocPrefs","/Applications/Microsoft Office 2011/Microsoft Word.app/")@chrome://zotero/content/xpcom/integration.js:197
([object XPCWrappedNative_NoHelper])@chrome://zotero/content/xpcom/integration.js:435
"
'name' => "TypeError"
Working with a copy of the document file, try the steps for debugging broken documents. If you get to step 7 with no joy, try to narrow the file down to the smallest portion that will reproduce the error. If you paste a Zotero RDF export of the item data to gist.github.com, save it as a public gist and post the URL from the address bar back here, I'll see if I can reproduce the fault locally.
http://dl.dropbox.com/u/694399/ExportedItems.rdf
So this only seems to happen with the MISQ style that I have written myself. The CSL file is available at http://www.zotero.org/styles/misq/dev
If an error message is implemented, it could provide two suggestions for the user
1) To change the CSL style and to see if the error persists
2) Include a link to the validation guidelines
In my case this would have saved an hour or two of time.
If we can get a better error message - great - but my understanding is that it's actually not trivial to get citeproc to always fail nicely and consistently (and in many cases it doesn't even fully fail, it just doesn't create the correct output). So validation on install would seem to provide a safeguard for most cases - and if you want to hack your style right inside Zotero, you should really just get a validating editor.
Also, in my case the problem was not that the citeprocs.js would have produced incorrect output, but it failed with an error message that "broke" Zotero for this particular document.