Last modified: 2014-07-17 20:04:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70104, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68104 - MultimediaViewer stay on black screen after close
MultimediaViewer stay on black screen after close
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
MultimediaViewer (Other open bugs)
REL1_23-branch
All All
: Unprioritized blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-16 14:13 UTC by Daniel Schroeter
Modified: 2014-07-17 20:04 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Uncaught TypeError: Cannot read property 'hide' of undefined (24.72 KB, image/jpeg)
2014-07-16 14:13 UTC, Daniel Schroeter
Details

Description Daniel Schroeter 2014-07-16 14:13:56 UTC
Created attachment 15951 [details]
Uncaught TypeError: Cannot read property 'hide' of undefined

My MultimediaViewer will stay on black screen and I receive the following error in the console if I press the close "x" on the top right. (Tested in IE v9 and latest Chrome)
Uncaught TypeError: Cannot read property 'hide' of undefined 

The MediaWiki is in version 1.23.1 and MultimediaViewer is in version 0.3.0.

I don't think it is a incompatibility of the extensions because MediaWiki use the same.

Let me know if I can provide more details.
Comment 1 Tisza Gergő 2014-07-16 17:26:46 UTC
Could you reproduce this on a page with a ?debug=1 URL parameter added? Javascript error locations are pretty useless in non-debug mode.
Comment 2 Albert Chu 2014-07-17 02:31:13 UTC
Uncaught TypeError: Cannot read property 'hide' of undefined load.php?debug=false&lang=en&modules=jquery.color%2CcolorUtil%2Cfullscreen%2Ctipsy%7Cmediawiki.Uri%…:10
$.fn.tipsy load.php?debug=false&lang=en&modules=jquery.color%2CcolorUtil%2Cfullscreen%2Ctipsy%7Cmediawiki.Uri%…:10
MPP.unattach load.php?debug=false&lang=en&modules=jquery.color%2CcolorUtil%2Cfullscreen%2Ctipsy%7Cmediawiki.Uri%…:91
LIP.unattach load.php?debug=false&lang=en&modules=jquery.color%2CcolorUtil%2Cfullscreen%2Ctipsy%7Cmediawiki.Uri%…:35
(anonymous function) load.php?debug=false&lang=en&modules=jquery.color%2CcolorUtil%2Cfullscreen%2Ctipsy%7Cmediawiki.Uri%…:35
jQuery.event.dispatch load.php?debug=false&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Cl…:45
elemData.handle.eventHandle load.php?debug=false&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Cl…:38

If I F5-Refresh after the blank screen (when the browser address bar still refers to the http://<wiki>#mediaviewer/File:<image> URL), the light box reloads the image, and then does subsequently work for any subsequent MediaViewer activity on that page within that browser tab.

Opening the same page in a new browser tab exhibits the same issue until an F5-Refresh.

Opening other pages in that same existing browser tab (that had done at least one refresh on a light box URL) do not exhibit the bug (as in, they all escape out of light box mode back to the main page as expected).
Comment 3 Daniel Schroeter 2014-07-17 09:43:46 UTC
I'm not sure how I can activate the debug mode.

Maybe you can check it by yourself? Here is the URL http://knowledgebase.cc/new/index.php/How_to_pick_a_Defcon_CL_lock
just click on an image and close it with the x.
Comment 4 Albert Chu 2014-07-17 16:08:35 UTC
A couple of quirky things that I noticed this morning:

* The behavior I mentioned yesterday doesn't exhibit with th3gov's link 
* This morning, when I tried out various light box pages on our internal wiki (that had the same issue yesterday), it was working without any issues (no need to refresh pages). Something cached or stale in my browser yesterday?

Odd...
Comment 5 Tisza Gergő 2014-07-17 19:22:01 UTC
Thanks! You can activate debug mode like this:

http://knowledgebase.cc/new/index.php/How_to_pick_a_Defcon_CL_lock?debug=1

The stack trace is

Uncaught TypeError: Cannot read property 'hide' of undefined jquery.tipsy.js:144
$.fn.tipsy jquery.tipsy.js:144
MPP.unattach mmv.ui.metadataPanel.js:70
LIP.unattach mmv.lightboxinterface.js:201
(anonymous function) mmv.lightboxinterface.js:250
jQuery.event.dispatch load.php?debug=true&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20140716T09…:3058
elemData.handle.eventHandle load.php?debug=true&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20140716T09…:2676

Mark already has a patch pending for this, I think.
Comment 6 Tisza Gergő 2014-07-17 19:27:18 UTC
https://gerrit.wikimedia.org/r/#/c/146294/ probably fixes this. Needs backport.
Comment 7 Daniel Schroeter 2014-07-17 20:04:40 UTC
I replaced my MultimediaViewer extension directory with the latest development version and great it is working fine now :-)

Thanks for your fast assistance!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links