View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
05093 | Bug reports | Statistics | public | 2011-04-06 22:54 | 2011-04-11 11:30 |
Reporter | smarthbehl | Assigned To | c_schmitz | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.91RC5 | ||||
Fixed in Version | 1.91RC6 | ||||
Summary | 05093: Statistics Page error | ||||
Description | When I try to view the public statistics of the survey which is listed publically | ||||
Steps To Reproduce |
Warning: Invalid argument supplied for foreach() in C:\wamp\www\lime\statistics_user.php on line 258 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | 9907 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Firefox 3.6 | ||||
Database type & version | MySQL 5.1.36 | ||||
Server OS (if known) | VISTA Professional | ||||
Webserver software & version (if known) | WAMP 2.0 | ||||
PHP Version | 5.2.6 | ||||
Smarth, can you provide a fix, too? |
|
I was unable to reproduce this problem. |
|
Happens when no field is set to be available in public statistics (to me) |
|
I have attached the file with the fix.The error was caused when variable filters was not set because query returned no results(if there are no questions with public statistics attribute set to 1 but public statistics are available for survey).I just used isset to check if variable is set before executing the loop. |
|
Could you please provide a svn diff file? Also, when there are no fields defined it would be nice to display an error message to the user so the admin knows he should make some fields available. Ofcourse the message should be translated to the right language. |
|
<quote>when there are no fields defined</quote> ANd if there are no field defined, mayabe the link doesn't had to be appear to public at all. :) |
|
1.91RC6 released. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2011-04-06 22:54 | smarthbehl | New Issue | |
2011-04-06 23:37 | c_schmitz | Note Added: 14712 | |
2011-04-07 03:02 |
|
Note Added: 14714 | |
2011-04-07 14:38 | mdekker | Note Added: 14722 | |
2011-04-07 15:15 | smarthbehl | File Added: statistics_user.php | |
2011-04-07 15:19 | smarthbehl | Note Added: 14726 | |
2011-04-07 16:05 | mdekker | Note Added: 14728 | |
2011-04-07 18:49 | DenisChenu | Note Added: 14733 | |
2011-04-11 00:09 | c_schmitz | Status | new => resolved |
2011-04-11 00:09 | c_schmitz | Fixed in Version | => 1.91RC6 |
2011-04-11 00:09 | c_schmitz | Resolution | open => fixed |
2011-04-11 00:09 | c_schmitz | Assigned To | => c_schmitz |
2011-04-11 11:30 | c_schmitz | Note Added: 14742 | |
2011-04-11 11:30 | c_schmitz | Status | resolved => closed |