View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05812Bug reportsSurvey takingpublic2012-03-11 16:32
ReporterMazi Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00a2 
Target Version2.00a2Fixed in Version2.00a2 
Summary05812: "Missing argument 5 for createFieldMap()" error when taking a survey
Description

When taking an activated survey I get a "Missing argument 5 for createFieldMap()" error on the first page.

Steps To Reproduce
  1. Import the attached survey
  2. activate it
  3. Run it
Additional Information

The whole error message reads:
Missing argument 5 for createFieldMap(), called in C:\xampp\htdocs\limesurvey_yii\application\helpers\frontend_helper.php on line 2229 and defined

C:\xampp\htdocs\limesurvey_yii\application\helpers\common_helper.php(2164)

2152 }
2153
2154
2155 /*
2156
This function generates an array containing the fieldcode, and matching data in the same order as the activate script
2157
2158
@param string $surveyid The Survey ID
2159 @param mixed $style 'short' (default) or 'full' - full creates extra information like default values
2160
@param mixed $force_refresh - Forces to really refresh the array, not just take the session copy
2161 @param int $questionid Limit to a certain qid only (for question preview) - default is false
2162
@return array
2163 */
2164 function createFieldMap($surveyid, $style='short', $force_refresh=false, $questionid=false, $sLanguage) {
2165 global $aDuplicateQIDs;
2166
2167 $sLanguage = sanitize_languagecode($sLanguage);
2168 $surveyid = sanitize_int($surveyid);
2169 $clang = new Limesurvey_lang($sLanguage); ;
2170
2171 //checks to see if fieldmap has already been built for this page.
2172 if (isset(Yii::app()->session['fieldmap-' . $surveyid . $sLanguage]) && !$force_refresh) {
2173 return Yii::app()->session['fieldmap-' . $surveyid . $sLanguage];
2174 }
2175
2176 $fieldmap["id"]=array("fieldname"=>"id", 'sid'=>$surveyid, 'type'=>"id", "gid"=>"", "qid"=>"", "aid"=>"");

TagsNo tags attached.
Attached Files
Assessments.lss (25,509 bytes)
Bug heat4
Complete LimeSurvey version number (& build)12448
I will donate to the project if issue is resolvedNo
BrowserFirefox 9
Database type & versionMySQL 5
Server OS (if known)Win 7
Webserver software & version (if known)Apache 2.2
PHP Version5.3.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

magiclko

magiclko

2012-02-18 21:55

reporter   ~17512

Fixed in r8d3f8f5

c_schmitz

c_schmitz

2012-03-11 16:32

administrator   ~17849

2.00alpha 2 Build 120212 released

Issue History

Date Modified Username Field Change
2012-02-13 10:23 Mazi New Issue
2012-02-13 10:23 Mazi Status new => assigned
2012-02-13 10:23 Mazi Assigned To => c_schmitz
2012-02-13 10:23 Mazi File Added: Assessments.lss
2012-02-18 21:55 magiclko Note Added: 17512
2012-02-18 21:55 magiclko Status assigned => resolved
2012-02-18 21:55 magiclko Fixed in Version => 2.00a2
2012-02-18 21:55 magiclko Resolution open => fixed
2012-03-11 16:32 c_schmitz Note Added: 17849
2012-03-11 16:32 c_schmitz Status resolved => closed