Last modified: 2014-02-11 08:52:05 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 T63137, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61137 - SyntaxError: JSON.parse: unexpected end of data
SyntaxError: JSON.parse: unexpected end of data
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
master
Macintosh Mac OS X 10.9
: High major (vote)
: ---
Assigned To: Amir E. Aharoni
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-10 12:27 UTC by Gilles Dubuc
Modified: 2014-02-11 08:52 UTC (History)
9 users (show)

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


Attachments

Description Gilles Dubuc 2014-02-10 12:27:20 UTC
Experienced on http://en.wikipedia.beta.wmflabs.org/wiki/Lightbox_demo?debug=1

Firefox 26.0

Coming from the ULSPreferences init function. The value it tries to parse as JSON is "", which makes JSON.parse() fail. Fix is probably as simple as adding a try/catch.
Comment 1 Gerrit Notification Bot 2014-02-10 13:26:17 UTC
Change 112444 had a related patch set uploaded by Amire80:
Prevent JSON parsing errors

https://gerrit.wikimedia.org/r/112444
Comment 2 Amir E. Aharoni 2014-02-10 13:27:06 UTC
Thanks a lot for the report, Gilles.
Comment 3 Gerrit Notification Bot 2014-02-11 08:27:25 UTC
Change 112444 merged by jenkins-bot:
Prevent JSON parsing errors

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

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


Navigation
Links