Last modified: 2014-03-24 23:51:07 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 T64024, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62024 - VisualEditor: [Regression wmf16] TypeError: this.typeInput.getSelectedItem(...) is null appearing and cannot close the Media Settings dialog for an image with left position and border format
VisualEditor: [Regression wmf16] TypeError: this.typeInput.getSelectedItem(.....
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: Normal normal
: VE-deploy-2014-03-27
Assigned To: Moriel Schottlender
:
: 62926 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-27 22:45 UTC by Rummana Yasmeen
Modified: 2014-03-24 23:51 UTC (History)
8 users (show)

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


Attachments
Screenshot (174.17 KB, image/png)
2014-02-27 22:45 UTC, Rummana Yasmeen
Details
Missing caption section (40.69 KB, image/png)
2014-02-27 22:53 UTC, Rummana Yasmeen
Details
The most recent error appeared on 18th March (98.14 KB, image/png)
2014-03-18 23:17 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2014-02-27 22:45:58 UTC
Created attachment 14709 [details]
Screenshot

Steps to reproduce:

1.Open a page with VE
2.Insert an image
3.Go to Media Settings>Advanced Settings for that image
4.Set the position to left and image type to border
5.Save the page
6.Reopen the page 
7.Select the image and open the media settings for it

Observed Result:

TypeError: this.typeInput.getSelectedItem(...) is null appears in the console and also I could not cross out the media settings page for that image and got stuck in VE.

Test Environment: http://en.wikipedia.beta.wmflabs.org/
Browser: Chrome Version 26.0.1410.65 & FF 25
OS: MAC OS X 10. 8. 5 
Page:http://en.wikipedia.beta.wmflabs.org/w/index.php?title=27thfebff&veaction=edit

See the screenshot attached
Comment 1 Rummana Yasmeen 2014-02-27 22:52:49 UTC
Also , observe in the general settings of the image with such position and format there is not caption section.
See the screenshot attached
Comment 2 Rummana Yasmeen 2014-02-27 22:53:20 UTC
Created attachment 14710 [details]
Missing caption section
Comment 3 Rummana Yasmeen 2014-02-27 23:24:58 UTC
Small modification: It has nothing to do with the image position, just select the image type as border with whatever image position it will throw that error.
Comment 4 Moriel Schottlender 2014-02-28 01:04:47 UTC
This is the bug ed noticed this morning. 

This should fix the error: https://gerrit.wikimedia.org/r/#/c/115939/
Comment 5 Gerrit Notification Bot 2014-02-28 19:46:26 UTC
Change 115939 had a related patch set uploaded by Mooeypoo:
[wip] Add type 'none' to the media edit dialog

https://gerrit.wikimedia.org/r/115939
Comment 6 Gerrit Notification Bot 2014-03-05 19:11:30 UTC
Change 115939 merged by jenkins-bot:
Deal with 'none'/'border' and default size in media edit

https://gerrit.wikimedia.org/r/115939
Comment 7 Rummana Yasmeen 2014-03-05 20:44:33 UTC
Verified the fix in Betalabs
Comment 8 Rummana Yasmeen 2014-03-07 21:44:37 UTC
Verified the fix in test2
Comment 9 Rummana Yasmeen 2014-03-14 00:12:23 UTC
Verified the fix in production:https://en.wikipedia.org/w/index.php?title=User:RYasmeen_%28WMF%29/sandbox&veaction=edit
Comment 10 Rummana Yasmeen 2014-03-18 22:17:29 UTC
I just reproduced it on betalabs again : http://en.wikipedia.beta.wmflabs.org/wiki/18thMarChrome?veaction=edit

Try the second image

See the screenshot attached.
Comment 11 Rummana Yasmeen 2014-03-18 22:33:56 UTC
Also, observe that for every copy of that image if you make it frameless , the resulting size in wikitext becomes NaNxNaN
Comment 12 Rummana Yasmeen 2014-03-18 22:38:27 UTC
Correction: everytime you make it frameless and fullsize, it results into NaNxNaN
Comment 13 Rummana Yasmeen 2014-03-18 23:17:37 UTC
Created attachment 14856 [details]
The most recent error appeared on 18th March
Comment 14 Lokal_Profil 2014-03-21 15:17:34 UTC
https://bugzilla.wikimedia.org/show_bug.cgi?id=62926 might be a duplicate of this. Although in a more general setting.

Note though that this also occurs for a thumbnail images* (which is the default setting for images inserted by VE).

*This occurs on sv.wp [1] whilst it does not seem to occur on en.wp [2]

[1] https://sv.wikipedia.org/w/index.php?title=User:Andr%C3%A9_Costa_%28WMSE%29/test2&veaction=edit
[2] https://en.wikipedia.org/w/index.php?title=User:Andr%C3%A9_Costa_%28WMSE%29/test2&veaction=edit

I would also argue for bringing the priority of this up since not being able to close the dialogue window means that any unsaved data in the article is lost. We have already had this occur during a workshop.
Comment 15 James Forrester 2014-03-21 17:49:42 UTC
*** Bug 62926 has been marked as a duplicate of this bug. ***
Comment 16 Gerrit Notification Bot 2014-03-21 18:57:34 UTC
Change 120057 had a related patch set uploaded by Mooeypoo:
Fix 'original dimensions' async call in MediaEdit dialog

https://gerrit.wikimedia.org/r/120057
Comment 17 Gerrit Notification Bot 2014-03-24 22:51:11 UTC
Change 120690 had a related patch set uploaded by Catrope:
Fix 'original dimensions' async call in MediaEdit dialog

https://gerrit.wikimedia.org/r/120690
Comment 18 Gerrit Notification Bot 2014-03-24 22:51:30 UTC
Change 120691 had a related patch set uploaded by Catrope:
Fix 'original dimensions' async call in MediaEdit dialog

https://gerrit.wikimedia.org/r/120691
Comment 19 Gerrit Notification Bot 2014-03-24 22:54:03 UTC
Change 120057 merged by jenkins-bot:
Fix 'original dimensions' async call in MediaEdit dialog

https://gerrit.wikimedia.org/r/120057
Comment 20 Rummana Yasmeen 2014-03-24 23:27:41 UTC
Looks like its fixed in Betalabs.I tried the bonsai image in this page after the fix has been merge , did not get that error whereas previously I was getting it there:
http://en.wikipedia.beta.wmflabs.org/wiki/24thMarchrome
Comment 21 Gerrit Notification Bot 2014-03-24 23:50:57 UTC
Change 120691 merged by Catrope:
Fix 'original dimensions' async call in MediaEdit dialog

https://gerrit.wikimedia.org/r/120691
Comment 22 Gerrit Notification Bot 2014-03-24 23:51:07 UTC
Change 120690 merged by Catrope:
Fix 'original dimensions' async call in MediaEdit dialog

https://gerrit.wikimedia.org/r/120690

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


Navigation
Links