https://bugzilla.wikimedia.org/show_bug.cgi?id=28198
Summary: data.query is undefined js error
Product: MediaWiki extensions
Version: any
Platform: All
URL: http://commons.prototype.wikimedia.org/wiki/Special:Up
loadWizard?debug=true
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: UploadWizard
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Once you upload your file, release rights, then get to describe. If you put a ]
in the categories input box invokes the error "data.query" is undefined
you should ( of course ) check properties before assuming success. ie: instead
of line 135 of jquery.mwCoolCats.js
var pages = data.query.allpages;
// you should do something like:
if( data && data.query && data.query.allpages ){
var pages = data.query.allpages;
} else{
// error handling goes here.
}
There are several other places in the code base where you make assignments of
decedent properties without checking for their existence, these should be
fixed.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l