Page MenuHomePhabricator

datepicker on Special:Contributions is broken
Closed, ResolvedPublic

Description

When loading Special:Contributions on English Wikipedia (in Firefox) I sometimes get the JavaScript error:

TypeError: ucfrm.month is undefined

and the DateInputWidget doesn't pop-up when I click on a date input.

Event Timeline

kaldari created this task.Jun 9 2017, 12:36 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 9 2017, 12:36 AM
kaldari updated the task description. (Show Details)Jun 9 2017, 12:37 AM

Looks like it's the CIDR gadget.

Sn1per added a comment.EditedJun 9 2017, 12:53 AM

CIDR Gadget produces this error on Google Chrome:

Uncaught TypeError: Cannot read property 'value' of undefined
    at HTMLDocument.prefixContribsInit (load.php?debug=true&lang=en&modules=ext.gadget.contribsrange&only=scripts&skin=vector&version=0j6bd…:51)

I get the same at WP:de (FF 53.0.3):
01:17:54.929 Exception in module-execute in module ext.gadget.contribsrange: 1 load.php:176:15
01:17:54.930 TypeError: ucfrm.month is undefined TypeError: ucfrm.month is undefined

So how can we proceed to fix this in all wikipedias?

@Herzi.Pinki: @MusikAnimal is working on an extension to replace the contribsrange gadget. In the meantime, I think people will just have to manually fix the gadgets.