openoffice.org plugin: "Action not supported. Invalid Procedure Call."
After giving the oo.o plugin several months of rest because I could never get it to work properly, I decided to try again with the latest version of Ubuntu (Intrepid) and OO.o and a recent svn version of Zotero (October 6).
The plugin worked fine for several days, then I switched to the "Web Layout" view and then back again, and from then on, whenever I push any of the Zotero plugin buttons, I get the message "Action not supported. Invalid Procedure Call.", and an OpenOffice.org Basic window pops up highlighting the line of code where the error occurred.
Here is the Basic code that is highlighted:
Function fnPrefix(ByVal sName As String) As String
Dim nLoc As Integer ###This line is highlighted
nLoc = InStr(sName, "ZOTERO_")
fnPrefix = Mid(sName, nLoc, 11)
End Function
I do not get this message in a fresh document with fresh references--just the one I switched to "Web Layout" view or any document I copy and paste that document into. (I tried copying the content to a new document, but apparently the references remain messed up even when copied.)
Thanks,
Joe
The plugin worked fine for several days, then I switched to the "Web Layout" view and then back again, and from then on, whenever I push any of the Zotero plugin buttons, I get the message "Action not supported. Invalid Procedure Call.", and an OpenOffice.org Basic window pops up highlighting the line of code where the error occurred.
Here is the Basic code that is highlighted:
Function fnPrefix(ByVal sName As String) As String
Dim nLoc As Integer ###This line is highlighted
nLoc = InStr(sName, "ZOTERO_")
fnPrefix = Mid(sName, nLoc, 11)
End Function
I do not get this message in a fresh document with fresh references--just the one I switched to "Web Layout" view or any document I copy and paste that document into. (I tried copying the content to a new document, but apparently the references remain messed up even when copied.)
Thanks,
Joe
Note, though, that the VBA OOo plugin is no longer under development. Development going forward will be on the new Python-based version, an alpha version of which will be released very soon (though it will only work with Zotero 1.5).
fnPrefix = Mid(sName, nLoc, 11)
was highlighted.
I am using XP, oo3, and zotero 3oxt.
Like I said, no problems for a few weeks. And, this paper already had numerous citations in it. This problem just came up at the end. I can still start a new document and insert citations. However, if I cut and past this document to a new page, the citation problem persists.
Any ideas?
Thanks
Jim
fnPrefix = Mid(sName, nLoc, 11)
I'm using OpenOffice 3 and Zotero 1.0.7, but continuing to write the paper is now impossible unless (presumably) I delete and redo all the references. I really want/need this extension to work.
Should I bail on the unreliable extension and manually cut and paste references? Or wait? When is the new python one coming - days, weeks, or months?
Bryan
I'm getting the same error I reported above but for a different reason. Now whenever I copy and paste a citation, one of two things happens:
- if I copy and paste without any extra characters before or after the citation, Zotero no longer things it's a citation ("The cursor is not presently within a Zotero citation");
- if I copy and paste including characters before and after, I get the message "Action not supported. Invalid procedure call" and the Basic dialog opens up on the line "fnPrefix = Mid(sName, nLoc, 11)"
For the moment, every time I want to cut and paste something, I have to delete and redo all the references, which of course is not very convenient when dealing with long passages.
If it's of any help, here are the two citations--first the original one and then the copied-and-pasted one--as they appear in content.xml:
<text:bookmark-start text:name="ZOTERO_BREF_JJ3132U1Tr"/>(see Krasner 1982; Keohane and Nye 1977)<text:bookmark-end text:name="ZOTERO_BREF_JJ3132U1Tr"/>
<text:bookmark-start text:name="ZOTERO_BREF_JJ3132U1Tr1"/>(see Krasner 1982; Keohane and Nye 1977)<text:bookmark-end text:name="ZOTERO_BREF_JJ3132U1Tr1"/>
The only difference is that the second has an extra "1" after the text:name value.
I'm using the latest svn version of Zotero 1.0 and the current openoffice.org plugin (1.0b3), on Ubuntu Intrepid and Openoffice.org 2.4.
Thanks.
There is still a different result depending on whether I paste the citation only or the citation with the characters before and after it.
1) If I paste it with the characters before and after it and then attempt to edit the pasted citation, the citation itself (without the pasted characters before and after) is shown as selected. If I click on "edit citation" once again, I get the message "You must place the cursor in a Zotero citation to edit it."
2) If I only copy and paste the citation alone, without any preceding or following characters, I get the message "You must place the cursor in a Zotero citation to edit it."
The strange thing is that if I then delete the pasted citation and attempt to add a new citation from scratch, I get a message asking "Replace this Zotero field?" (which it just told me didn't exist).