Last modified: 2013-02-26 01:24:02 UTC
This bug doesn't seems to happen often, but I've noticed the following error after trying to submit a new reply to a thread: Uncaught TypeError: Cannot read property 'query' of null I was using Google Chromium 12.0.742.112 (90304) Ubuntu 11.04.
This bug has not been touched in at least six months. With this in mind, I've been asked by the bugmeister to bump this bug's priority down from "High". Concerns can be addressed to mah@everybody.org.
Can you still reproduce this bug? If so, can you find the line it occurs on?
Not really. But since there are only 5 occurrences of ".query" at http://pt.wikibooks.org/w/extensions/LiquidThreads/lqt.js and all of them occur in a code of the form ----------------------------------------- $j.get( mw.util.wikiScript( 'api' ), ..., function(data) { ... data.query.threads ... }, 'json' ); ----------------------------------------- I think this would probably not happen if the 'mediawiki.api' module was used to handle the API requests. Indeed, that module has checks for 'data' being undefined and API errors: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=resources/mediawiki.api/mediawiki.api.js;h=cf7443f3b3bfa35e6c52a7043e76a2f17c52adf8;hb=HEAD#l160 This would probably help with bug 28132 as well.
(In reply to comment #3) > I think this would probably not happen if the 'mediawiki.api' module was used > to handle the API requests. Indeed, that module has checks for 'data' being > undefined and API errors: > https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob; > f=resources/mediawiki.api/mediawiki.api.js; > h=cf7443f3b3bfa35e6c52a7043e76a2f17c52adf8;hb=HEAD#l160 > > This would probably help with bug 28132 as well. Doing this as part of Gerrit change #50857