Last modified: 2014-10-17 09:05:28 UTC
TypeError: $file.attr(...) is undefined data.fileType = $file.attr( 'alt' ).split( '.' ).pop(); The source of the issue is this line: $file = $( '#file' ).find( 'img' ); Which assumes the presence of an image and passes the empty jQuery object further along. I think this might be a race condition to a degree, as the image might be part of the DOM returned by the server, but TMH hijacks it as soon as it can.
Change 165441 had a related patch set uploaded by Gilles: Don't try to log metrics if it's not an image https://gerrit.wikimedia.org/r/165441
Change 165441 merged by jenkins-bot: Don't try to log metrics if it's not an image https://gerrit.wikimedia.org/r/165441
Hello, pywikibot