Ghost related items
Report ID: 213314908
In my related items list for some of my items, it shows that I have more related items than I do.
I can reproduce it by using Create Book Section on a Book. The newly created item reports a number of related items greater than that it actually shows (see image 1). The new Book Section is added to the original Book's related items and the number increments, as expected (see image 2). However, when that related item is deleted, though the related item is removed from the list, the number doesn't decrement, even when removed from Trash (see image 3).
This occurs regardless of which method of emptying Trash is used (whether using Empty Trash or Delete Permanently on the item). Additionally, the related item displays even when the item is in the Trash (see https://github.com/zotero/zotero/issues/1780).
Seemingly similar issues:
https://forums.zotero.org/discussion/115411/zotero-7-beta-deleting-a-sub-collection-leaves-ghost-items
https://forums.zotero.org/discussion/111552/zotero-7-beta-merging-creates-a-self-related-item
Image 1 (screenshot of the Related tab of the new Book Section: Example 1) shows only the item for the Book it was created from, but reports 7 related items:
https://s3.amazonaws.com/zotero.org/images/forums/u17154039/zh9l5s22fk26093mo2ds.png
Image 2 (screenshot of the Related tab of the original Book: Blackstone's Commentaries) shows only the 5 existing items as related, but reports 12:
https://s3.amazonaws.com/zotero.org/images/forums/u17154039/4uey1qlyl3663f0j8u0r.png
Image 3 (screenshot of the Related tab of the original Book: Blackstone's Commentaries) shows only the 4 existing items (the 5th, Example 1, having been permanently deleted), but still reports 12:
https://s3.amazonaws.com/zotero.org/images/forums/u17154039/yi2isv8dgoj50j6vp7bh.png
In my related items list for some of my items, it shows that I have more related items than I do.
I can reproduce it by using Create Book Section on a Book. The newly created item reports a number of related items greater than that it actually shows (see image 1). The new Book Section is added to the original Book's related items and the number increments, as expected (see image 2). However, when that related item is deleted, though the related item is removed from the list, the number doesn't decrement, even when removed from Trash (see image 3).
This occurs regardless of which method of emptying Trash is used (whether using Empty Trash or Delete Permanently on the item). Additionally, the related item displays even when the item is in the Trash (see https://github.com/zotero/zotero/issues/1780).
Seemingly similar issues:
https://forums.zotero.org/discussion/115411/zotero-7-beta-deleting-a-sub-collection-leaves-ghost-items
https://forums.zotero.org/discussion/111552/zotero-7-beta-merging-creates-a-self-related-item
Image 1 (screenshot of the Related tab of the new Book Section: Example 1) shows only the item for the Book it was created from, but reports 7 related items:
https://s3.amazonaws.com/zotero.org/images/forums/u17154039/zh9l5s22fk26093mo2ds.png
Image 2 (screenshot of the Related tab of the original Book: Blackstone's Commentaries) shows only the 5 existing items as related, but reports 12:
https://s3.amazonaws.com/zotero.org/images/forums/u17154039/4uey1qlyl3663f0j8u0r.png
Image 3 (screenshot of the Related tab of the original Book: Blackstone's Commentaries) shows only the 4 existing items (the 5th, Example 1, having been permanently deleted), but still reports 12:
https://s3.amazonaws.com/zotero.org/images/forums/u17154039/yi2isv8dgoj50j6vp7bh.png
This issue is still present in the latest Zotero 8 beta.
---
Additionally, and I'm not sure if it'll show in that debug log, but whilst confirming the issue persists, I found that the Item pane info would frequently not load/update for items, even when changing items. Changing context (eg clicking into a different collection) seemed to fixed it temporarily. Sometimes the Info section would be permanently minimised as if there was no data, other times it would freeze on another item's data.
Happy to make a new discussion post for that one if necessary, just thought I'd mention it here since it'd be the same debug ID.
extensions.zotero.cite.useCiteprocRs
in the Config Editor and restarting Zotero. That was an experimental mode and no longer works properly. That's likely the cause of the item pane problems you're seeing.We'd then want to see a Debug ID for creating a new item that shows this problem.
Went ahead and created the book and corresponding chapter from the CSL style request procedure: D1070543031.