Zotero Standalone error
Report ID: 1459040622
I am getting an error while using my unpublished translator on our website.
I am using Google Chrome and Zotero Standalone with Zotero Connector (ver. 3.0.8.1).
Thank You.
I am getting an error while using my unpublished translator on our website.
I am using Google Chrome and Zotero Standalone with Zotero Connector (ver. 3.0.8.1).
Thank You.
Thank you.
In that case, this is a translator issue - there are various reasons a translator may not work in Chrome so the fact that it works in FF doesn't exclude that possibility, nor would an error necessarily (or even likely) be in the translator itself or in translate.js).
If you post the translator to a public gist at gist.github.com and provide the link here, I can take a look if there's something obvious.
This is the error message I get:
TypeError: Cannot read property 'length' of undefined at chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/zotero/translation/translate.js:1622 zotero.js:143
Thanks for all your help.
there won't be a dedicated IE connector, but this should work pretty well.
I won't advise on proprietary/secret code for free, I doubt anyone else here is interested in doing that.
Thanks for your help.
I don't have access to the debug logs so you'd have to send them, Dan would have to open them, fish out the relevant portions - it's a huge hassle _and_ the code is much easier to look at outside of the debug logs.
https://gist.github.com/bakhles/c935ead20cedba8e9f90
//span[@id=\'loggedin\'] - why not just use //span[@id="loggedin"] (same for most other xpaths)
Anything beyond that I'd ask you to take to zotero-dev, as this is getting a bit technical for a general audience:
https://groups.google.com/forum/?fromgroups=#!forum/zotero-dev
also, we really can only do so much troubleshooting of customized implementations, so you may have to figure this out by yourself or see if you can subcontract it out.
Declaring a var globally as opposed to within a scope of a function depends on the usage of the variable, this code was written long time back and that time I think I was trying to access var items from the getdoc function. After that I made some modifications but var items remained as a global var. But I think that is also a non-issue as far as code execution is concerned.
Is there a way for you to test the script for the bookmarklet against my code? It works for single page download but not for multiple downloads.
My advice would be to remove anything non-standard from the code as IE is notoriously finicky.
I'm aware that those things work in principle - else they wouldn't work in Firefox and Chrome/Safari - but especially things like where you define variable can easily make a difference for running code in a bookmarklet.
The other suggestion would be to try this with Zotero Standalone running if you haven't already, which may slightly increase the odds of it working. You could also see if removing IE compatibility helps - that lets Zotero Standalone do the translation. Given that that didnt' work for Chrome I'm not optimistic, but probably worth a try.
I am using Firefox and sometimes I have this 'translation error'. how can I fix it?