Last modified: 2014-10-24 17:29:34 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 T74395, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72395 - Cannot open VE for a specific page and the error "TypeError: lastSection is undefined" appears in the console
Cannot open VE for a specific page and the error "TypeError: lastSection is u...
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Jon
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-22 22:14 UTC by Rummana Yasmeen
Modified: 2014-10-24 17:29 UTC (History)
6 users (show)

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


Attachments
Screenshot (164.04 KB, image/png)
2014-10-22 22:14 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2014-10-22 22:14:49 UTC
Created attachment 16856 [details]
Screenshot

Steps to reproduce:

1.Go to this page site:http://en.m.wikipedia.beta.wmflabs.org/wiki/22ndoctoberff


Observed Result:
As soon as you open the page, the following error appears in Firefox and there is a lock icon appearing on Edit icon so cannot open VE for it

TypeError: lastSection is undefined


Also , in Chrome the error message is:

TypeError: Cannot read property 'children' of undefined

See the screenshot attached
Comment 1 Bingle 2014-10-22 22:15:10 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/3ycdjooK
Comment 2 Jon 2014-10-22 22:53:13 UTC
Seems to be a bug in the section.js code
Offending line is assignToParent( lastSection.children, section );
Would be good to add a new test case to Section.js
Comment 3 Gerrit Notification Bot 2014-10-23 19:55:39 UTC
Change 168398 had a related patch set uploaded by Bmansurov:
Fix transforming sections

https://gerrit.wikimedia.org/r/168398
Comment 4 Bahodir Mansurov 2014-10-23 20:13:27 UTC
The error has been fixed. However, when I hit the edit button, the editor doesn't just shows part of the page contents. Also, collapsing is not working as intended. I think it might have to do with the way the header elements are used. Maybe needs a separate ticket.
Comment 5 Bahodir Mansurov 2014-10-23 20:14:29 UTC
Typo in "the editor doesn't just shows" above. It should read "the editor just shows"
Comment 6 Gerrit Notification Bot 2014-10-24 17:28:47 UTC
Change 168398 merged by jenkins-bot:
Fix transforming sections

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

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


Navigation
Links