Style validation change?
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.
this seems to be a real problem: I haven't had any issues myself (using zotero 4.0.29.7 in Iceweasel on a debian machine with the LibreOffice plugin), but my colleagues have received the same error message about a style being invalid that has worked fine until the day before yesterday or so. They both work with the Firefox plugin and the Word integration. The whole thing seems to work fine when using the standalone version.
The citation style used is our home brew - zotero test pane is happy with the code (chrome://zotero/content/tools/csledit.xul), http://validator.citationstyles.org/ won't test it ("taking longer than expected" - that is a separate issue, I guess), but https://simonster.github.io/csl-validator.js/ is happy, too.
I continue to use the style and I can 'reinstall' it in the style preferences - my colleages still get the error message that the very same style was invalid though it worked a few days ago. Here's the code: https://gist.github.com/anonymous/153be44d18e640b6feb63179c4e580e6.
Thanks for any help!
Error in LibreOffice (in French) (in a new document as you say) : "Le style que vous avez sélectionné ne semble pas valide. Si vous l'avez créé vous-même, assurez-vous qu'il satisfait les conditions de validation décrites sur https://github.com/citation-style-language/styles/wiki/Validation. Autrement, essayez de sélectionner un autre style."
Error in Zotero - Firefox (4.0.29.7): "Une erreur s'est produite lors de la création de votre bibliographie. Veuillez réessayer."
No error in Zotero - standalone (4.0.29.5)
<link rel="self" href="http://www.zotero.org/styles/ema-berlin"/>
added below the id
I'd maybe try saving all your custom styles somewhere outside Zotero, then reset styles from the advanced tab and then re-install that one style -- to be 100% sure we're looking at the same thing, download it directly from where you shared it (right-click on "Raw" at the top right and save link as, then just change the file extension to .csl)
If it turns out that the error comes from a missing "self" link, this should be fixed, since that link is optional per the CSL 1.0.1 spec.
I also have my solution, i just have to "re-save" all my csl style. Thank you very much ! :)
But we still didn't know why many cases appear like mine since yesterday ? Validation problem with some custom style (before resaving them...) ?
As for where this comes from, I only looked quickly, but I think it's triggered by a citeproc error -- but given that it only affects the FF add-on, not standalone, it must be a bit of code that is interpreted differently by FF45.
1) Some valid styles are marked as invalid by Zotero if certain elements are missing or "wrong". This only affects custom styles because we have a stricter test suite for "official" styles. This only affects Firefox 45. Just to be clear, this is a bug in Zotero that should get fixed. But as I say to Rintze above, I didn't want all of you to have to wait until we've figured out how, which is why I'm suggesting how you can adjust your custom styles to make them work.
2) In your specific case, either the old styles weren't overwritten properly on re-install, or something had gone wrong in your style directory, so you kept getting the error even with a fixed style. That part I'm less worried about.
Sorry, I didn't get that part. I added that line and asked my colleagues to test it - it works! So problem solved (in my case) and shame on me, but it's still mysterious why it had worked without the self link for the last couple of years and stopped to do so this week.
Thanks so much!
Best
Paul
https://gist.github.com/rmzelle/a47ceb6dfcf8151296cb615254631a3a
(it's the "TypeError: m is null")
This is with Zotero for Firefox 4.0.29.7 and the style https://gist.github.com/rmzelle/123c680d3fa9ffbfa80bd45132451e24 from this thread: https://forums.zotero.org/discussion/58471/firefox-error-says-my-style-isnt-valid/
Just in case: I have reinitialised the styles (twice) in zotero, downloaded the style from https://gist.github.com/adam3smith/481245b731d50cc35cbae7d484524b68 and saved it in the "styles" folder of zotero. Then opened a new word document, then firefox, then tried to add a citation which lets zotero ask for a style definition: whenever I chose the NEMO style, I have the same problem as before.
I have also tried to choose this style in the Document preferences, still the same problem.
So let's go step by step: After resetting the styles, you don't see any traces of any NEMO style left in Zotero, correct?
When you then download the style using the "Raw" link on github, it installs without issues in Zotero?
The style then works fine in the style editor in Zotero https://www.zotero.org/support/dev/citation_styles/reference_test_pane ?
When you add a new citation in Word using a different style, it works?
When you add a new citation in Word using the NEMO style or switch to it, you get the "not valid" error message?
Please run through these and confirm one by one.
1- "So let's go step by step: After resetting the styles, you don't see any traces of any NEMO style left in Zotero, correct?"
Yes, no NEMO style, but I have to reinitialize the styles twice: the first time, the styles folder disappears from the zotero folder, even when I refresh the contents; it appears after a second reinitialization.
I have tried again by downloading it directly through the raw button (right click then save as): it works!
For the other steps: it may be of use to know that ALL previous versions of the (NEMO) style pass the chrome://zotero/content/tools/csledit.xul test (which I use extensively when programming a style), and not only this latest version.
Anyhow: thanks, I can work with what I have (NEMO style) now; I still have to check if my two other styles will work with these modifications...
The fact that copying to notepad didn't work is a bit odd, but notepad (if that's what you used) is a really bad text editor, so who knows what it did to your text... (I use notepad++ on Windows, though there are many other choices)
@fbennett -- not sure to what degree this is relevant, but the error only seems to occur in the word processor add-on. The same styles work fine the style editor, which also uses citeproc-js, of course.
Will get a fix up soon.
(the gist I put up was copy/pasted from my "styles" folder in Zotero; maybe something changed after I downloaded the style from https://forums.zotero.org/discussion/58471/firefox-error-says-my-style-isnt-valid/)