I can't click the link to jump


When I click the URL link in the snapshot to view the log, troubleshooting:


[JavaScript Error: "Error 413 for item 6ECSGMQS in 我的文库:

ZoteroObjectUploadError: Note '封面图 合集测评类 干货攻略类 对比类 真实人物/场景类...' too long for item '9267380/6ECSGMQS'"]

[JavaScript Error: "Note '封面图 合集测评类 干货攻略类 对比类 真实人物/场景类...' too long for item '9267380/6ECSGMQS'" {file: "chrome://zotero/content/xpcom/sync/syncEngine.js" line: 1357}]

[JavaScript Error: "Made no progress during upload -- stopping" {file: "chrome://zotero/content/xpcom/sync/syncEngine.js" line: 1416}]

[JavaScript Error: "Made no progress during upload -- stopping" {file: "chrome://zotero/content/xpcom/sync/syncEngine.js" line: 1416}]

[JavaScript Error: "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIFile.initWithPath]" {file: "chrome://zotero/content/xpcom/file.js" line: 47}]

[JavaScript Error: "Unexpected path value ''" {file: "chrome://zotero/content/xpcom/file.js" line: 56}]

[JavaScript Error: "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIFile.initWithPath]" {file: "chrome://zotero/content/xpcom/file.js" line: 47}]

[JavaScript Error: "Unexpected path value ''" {file: "chrome://zotero/content/xpcom/file.js" line: 56}]

[JavaScript Error: "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIFile.initWithPath]" {file: "chrome://zotero/content/xpcom/file.js" line: 47}]

[JavaScript Error: "Unexpected path value ''" {file: "chrome://zotero/content/xpcom/file.js" line: 56}]

version => 6.0.7-beta.3+c49a05d48, platform => Win32, oscpu => Windows NT 10.0; WOW64, locale => zh-CN, appName => Zotero, appVersion => 6.0.7-beta.3+c49a05d48, extensions => ZotFile (5.1.1, extension), Zotero LibreOffice Integration (6.0.0.SA.6.0.7-beta.3+c49a05d48, extension), Zotero Word for Windows Integration (6.0.0.SA.6.0.7-beta.3+c49a05d48, extension)

(3)(+0020004): itemTree.render(). Displaying Item Tree

(3)(+0001024): launchWithURI() not supported -- trying fallback executable

(1)(+0000000): NS_ERROR_FAILURE Exception: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIFile.initWithPath] Zotero.File</this.pathToFile@chrome://zotero/content/xpcom/file.js:47:16 this.launchURL@chrome://zotero/content/xpcom/zotero.js:1072:18 ZoteroPane</this.loadURI@chrome://zotero/content/zoteroPane.js:3588:9 refresh/urlField.onclick@chrome://zotero/content/bindings/attachmentbox.xml:249:10

(1)(+0000000): Error: Unexpected path value '' Zotero.File</this.pathToFile@chrome://zotero/content/xpcom/file.js:56:11 this.launchURL@chrome://zotero/content/xpcom/zotero.js:1072:18 ZoteroPane</this.loadURI@chrome://zotero/content/zoteroPane.js:3588:9 refresh/urlField.onclick@chrome://zotero/content/bindings/attachmentbox.xml:249:10

(3)(+0000309): itemTree.render(). Displaying Item Tree
  • It looks like the file you're trying to open somehow ended up with an empty path, so you'll need to delete and re-add.

    Do you recall how you added it?

    Can you reproduce that with a newly added item?
  • All files cannot be opened,I saved it through the Microsoft edge browser zotero translator
  • If you can reproduce this, we'd want to see a Debug ID from Zotero for 1) saving an attachment and then 2) getting this error when trying to open it (after giving it time to fully save).
  • I did what you said. ID:1155795949
  • No, that's a Report ID, not a Debug ID. See the instructions I linked to.
  • D1480311219
  • Ah, I missed that you were clicking the URL link, not trying to open the snapshot itself. So this isn't actually related to the snapshot path — it's just happening because Zotero isn't able to launch URLs via your default web browser for some reason. That should never fail on Windows.

    Does this happen for all items or only some?

    Can you select one of the affected items, go to Tools → Developer → Run JavaScript, run the following code, and let us know whether you get an error on the right?

    var url = ZoteroPane.getSelectedItems()[0].getField('url')
    var uri = Services.io.newURI(url, null, null);
    var handler = Components.classes['@mozilla.org/uriloader/external-protocol-service;1']
    .getService(Components.interfaces.nsIExternalProtocolService)
    .getProtocolHandlerInfo('http');
    handler.preferredAction = Components.interfaces.nsIHandlerInfo.useSystemDefault;
    handler.launchWithURI(uri, null);
  • ALL the atems,[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIHandlerInfo.launchWithURI]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://zotero/content/runJS.js line 23 > eval :: :: line 7" data: no]
  • edited May 9, 2022
    Yeah, so this is something about your system configuration. For some reason Zotero is getting a generic error trying to launch a URL via the system browser. Could be due to security software or something else, but it's not something we can fix in Zotero itself.
  • How can I solve this problem
  • It's something you'll have to figure out on your own system.
  • @yestar: The only thing we can suggest is to close Zotero and delete mimeTypes.rdf from your Zotero profile directory. If that doesn't work, it's a problem outside of Zotero that you'll need to figure out.
  • I also encountered the problem of not being able to click the zotero:// link and jump, I searched a lot and finally believed it's the problem of zotero:// protocol not being registered. I installed zotero through scoop and maybe some bugs appeared, so I reinstalled zotero using winget without uninstalling it. It finally worked, and I think reinstalling it using the package from the homepage should also work.
Sign In or Register to comment.