Cannot update document: state.fun.decorate[params[0]][params[1]] is undefined
Hi. I've started getting the following message in my documents (using my own style, which has previously been absolutely fine for several years):
"Zotero experienced an error updating your document
state.fun.decorate[params[0]][params[1]] is undefined"
It seems to be an issue with updating the reference list.
I validated .csl file against schema version 1.0.1 at this website and it seemed fine: http://validator.citationstyles.org/
Any suggestions?
"Zotero experienced an error updating your document
state.fun.decorate[params[0]][params[1]] is undefined"
It seems to be an issue with updating the reference list.
I validated .csl file against schema version 1.0.1 at this website and it seemed fine: http://validator.citationstyles.org/
Any suggestions?
JavaScript Error: "state.fun.decorate[params[0]][params[1]] is undefined" {file: "chrome://zotero/content/xpcom/citeproc.js" line: 3948}
This is either a CSL or citeproc issue, so pinging @fbennett.
@Mazzers could you also upload the custom style somewhere (e.g. gist.github.com) so we can take a look too?
https://gist.github.com/anonymous/b5acf2fd38bd771d5d604d213c222637
Anyway, thanks for any help you can provide.
No. There's not really any reasoning behind any of the code. I adapted an existing code to my organisation's editorial rules using the visual CSL editor available online (http://editor.citationstyles.org/visualEditor/). I've done very little direct tinkering with the CSL script itself.
It's worked fine until today, so I guess that perhaps there's been a Zotero update that has resulted in some kind of incompatibility?
In the meantime, my colleague is running the previous Firefox version (4.0.29.16) and there's no problem with the referencing with that style on her computer.
As for the Adamsmith questions, the problem seems to occur with both new and existing documents and it doesn't occur with specific items. It's very odd, in fact. When adding references to a new document, the error message will come up eventually. But deleting the most recent additions and reverting to the citations that were previously okay does not make the error go away.
Is there a way to go back to 4.0.29.16 in Firefox? That would seem to be the simplest option for me right now.
@Mazzers: If you can wait just a short while (and, say, switch to another style temporarily), it'd be much easier to let fbennett take a look at this, and we'll push out a new beta as soon as there's a fix. Getting back to an older Firefox version is obviously possible but a little tricky.
https://github.com/Juris-M/propachi-vanilla/releases/tag/v1.1.87alpha1
If you install the plugin, turn on logging (via Zotero Preferences -> Advanced), trigger the error, then submit a Report ID, the log should show the name of the function it is trying to execute when it fails.
Xeno, X., 2000, 'Hello Title 20 'Aalto, A. (ed.)', <i>Journal of Note</i>.
The middle single-quote is placed there as a delimiter, so the quotes are un-balanced by design. Is that as intended?
Another point: I'm now running 5.0 beta on my desktop and have installed the Zotero connector but the latter doesn't seem to be working. When I open a new tab in Firefox there's a red Zotero 'Z' in the top right of my browser but it doesn't do anything when pressed. I don't know if this is somehow related to my other problem? It doesn't seem very likely but, then again, what do I know?
Final point: yeah, you do seem to have identified a bit of a flaw in my CSL. I think it's just that the problem hasn't come up in our work yet so it's not been fixed.
https://github.com/Juris-M/propachi-vanilla/releases/tag/v1.1.87beta
@Mazzers: The bottleneck is at my end. Once I'm able to reproduce the error here, I'll be able to fix it, but that initial effort to identify the bad command didn't work out. If you can work out steps needed to reproduce the problem, that will be very helpful.
https://gist.github.com/anonymous/007f63f6711f71e4a1b53f366de030ab
https://gist.github.com/anonymous/566f41ae7449ba2989081904f798af61
as @Mazzers if I only add the citation nothing happens, the problem comes out when I add the bibliography