CException
"data" attribute cannot be blank
/var/www/web/application/extensions/yiiwheels/widgets/select2/WhSelect2.php(47)
35
36 /**
37 * @var array the plugin options
38 */
39 public $pluginOptions;
40
41 /**
42 * Initializes the widget.
43 */
44 public function init()
45 {
46 if (empty($this->data) && $this->asDropDownList === true) {
47 throw new CException(Yii::t('zii', '"data" attribute cannot be blank'));
48 }
49
50 $this->attachBehavior('ywplugin', array('class' => 'yiiwheels.behaviors.WhPlugin'));
51 }
52
53 /**
54 * Runs the widget.
55 */
56 public function run()
57 {
58 $this->renderField();
59 $this->registerClientScript();
Stack Trace
#0
+
/var/www/web/framework/web/CBaseController.php(147): WhSelect2->init()
#1
+
/var/www/web/framework/web/CBaseController.php(180): CBaseController->createWidget("yiiwheels.widgets.select2.WhSelect2", array("asDropDownList" => true, "htmlOptions" => array("multiple" => "multiple", "style" => "width: 100%"), "data" => array(), "value" => array(), ...))
#2
–
/var/www/web/application/views/admin/survey/subview/accordion/_generaloptions_panel.php(69): CBaseController->widget("yiiwheels.widgets.select2.WhSelect2", array("asDropDownList" => true, "htmlOptions" => array("multiple" => "multiple", "style" => "width: 100%"), "data" => array(), "value" => array(), ...))
64 'data' => $aAllLanguages,
65 'value' => Survey::model()->findByPk($surveyid)->additionalLanguages,
66 'name' => 'additional_languages',
67 'pluginOptions' => array(
68 'placeholder' => gt('Select additional languages','unescaped'),
69 )));
70 ?>
71 findByPk($surveyid)->additionalLanguages); ?>'>
72
73
74
#3
+
/var/www/web/framework/web/CBaseController.php(126): require("/var/www/web/application/views/admin/surve...")
#4
+
/var/www/web/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/web/application/views/admin/surve...", array("surveyid" => "843449", "scripts" => "