Troubleshooting Errors in Word Processor Documents
If you get an error trying to use Zotero in a new, empty document, see Word Processor Plugin Troubleshooting.
If you can insert citations into a new, empty document but get an error using Zotero in an existing document, follow these steps:
- Make sure you're using the latest versions of Zotero and your word processor.
- While troubleshooting, disable the Track Changes feature in Word/LibreOffice, as it can have complicated effects when working with Zotero. If Track Changes is enabled when you insert or modify a Zotero citation, it may mark many or all of the Zotero citations in your document as changed or cause field codes to be displayed. On rare occasions, Track Changes may cause Zotero to think a citation is corrupted. If you had Track Changes enabled previously, try accepting all changes to see if that resolves the issue.
- Check for citations in image captions. Zotero won't let you insert them, but if you copied a citation to a caption that's most likely the source of the problem. Delete it.
- Try copying and pasting the document content into a new document to see if the problem goes away. You may need to click the “Set Document Preferences” button before your old citations will be recognized.
- Make a copy of your document — by duplicating the file itself, not by copying and pasting the content — to use for debugging.
- If using OneDrive on Windows, save the copy of the document to your local hard drive, or try renaming the file to remove any spaces in the filename. OneDrive is known to interfere with the plugin for some people. If this fixes the problem for you, you can help us debug this conflict by posting to the Zotero Forums.
- Open the copied file and check if you get the error after switching to a different bibliography style.
- If the document has a bibliography, delete it and check if you still get the error.
- While debugging, if you are using Fields mode in Word or Reference Marks mode in LibreOffice, it may help to display field codes rather than formatted text. To do this, press Alt/Option-F9 (or Alt/Option-Fn-F9) in Word or Ctrl-F9 in LibreOffice.
- Isolate the problematic citations. Delete half of the document at a time and see if the error still occurs. If not, use Undo to restore the deleted section and then try deleting the other half. Repeat the halving process on the section that fails, or pick one at random if both do. Continue this until you find the smallest possible section, ideally with a single citation, that must be present for the problem to occur. Remove the isolated citations from the original document and the problem should go away (unless there are multiple broken citations, in which case you'll need to repeat the process). Unless the error still occurs if you completely clear the contents of the document, this final step will by definition identify the problem.
If you encounter a broken document, please create a new thread in the Zotero Forums so we can attempt to fix the issue. Be sure to include a Report ID from Zotero, your operating system and word processor versions, the steps you have attempted to fix the error, and whether you were successful. You should also send the document excerpt from Step 10 and a link to your forum thread to firstname.lastname@example.org so that we can try to reproduce the problem.