MS Word plugin, again..
Report ID: 328961434
Hi there,
Sorry to bring up this topic yet again, but upon trying to use any feature of the MS Word plugin (which does successfully appear in the toolbar) I am presented with:
"Run-time error '5':
Invalid procedure call or argument"
Running Zotero 5.0.93, Word 16.43, on Mac Catalina 10.15.5.
I've tried everything I can think of/find on previous forums:
- Trying a new document
- Reinstalling the plugin both automatically & manually (tried .dot as well as .dotm for good measure — .dot toolbar shows up but returns the same error message)
- Trying a new user account
- Reinstalling Office
- Restarting computer
- Deleting "~/Library/Containers/com.microsoft.Word/Data/Library/Preferences/com.microsoft.Word.plist"
- Checked File Locations: Startup
Hopefully I've just missed an easy fix/made a stupid error..?
Cheers
Hi there,
Sorry to bring up this topic yet again, but upon trying to use any feature of the MS Word plugin (which does successfully appear in the toolbar) I am presented with:
"Run-time error '5':
Invalid procedure call or argument"
Running Zotero 5.0.93, Word 16.43, on Mac Catalina 10.15.5.
I've tried everything I can think of/find on previous forums:
- Trying a new document
- Reinstalling the plugin both automatically & manually (tried .dot as well as .dotm for good measure — .dot toolbar shows up but returns the same error message)
- Trying a new user account
- Reinstalling Office
- Restarting computer
- Deleting "~/Library/Containers/com.microsoft.Word/Data/Library/Preferences/com.microsoft.Word.plist"
- Checked File Locations: Startup
Hopefully I've just missed an easy fix/made a stupid error..?
Cheers
1. Open Zotero.dotm directly in Word.
2. Allow running macros
3. In the Developer tab click Visual Basic
4. In the left sidebar select the 2nd Project (Zotero) and open the Zotero code file from the Modules folder
5. In the top toolbar press the Run Sub/UserForm button (looks like a Play icon) and select "ZoteroAddEditCitation".
6. You should see the same error, but perhaps there's going to be a bigger trace of the error, more detailed error message, or the editor will highlight the line at which the error occurred.
When I get to step 4, when I select "Project (Zotero)" in VB I get:
"Project Locked
Project is unviewable" ?
Same problem, but this time the 'debug' option is available, taking me to the penultimate line of code which reads:
"MacScript "try" & nl$ & "do shell script """ & pipeLocation$ & "; if [ -e \""$PIPE\"" ]; then echo '" & wordVersion$ & " " & func & " "" & POSIX path of (path to current application) & ""' > \""$PIPE\""; else exit 1; fi;""" & nl$ & "on error" & nl$ & "display alert ""Word could not communicate with Zotero. Please ensure that Zotero is open and try again."" as critical" & nl$ & "end try""
Zotero is open, and I've just tried quitting both Word & Zotero and rerunning the same steps.
MacScript "display dialog ""test"" "
Then try running any of the Zotero macros again. You should see a dialog appear that says "test" with a Cancel and OK buttons. Can you confirm this works?
osascript -e "display dialog \"test\""
into it and press Enter do you get a dialog that says "test"?
So, what would your advice have been in that case? I really, really want to figure this out, as the alternative at this point is to stop using Zotero and try to recreate my entire library in some other citation manager, which is honestly making me want to cry.
(Note that I've also updated everything I can think of up to and including the OS, tried reinstalling Zotero, tried reinstalling Word, tried using Zotero in a virgin doc, etc.)
Result$ = AppleScriptTask("Zotero.scpt", "callZotero", shellScript$)
After some searching and lots of time swapping out plugins it bizarrely appeared to be caused by an audio unit plugin. In my case, it was Voxengo SPAN. After upgrading SPAN to the latest release Zotero now works
Deleting the one that I had fixed the problem immediately, no restart required, no malfunction with audio or any other perceivable consequences.