Last modified: 2014-01-17 03:55: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 T59425, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57425 - LQT: Uncaught TypeError: Cannot read property 'id' of undefined
LQT: Uncaught TypeError: Cannot read property 'id' of undefined
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
LiquidThreads (Other open bugs)
master
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
https://pt.wikibooks.org/wiki/Thread:...
: javascript
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-22 15:53 UTC by Helder
Modified: 2014-01-17 03:55 UTC (History)
4 users (show)

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


Attachments
Screenshot of the console (JavaScript paused on uncaught exception) (104.06 KB, image/png)
2013-11-22 15:55 UTC, Helder
Details
$newThread is empty! (106.84 KB, image/png)
2013-11-22 15:58 UTC, Helder
Details

Description Helder 2013-11-22 15:53:14 UTC
Intention:
I wanted to leave a comment in a thread

Steps to Reproduce:
1. Go to a LQT page (see the URL)
2. Click in the last reply button and wait until the edit form is loaded
3. Click in the reply button of the "parent" comment
4. Write something in the input box and save.


Actual Results:  
The console showed the following message:
Uncaught TypeError: Cannot read property 'id' of undefined

Expected Results:  
No error message

Reproducible: Sometimes

I tried to reproduce the bug on
https://test.wikipedia.org/wiki/Thread:LQT/Test_(2)?debug=1
but it didn't happen.
Comment 1 Helder 2013-11-22 15:55:04 UTC
Created attachment 13881 [details]
Screenshot of the console (JavaScript paused on uncaught exception)
Comment 2 Helder 2013-11-22 15:58:25 UTC
Created attachment 13882 [details]
$newThread is empty!

The code which causes the bug is loaded from
https://bits.wikimedia.org/static-1.23wmf4/extensions/LiquidThreads/lqt.js

and the line in the screenshot above is this:
https://github.com/wikimedia/mediawiki-extensions-LiquidThreads/blob/master/lqt.js#L916
Comment 3 Andre Klapper 2013-11-22 15:59:25 UTC
-> MW ext/LQT
Comment 4 Helder 2013-11-22 16:02:15 UTC
(In reply to comment #0)
> Reproducible: Sometimes
> 
> I tried to reproduce the bug on
> https://test.wikipedia.org/wiki/Thread:LQT/Test_(2)?debug=1
> but it didn't happen.

On the other hand, the four times I tried to reproduce this on that page from Portuguese Wikibooks, the error happend as described (I reloaded the page, and added debug=1 and uselang=en from one try to another).

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


Navigation
Links