CException

"data" attribute cannot be blank

/srv/www/htdocs/limesurvey/application/extensions/bootstrap/widgets/TbSelect2.php(41)

29   public $asDropDownList = true;
30   /**
31    * @var
32    */
33   public $options;
34 
35   /**
36    * Initializes the widget.
37    */
38   public function init()
39   {
40     if(empty($this->data) && $this->asDropDownList === true)
41       throw new CException(Yii::t('zii', '"data" attribute cannot be blank'));
42   }
43 
44   /**
45    * Runs the widget.
46    */
47   public function run()
48   {
49     list($name, $id) = $this->resolveNameID();
50 
51     if ($this->hasModel())
52     {
53       if($this->form)

Stack Trace

#2
+
 /srv/www/htdocs/limesurvey/application/extensions/SettingsWidget/SettingsWidget.php(397): CBaseController->widget("ext.bootstrap.widgets.TbSelect2", array("data" => array(), "name" => "additional_languages", "value" => array(), "options" => array("minimumResultsForSearch" => 1000, "dropdownAutoWidth" => true, "width" => "resolve"), ...), true)
392             $properties['events']=isset($metaData['events']) ? $metaData['events'] : array();
393             // allow to submit the form when this element changes
394             if (isset($metaData['submitonchange']) && $metaData['submitonchange']) {
395                 $properties['events']['change']='js: function(e) { this.form.submit();}';
396             }
397             return App()->getController()->widget('ext.bootstrap.widgets.TbSelect2', $properties, true);
398         }
399 
400         public function renderString($name, array $metaData, $form = null)
401         {
402             $value = isset($metaData['current']) ? $metaData['current'] : '';
#3
+
 /srv/www/htdocs/limesurvey/application/extensions/SettingsWidget/SettingsWidget.php(152): SettingsWidget->renderSelect("additional_languages", array("class" => array(), "htmlOptions" => array("multiple" => true), "type" => "select", "labelOptions" => array("class" => "default control-label col-sm-5"), ...), null)
147             // The labels
148             $content  = $this->renderLabel($name, $metaData);
149             // The control
150             $content .= CHtml::openTag('div',$metaData['controlOptions']);
151             // The input
152             $content .= $this->$function($name, $metaData, $form);
153             // The help
154             $content .= $this->renderHelp($name, $metaData);
155             $content .= CHtml::closeTag('div');
156 
157             $result=CHtml::tag($wrapper,array('class'=>"setting control-group setting-{$metaData['type']}", 'data-name' => $name),$content);
#4
+
 /srv/www/htdocs/limesurvey/application/extensions/SettingsWidget/SettingsWidget.php(170): SettingsWidget->renderSetting("additional_languages", array("type" => "select", "label" => "Autres langues ", "htmlOptions" => array("multiple" => true), "options" => array(), ...), null, false, ...)
165         protected function renderSettings()
166         {
167             echo CHtml::openTag('ul',array('class'=>"settings-list"));
168             foreach($this->settings as $name => $metaData)
169             {
170                 $this->renderSetting($name, $metaData, null, false,'li');
171             }
172             echo CHtml::closeTag('ul');
173         }
174 
175 
2015-06-17 13:18:03 Apache/2.4.6 (Linux/SUSE) Yii Framework/1.1.15