Usuario discusión:KyleH

De WikiDex
Último comentario: 10 nov 2009 por KyleH
Ir a la navegaciónIr a la búsqueda

Hi KyleH. I'm surprised about that, because I can't see any JavaScript errors. Maybe those happen to anon users? Well, thanks for the notice. If something needs to be rewritten using jQuery, I'd prefer to do it myself, but thanks anyway. Probably it would help if Meitar points out where the errors come from, and then we could decide what to do (disable temporarily the feature or fix it). Tomorrow I will check for that. Thanks. --Ciencia Al Poder ¿Algo que decir? 20:45 6 nov 2009 (UTC)Responder[responder]

Damnit! The problem was a "TableManager" extension I did that isn't rewritten to not depend on YUI. It's loaded in a separate JS file only when needed (MediaWiki:Common.js/Clases/TableManager.js). It was supposed to be a check if YUI exists before loading it, but meh, it was gone somewhere... I added the check now so JS errors would decrease subtantially. YAHOO is only referencd there, and in the MediaWiki:Common.js to do dome fixes to the LinkSuggest and adding LinkSuggest on Special:Upload, but there was already checks for YUI (Wikia still uses YUI for LinkSuggest). When there was the transition to jQuery I decided to write a simple and independent JS Framework (aka MediaWiki:Common.js/Clases/UtilityTools.js, transcluded in Common.js) to not depend on the current framework loaded on Wikia. I'll do additional checks to see if I missed anything, but the problem should be solved now.
Thanks for the advices and your help, and sorry for those errors. --Ciencia Al Poder ¿Algo que decir? 10:01 7 nov 2009 (UTC)Responder[responder]
It should be now fixed. TableManager only loads now when YUI is loaded. It's not a basic feature, and doesn't work in IE so it should be fine for now, until I get time to rewrite it ;). I found other JS errors, but seems Wikia's fault as they happen on other wikis too:
  • Accessing the url to create an account. Error: getElementById returned null.
  • Clicking a sub-item of the monaco sidebar: On IE6 gives a "not implemented" error. It probably affects only IE users, not sure if only IE6 or also next versions.
  • Random "An exception was thrown" (IE6)/"Giving up while waiting for config (Athena)" (Firefox) (the error messages are not exact), probably caused by ads.
  • Random "Permission denied when accessing Location.ToString() from pubads.g.doubleclick.net" (firefox). probably caused by ads.
--Ciencia Al Poder ¿Algo que decir? 14:43 7 nov 2009 (UTC)Responder[responder]
Thanks! The number of errors looks much more reasonable now. You're right that pretty much the rest of the errors left are either the skin or the ads, but none of them are generating errors in any significant volume (except the "Permission denied when accessing Location.ToString()", which doesn't block any other javascript [and is pretty tough for us to fix]). I'll let you know if the errors come back for some reason, but now es.pokemon has far fewer errors than most other wikis with custom javascript. Thanks again. :) --KyleH<staff /> (talk) 00:13 10 nov 2009 (UTC)Responder[responder]