Zotero tab not appearing in Word. Exception "fn is undefined"

Related to Report ID: 1364110279

After the last Zotero update, I do not see the Zotero tab in Word, also not in the menu. I'm using Word for Mac.

Both Word and Zotero are updated to last versions: MS Word (16.47), Zotero (5.0.91.1)

Account storage is at 10%.

When I navigate to Tools > Add-ons I can see the "Zotero Word for Mac Integration" (version 5.0.36.SA.5.0.96.1) which was updated last March 7, 2021. Auto-updates are set to automatically.

Disabling and Enabling this Add-on does not fix the issue.

I also tried to Install again the Microsoft Word Add-in from Zotero > Preferences > Cite > Word Processors > Install Microsoft Word Add-in. After a second I get the following exception:

Installation could not be completed because an error occurred.

[Exception... "[JavaScript Error: "fn is undefined" {file: "file:///Applications/Zotero.app/Contents/Resources/extensions/zoteroMacWordIntegration@zotero.org/components/zoteroMacWordIntegration.js" line: 347}]'[JavaScript Error: "fn is undefined" {file: "file:///Applications/Zotero.app/Contents/Resources/extensions/zoteroMacWordIntegration@zotero.org/components/zoteroMacWordIntegration.js" line: 347}]' when calling method: [nsIRunnable::run]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: resource://zotero-macword-integration/installer.jsm :: Plugin</this.install :: line 53" data: yes]

  • edited March 19, 2021
    What Big Sur version?

    Is this a new M1 Mac or an older one?
  • 11.2.3
    The MacBook Pro is from 2018.
  • OK, @adomasven may have some ideas here.
  • edited March 19, 2021
    @janafienchen So there's two problems here. One is a bug in Zotero not properly reporting why the installation failed. We'll have a fix for that out at least in the Zotero Beta sometime soon. The other is that Zotero fails to install the plugin probably due to something about the way your system is configured. Likely Zotero doesn't have sufficient permissions to install the necessary files. To address that you will need to follow the Zotero word plugin manual installation instructions.
  • edited March 19, 2021
    Thanks for the answer. I managed to fix it. Here is how:

    I followed the instructions but I see a Zotero.dot, instead of a Zotero.dotm in /Applications/Zotero.app/Contents/Resources/extensions/zoteroMacWordIntegration@zotero.org/install . Copying it in the Word folder did not solve the issue.

    I downloaded the Zotero.dotm as instructed in the Windows installation, however I switched to the zotero-word-for-mac-integration repository instead (link: https://github.com/zotero/zotero-word-for-mac-integration/blob/master/install/Zotero.dotm), and copied it to the folder specified in the Mac instructions. This, so far, seems to fix it.

    This link would be useful also in the Mac instructions, just as there is the respective one for Windows.
Sign In or Register to comment.