Last modified: 2014-05-09 19:51:45 UTC
Hovercards throws a JavaScript error when hovering on a link using Special:MyLanguage Steps to reproduce: *Go to <https://commons.wikimedia.org/wiki/Commons:Upload_tools> *Hover on any link (eg Upload Wizard) *Error is thrown in notif: Error: https://bits.wikimedia.org/commons.wikimedia.org/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2CloadingSpinner%2CmwEmbedUtil%7Cmw.MwEmbedSupport&only=scripts&skin=vector&version=20140417T030828Z at line 0: Script error. This may be the case with all Special: pages (as on the same page, Special:Preferences fails too), but as a user I expect Hovercards to work on MyLanguage pages, since they are topical pages.
Thanks for pointing this out Jean! The error occurs when the extension tries to obtain a timestamp for the special page (which does not exist). > Uncaught TypeError: Cannot read property '0' of undefined > at line 69 of ext.popups.core.js
Change 127889 had a related patch set uploaded by Prtksxna: Check if revisions exist before getting a timestamp https://gerrit.wikimedia.org/r/127889
Max, does TextExtracts return anything for Special pages anyway?
Change 127889 abandoned by Prtksxna: Check if revisions exist before getting a timestamp Reason: Rebase hell. https://gerrit.wikimedia.org/r/127889
Change 130058 had a related patch set uploaded by Prtksxna: Don't show popups if the page does not have the `.extract` property https://gerrit.wikimedia.org/r/130058
Change 130058 abandoned by Prtksxna: Don't show popups if the page does not have the `.extract` property Reason: Part of the restructure https://gerrit.wikimedia.org/r/130058