View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
05046Bug reportsOtherpublic2011-04-11 11:30
Reporteruser12892Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90 
Fixed in Version1.91RC6 
Summary05046: 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));

TagsNo tags attached.
Bug heat2
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

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-03-29 11:28

administrator   ~14593

Thank you!

c_schmitz

c_schmitz

2011-04-11 11:30

administrator   ~14760

1.91RC6 released.

Issue History

Date Modified Username Field Change
2011-03-21 16:03 user12892 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)