[SOLVED?] Error Report 1316769453: Zotero fails to update citations as soon as a website is present
The problem itself is well known, but probably not in this constellation:
Whenever I add a website as a citation to a document Zotero fails to create a bibliography or to update the references. If I remove all websites, updating and creating a bibliography (or updating an existing bibliography) works perfectly. If I add another website, the updating fails again. The steps in the troubleshooting guide did not help solve it, they just helped me isolate the problem (the website type of documents in the references).
The URL/hyperlink is not the source of the problem: When I add a journal article with a specified web adress this is added and displayed correctly, and everything works fine.
The problem seems to be related with the document type "webpage" in the Zotero database.
I am using Zotero 5.0.80 for Linux on Ubuntu 19.10 (x64) on an M$ Surface Pro 4 and the LibreOffice Plugin with LibreOffice (Writer) 6.3.3.2
I reported the error with the ticket number 1316769453. The logged error message whenever the updating fails is: [JavaScript Error: "token is undefined" {file: "chrome://zotero/content/xpcom/citeproc.js" line: 4154}]
I also added a debug output under the following ID: D264600016
EDIT: I found out the problem was connected to the CSL style I used, it was not present in different styles. Further testing showed the reason to be an empty "author" field on website entries, so Zotero tried to read and paste an empty string which caused the error. Entering something into the "author" field in the Zotero database would prevent the error from happening with that particular website.
I modified the CSL style by adding an "If 'author' is present" conditional before the "author" macro. That fixed it! Although I am not sure why this was necessary - doesn't Zotero normally ignore empty fields automatically?
I am not sure whether this is a bug in Zotero or whether it was just a faulty CSL script.
Whenever I add a website as a citation to a document Zotero fails to create a bibliography or to update the references. If I remove all websites, updating and creating a bibliography (or updating an existing bibliography) works perfectly. If I add another website, the updating fails again. The steps in the troubleshooting guide did not help solve it, they just helped me isolate the problem (the website type of documents in the references).
The URL/hyperlink is not the source of the problem: When I add a journal article with a specified web adress this is added and displayed correctly, and everything works fine.
The problem seems to be related with the document type "webpage" in the Zotero database.
I am using Zotero 5.0.80 for Linux on Ubuntu 19.10 (x64) on an M$ Surface Pro 4 and the LibreOffice Plugin with LibreOffice (Writer) 6.3.3.2
I reported the error with the ticket number 1316769453. The logged error message whenever the updating fails is: [JavaScript Error: "token is undefined" {file: "chrome://zotero/content/xpcom/citeproc.js" line: 4154}]
I also added a debug output under the following ID: D264600016
EDIT: I found out the problem was connected to the CSL style I used, it was not present in different styles. Further testing showed the reason to be an empty "author" field on website entries, so Zotero tried to read and paste an empty string which caused the error. Entering something into the "author" field in the Zotero database would prevent the error from happening with that particular website.
I modified the CSL style by adding an "If 'author' is present" conditional before the "author" macro. That fixed it! Although I am not sure why this was necessary - doesn't Zotero normally ignore empty fields automatically?
I am not sure whether this is a bug in Zotero or whether it was just a faulty CSL script.
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.