Last modified: 2014-07-17 20:04:40 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.
Could you reproduce this on a page with a ?debug=1 URL parameter added? Javascript error locations are pretty useless in non-debug mode.
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).
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.
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...
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.
https://gerrit.wikimedia.org/r/#/c/146294/ probably fixes this. Needs backport.
I replaced my MultimediaViewer extension directory with the latest development version and great it is working fine now :-) Thanks for your fast assistance!