Skip to content

Uncaught exception: undefined when installing or starting plugins in Zotero 7 #294

@NilsonPark

Description

@NilsonPark

Issue Description

After installing add-ons derived from this template in Zotero 7, the following error consistently appears in the Debug Output Console:

[JavaScript Error: "uncaught exception: undefined"]

This error occurs during the following actions:

  • Installing the .xpi file
  • Starting Zotero with the add-on installed
  • Uninstalling the add-on

When the add-on is not installed, the error does not appear. This suggests that the issue originates from extensions built using this template.


Test Environment

(All tested releases exhibit the same issue. Zotero’s official demo add-on “Make It Red” also triggers this error.)


Steps to Reproduce

  1. Open Zotero 7 (version 7.0.27, 64-bit).
  2. Install any add-on derived from this template.
  3. Go to Help → Debug Output Logging → Restart with Logging Enabled…
  4. After restart, open Help → Debug Output Logging → View Output.
  5. Observe the error message in the console.

Sample Results

Zotero Plugin Template

Zotero Plugin Template Error

Zotero Better Notes

Zotero Better Notes Error

Additional Notes

I’ve observed this same “uncaught exception: undefined” message across multiple Zotero add-ons.

After some investigation, I traced the issue back to this plugin template, which suggests the root cause may lie in the shared structure or initialization code used across these add-ons.

This issue has been reproduced on Windows 11 and Ubuntu, and further testing on macOS is needed to verify whether it occurs consistently across platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions