View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
08088Bug reportsStatisticspublic2013-10-09 18:05
Reporterunluigui Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary08088: Error: JSON undefined on IE while click on change chart type button on statistics
Description

Updated from version 1.92+ Build 120526 to version 2.00+ Build 130802.

Tested statistics graph changes on different OSes and Browsers, and get this error only on IE with Windows 7.

User agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)

Date: Wed, 7 Aug 2013 18:04:26 UTC
Message: 'JSON' undefined
Line: 399
Char: 9
Code: 0
URI: http://localhost/scripts/admin/statistics.js

After clicking on the option to change the chart type on IE the loading bar appears and the error "shows", then the chart is not loaded and the loading bar gets on loop showing the loading animation.

This error only shows on IE 9.0 and previous versions (JS update or settings change for IE required?).

Additional Information

Tested on Chrome and Firefox, no problems found there.
The server where LS is installed is on an Intranet webserver only.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)130802
I will donate to the project if issue is resolvedNo
BrowserIE 7-9
Database type & versionMySQL Version : 5.5.24
Server OS (if known)Apache Version : 2.2.22
Webserver software & version (if known)WampServer Version 2.2
PHP VersionPHP Version : 5.4.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

mdekker

mdekker

2013-08-12 11:13

reporter   ~25956

Last edited: 2013-08-12 11:16

Dev note: http://stackoverflow.com/questions/3326893/is-json-stringify-supported-by-ie-8
and https://github.com/douglascrockford/JSON-js

maybe include json2.js using aconditional statement for older browsers. Should not be needed from ie8 and up but some more research might be needed.

Also browser should be running in standards mode: http://caniuse.com/#search=json

c_schmitz

c_schmitz

2013-08-24 22:59

administrator   ~26076

I cannot believe that this happens in IE9.

c_schmitz

c_schmitz

2013-10-07 13:04

administrator   ~26576

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13153

c_schmitz

c_schmitz

2013-10-09 11:22

administrator   ~26663

2.00+ Build 121009 released

c_schmitz

c_schmitz

2013-10-09 18:05

administrator   ~26679

Fix committed to 2.05 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13211

Related Changesets

LimeSurvey: master 3fe6d299

2013-10-07 11:04:00

c_schmitz

Details Diff
Fixed issue 08088: Error: JSON undefined on IE while click on change chart type button on statistics
Fixed issue: Error when viewing participants in CPDB
Affected Issues
08088
mod - application/controllers/admin/statistics.php Diff File
mod - application/models/Participants.php Diff File
add - scripts/admin/json-js/README Diff File
add - scripts/admin/json-js/json2.js Diff File
add - scripts/admin/json-js/json2.min.js Diff File

LimeSurvey: 2.05 a4cfc31c

2013-10-09 16:00:44

c_schmitz

Details Diff
Fixed issue 08088: Error: JSON undefined on IE while click on change chart type button on statistics
Fixed issue: Error when viewing participants in CPDB
Affected Issues
08088
mod - application/controllers/admin/statistics.php Diff File
mod - application/models/Participant.php Diff File
add - scripts/admin/json-js/README Diff File
add - scripts/admin/json-js/json2.js Diff File
add - scripts/admin/json-js/json2.min.js Diff File

Issue History

Date Modified Username Field Change
2013-08-07 21:23 unluigui New Issue
2013-08-12 11:13 mdekker Note Added: 25956
2013-08-12 11:15 mdekker Note Edited: 25956
2013-08-12 11:16 mdekker Note Edited: 25956
2013-08-24 22:59 c_schmitz Note Added: 26076
2013-10-07 13:02 c_schmitz Status new => resolved
2013-10-07 13:02 c_schmitz Fixed in Version => 2.00+
2013-10-07 13:02 c_schmitz Resolution open => fixed
2013-10-07 13:02 c_schmitz Assigned To => c_schmitz
2013-10-07 13:04 c_schmitz Changeset attached => LimeSurvey master 3fe6d299
2013-10-07 13:04 c_schmitz Note Added: 26576
2013-10-09 11:22 c_schmitz Note Added: 26663
2013-10-09 11:22 c_schmitz Status resolved => closed
2013-10-09 18:05 c_schmitz Changeset attached => LimeSurvey 2.05 a4cfc31c
2013-10-09 18:05 c_schmitz Note Added: 26679