https://bugzilla.wikimedia.org/show_bug.cgi?id=71780
Bug ID: 71780
Summary: Error on video file pages
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ImageMetrics
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l