PHP error

Required parameter $sLanguage follows optional parameter $style

/home/lyceevinry/www/lime/application/helpers/common_helper.php(1756)

1744 
1745 
1746 /**
1747 * This function generates an array containing the fieldcode, and matching data in the same order as the activate script
1748 *
1749 * @param string $surveyid The Survey ID
1750 * @param mixed $style 'short' (default) or 'full' - full creates extra information like default values
1751 * @param mixed $force_refresh - Forces to really refresh the array, not just take the session copy
1752 * @param int $questionid Limit to a certain qid only (for question preview) - default is false
1753 * @param string $sQuestionLanguage The language to use
1754 * @return array
1755 */
1756 function createFieldMap($surveyid, $style='short', $force_refresh=false, $questionid=false, $sLanguage, &$aDuplicateQIDs=array()) {
1757 
1758     $sLanguage = sanitize_languagecode($sLanguage);
1759     $surveyid = sanitize_int($surveyid);
1760 
1761     //checks to see if fieldmap has already been built for this page.
1762     if (isset(Yii::app()->session['fieldmap-' . $surveyid . $sLanguage]) && !$force_refresh && $questionid == false) {
1763         return Yii::app()->session['fieldmap-' . $surveyid . $sLanguage];
1764     }
1765     $sOldLanguage=App()->language;
1766     App()->setLanguage($sLanguage);
1767     $fieldmap["id"]=array("fieldname"=>"id", 'sid'=>$surveyid, 'type'=>"id", "gid"=>"", "qid"=>"", "aid"=>"");
1768     if ($style == "full")

Stack Trace

#1
+
 /home/lyceevinry/www/lime/application/core/LSYii_Application.php(96): YiiBase::import("application.helpers.common_helper", true)
091     * @param string $helper
092     * @return void
093     */
094     public function loadHelper($helper)
095     {
096         Yii::import('application.helpers.' . $helper . '_helper', true);
097     }
098 
099     /**
100     * Loads a library
101     *
#2
+
 /home/lyceevinry/www/lime/application/core/LSYii_Controller.php(69): LSYii_Application->loadHelper("common")
64      * @param string $helper
65      * @return void
66      */
67     public function loadHelper($helper)
68     {
69         Yii::app()->loadHelper($helper);
70     }
71 
72     /**
73      * Loads a library
74      *
#3
+
 /home/lyceevinry/www/lime/application/core/LSYii_Controller.php(38): LSYii_Controller->loadHelper("common")
33         $this->_checkInstallation();
34 
35         Yii::app()->session->init();
36         $this->loadLibrary('LS.LS');
37         $this->loadHelper('globalsettings');
38         $this->loadHelper('common');
39         $this->loadHelper('expressions.em_manager');
40         $this->loadHelper('replacements');
41         $this->_init();
42     }
43 
2024-03-29 10:36:53 Apache Yii Framework/1.1.15