View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
05046 | Bug reports | Other | public | 2011-03-21 16:03 | 2011-04-11 11:30 |
Reporter | Assigned To | c_schmitz | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.90 | ||||
Fixed in Version | 1.91RC6 | ||||
Summary | 05046: Importing responses from a VV survey file causes problem with array_combine() | ||||
Description | When importing a vvsurvey file from an earlier version with many empty fields I got: array_combine() [function.array-combine]: Both parameters should have at least 1 element | ||||
Additional Information | Reason is a change on PHP (cf. http://bugs.php.net/bug.php?id=34857), which does no more allow for empty arrays to be combined. After replacing line 242 in admin/vvimport.php by the following line (cf. the 1st comment in http://php.net/manual/en/function.array-combine.php), the problem disappeared: $fielddata=($fieldnames===array() && $fieldvalues===array() ? array() : array_combine($fieldnames, $fieldvalues)); | ||||
Tags | No tags attached. | ||||
Bug heat | 2 | ||||
Complete LimeSurvey version number (& build) | 9642 | ||||
I will donate to the project if issue is resolved | |||||
Browser | |||||
Database type & version | |||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-03-21 16:03 |
|
New Issue | |
2011-03-29 11:27 | c_schmitz | Project | @2@ => Bug reports |
2011-03-29 11:28 | c_schmitz | Note Added: 14593 | |
2011-03-29 11:28 | c_schmitz | Status | new => resolved |
2011-03-29 11:28 | c_schmitz | Fixed in Version | => 1.91RC6 |
2011-03-29 11:28 | c_schmitz | Resolution | open => fixed |
2011-03-29 11:28 | c_schmitz | Assigned To | => c_schmitz |
2011-04-11 11:30 | c_schmitz | Note Added: 14760 | |
2011-04-11 11:30 | c_schmitz | Status | resolved => closed |
2021-03-08 20:08 | c_schmitz | Category | Import/Export => (No Category) |