Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Citekey is undefined #372

Open
WvW-vOiDs opened this issue Aug 18, 2024 · 4 comments
Open

[Bug] Citekey is undefined #372

WvW-vOiDs opened this issue Aug 18, 2024 · 4 comments

Comments

@WvW-vOiDs
Copy link

Some items don't have its citekey, even if the citekey is defined in Zotero.
PixPin_2024-08-18_13-34-15

The versions of the software and plugins are:

  • ZotLit (Obsidian): 1.1.8
  • Better BibTex for Zotero: 6.7.222
  • Obsidian: 1.6.7
  • Zotero: 7.0.1

I think it may be the same bug as #303.

Finally, thanks for the amazing plugin. It really helps me a lot.

@WvW-vOiDs
Copy link
Author

WvW-vOiDs commented Aug 18, 2024

One more thing, I'm using citekey as the title of the file, and it displays correctly. This is exactly the opposite of #245.
image

@matar3
Copy link

matar3 commented Aug 18, 2024

I'm having similar issue. I can't cite documents in obsidian by using the syntax [@ because when i click on the article found in the drop-down menu, it writes "[@undefined]", and if i click on it just creates a new note named "undefined". It is happening to me with the article "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4110052/", that has a very long title name, but the issue persists even after renaming the title in zotero. It's strange because i'd already used zotlit to cite this same article in obsidian, and it previously wrote this hyperlink [@@abdelmalekEstimatedAlbuminExcretion2014] but now if i click on it i see an error message saying "Citekey abdelmalekEstimatedAlbuminExcretion2014 not found in Zotero". However, i checked in Zotero and the article has quite that citekey, so can't understand why it doesn't find it.
Immagine 2024-08-18 184321
Immagine 2024-08-18 184522

Immagine 2024-08-18 185148
Immagine 2024-08-18 185024

Immagine 2024-08-18 185433

@WvW-vOiDs
Copy link
Author

WvW-vOiDs commented Aug 19, 2024

I’m not sure what happened, but it seems to be working now. I’m sure that the versions of all plugins and software haven’t changed. I just closed and reopened Zotero and Obsidian, reloaded the plugins in Obsidian, and deleted and recreated the note. After that, it worked!

image

Hope that will help you.

@matar3
Copy link

matar3 commented Aug 19, 2024

It did work also for me! Thank you @WvW-vOiDs very much for your help!
I did same things, and even if i'd done several tries even before posting here on github, this time it worked!
Yet, we're still not figuring out what happened.
I guess a change can have happened in the name of the md note file: before it was named "10.1053_j.ajkd.2013.10.061.md", whereas now it is named "abdelmalekEstimatedAlbuminExcretion2014.md" (i.e. has the same name of the citation key). Another hypothesis is that when opening the info of the md file in obsidian zotero side view some kind of sync happened and corrected the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants