Topic on Talk:Content translation

Summary last edited by KartikMistry 15:50, 13 September 2015 8 years ago

Issue reported at Phab:T112403. See ticket for details.

Oscar . (talkcontribs)

In the past few weeks the app has been too buggy to even consider a translation (From en-es&es-en). I've been trying to get in touch with some devs in irc (#mediawiki-i18n) without any success, another user told me to go to phabricator but didnt tell me where should I go and phab seem to big for me.

Problems *Apertium doesn't work and when it works (on rare occasions) the auto-save feature is disable, the thing to do from there is refresh the page, only to lose the advanced work (by hand).

I like to note that before this, I've been using the app for at least three months without any serious issue.

Amire80 (talkcontribs)

Hi,

I'm sorry to hear that.

I just tried using it and it works for me with machine translation from English to Spanish, and the saving works, too.

Which article did you try to translate? Which browser and operating system did you use?

Do you see any errors if you open the JavaScript console (Ctrl-Shift-K in Firefox, Ctrl-Shift-J in Chrome)?

Oscar . (talkcontribs)

Hi @Amire80

Thanks for the response, I'm been working in "Colombia–Venezuela relations" and "Market risk" (English to Spanish) and I'm using Chrome (version 45.0.2454.85 m) with W10.

This is the message I got with the JS console (about ten minutes ago):

Uncaught TypeError: Cannot read property 'innerHTML' of null

https://es.wikipedia.org/static/favicon/wikipedia.ico Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR

2https://cxserver.wikimedia.org/v1/mt/en/es/Apertium Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR

load.php?debug=false&lang=es&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=Kk41yJbu:140 OPTIONS https://cxserver.wikimedia.org/v1/mt/en/es/Apertium net::ERR_SPDY_PROTOCOL_ERROR

Thoughts?

Amire80 (talkcontribs)

OK, I suspect that the "innerHTML" part is the thing that causes the bug. It probably appears in one of the gadgets that you use or in one of the JS scripts under your user page. Quite likely it's Usuario:Nixón/botones.js, which is called from :w:es:Usuario:Oscar_./vector.js. Can you please try removing the line "importScript('Usuario:Nixón/botones.js');" from vector.js and seeing if it fixes your problem? If it does, then :w:es:Usuario:Nixón/botones.js will have to be fixed, and I'll be happy to help fixing it.

If removing that line doesn't help, tell me and I'll help you find where this is.

Oscar . (talkcontribs)

I removed the line, and then everything from my /vector.js /commons.js and just all the gadgets of my preferences (just to be sure).

And nothing happen, the same error seems to be happening (or a different one?)  

/static/favicon/wikipedia.ico:1 GET https://es.wikipedia.org/static/favicon/wikipedia.ico net::ERR_SPDY_PROTOCOL_ERROR

 

load.php?debug=false&lang=es&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=Kk41yJbu:140 OPTIONS https://cxserver.wikimedia.org/v1/mt/en/es/Apertium net::ERR_SPDY_PROTOCOL_ERROR

 

OPTIONS https://cxserver.wikimedia.org/v1/mt/en/es/Apertium net::ERR_SPDY_PROTOCOL_ERROR load.php?debug=false&lang=es&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=Kk41yJbu:140 OPTIONS https://cxserver.wikimedia.org/v1/mt/en/es/Apertium net::ERR_SPDY_PROTOCOL_ERROR

   
MarcoAurelio (talkcontribs)

Oscar, can you please disable all your gadgets from Special:Preferences, and all your user scripts from your subpages, log-out, clear all cookies, etc., relogin and tell us if the error still happens? Regards.

Oscar . (talkcontribs)

Done it, tried a couple of times, still the same error is happening (https://cxserver.wikimedia.org/v1/mt/en/es/Apertium Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR), at this point I think is more a problem of Apertium.

Any thoughts?

MarcoAurelio (talkcontribs)

I've filled phab:T112403. I don't know what else to suggest you. Best regards.

Oscar . (talkcontribs)
Nikerabbit (talkcontribs)

There is way to debug that SPDY error by going chrome://net-internals/#spdy in Chrome. Unfortunately I do not have more details what to do on that page.

Since it also happens for https://es.wikipedia.org/static/favicon/wikipedia.ico and nobody else has reported the same issue, it might not have anything to do with Apertium but rather your connection.

Oscar . (talkcontribs)

Well, I think I found it.

It was the webshield on Avast Antivirus.

Thanks to @Nikerabbit for point out to chrome://net-internals/#spdy 

I googled that and found out this on reddit. Basically, is some kind of error with Avast, I just turned the webshield on/off. Restart the system, and now Apertium (and the auto-save) seems to be working.

KartikMistry (talkcontribs)

Thanks all for helping out!