View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
11098Bug reportsSurvey editingpublic2016-05-03 11:22
Reporterwebmasterlpo Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.50.x 
Fixed in Version2.50.x 
Summary11098: Error on survey creation
Description

When I've added a survey, I've got this message :

Erreur interne du serveur
"data" attribute cannot be blank

The survey is created but I can't edit the setting page (same message)

TagsNo tags attached.
Attached Files
log.txt (9,487 bytes)   
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             <input type='hidden' name='oldlanguages' id='oldlanguages' value='<?php echo implode(' ',Survey::model()->findByPk($surveyid)->additionalLanguages); ?>'>
72         </div>
73     </div>
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" => "<script type="text/javascript" src="/third_party/ckeditor/ckedit...", "esrow" => array("template" => "ls_lpo_2014", "language" => "fr", "sid" => "843449", "owner_id" => "1", ...), "action" => "editsurveysettings", ...), true)
#5 	
+
 /var/www/web/framework/web/CController.php(869): CBaseController->renderFile("/var/www/web/application/views/admin/surve...", array("surveyid" => "843449", "scripts" => "<script type="text/javascript" src="/third_party/ckeditor/ckedit...", "esrow" => array("template" => "ls_lpo_2014", "language" => "fr", "sid" => "843449", "owner_id" => "1", ...), "action" => "editsurveysettings", ...), true)
#6 	
–
 /var/www/web/application/views/admin/survey/subview/accordion/_accordion_container.php(25): CController->renderPartial("/admin/survey/subview/accordion/_generaloptions_panel", array("surveyid" => "843449", "scripts" => "<script type="text/javascript" src="/third_party/ckeditor/ckedit...", "esrow" => array("template" => "ls_lpo_2014", "language" => "fr", "sid" => "843449", "owner_id" => "1", ...), "action" => "editsurveysettings", ...))

20                 </a>
21             </h4>
22         </div>
23         <div id="generaloptions" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
24             <div class="panel-body">
25                 <?php $this->renderPartial('/admin/survey/subview/accordion/_generaloptions_panel', $data); ?>
26             </div>
27         </div>
28     </div>
29 
30 

#7 	
+
 /var/www/web/framework/web/CBaseController.php(126): require("/var/www/web/application/views/admin/surve...")
#8 	
+
 /var/www/web/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/web/application/views/admin/surve...", array("data" => array("surveyid" => "843449", "scripts" => "<script type="text/javascript" src="/third_party/ckeditor/ckedit...", "esrow" => array("template" => "ls_lpo_2014", "language" => "fr", "sid" => "843449", "owner_id" => "1", ...), "action" => "editsurveysettings", ...)), true)
#9 	
+
 /var/www/web/framework/web/CController.php(869): CBaseController->renderFile("/var/www/web/application/views/admin/surve...", array("data" => array("surveyid" => "843449", "scripts" => "<script type="text/javascript" src="/third_party/ckeditor/ckedit...", "esrow" => array("template" => "ls_lpo_2014", "language" => "fr", "sid" => "843449", "owner_id" => "1", ...), "action" => "editsurveysettings", ...)), true)
#10 	
–
 /var/www/web/application/views/admin/survey/editLocalSettings_main_view.php(38): CController->renderPartial("/admin/survey/subview/accordion/_accordion_container", array("data" => array("surveyid" => "843449", "scripts" => "<script type="text/javascript" src="/third_party/ckeditor/ckedit...", "esrow" => array("template" => "ls_lpo_2014", "language" => "fr", "sid" => "843449", "owner_id" => "1", ...), "action" => "editsurveysettings", ...)))

33                             <?php $this->renderPartial('/admin/survey/subview/tab_edit_view',$data); ?>
34                         </div>
35 
36                         <!-- settings -->
37                         <div class="col-sm-12 col-md-5" id="accordion-container" style="background-color: #fff;">
38                             <?php $this->renderPartial('/admin/survey/subview/accordion/_accordion_container', array('data'=>$settings_data)); ?>
39                         </div>
40                     </div>
41 
42                     <!--
43                         This hidden button is now necessary to save the form.

#11 	
+
 /var/www/web/framework/web/CBaseController.php(126): require("/var/www/web/application/views/admin/surve...")
#12 	
+
 /var/www/web/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/web/application/views/admin/surve...", array("surveyid" => "843449", "scripts" => "<script type="text/javascript" src="/third_party/ckeditor/ckedit...", "esrow" => array("template" => "ls_lpo_2014", "language" => "fr", "sid" => "843449", "owner_id" => "1", ...), "action" => "editsurveysettings", ...), true)
#13 	
+
 /var/www/web/framework/web/CController.php(869): CBaseController->renderFile("/var/www/web/application/views/admin/surve...", array("surveyid" => "843449", "scripts" => "<script type="text/javascript" src="/third_party/ckeditor/ckedit...", "esrow" => array("template" => "ls_lpo_2014", "language" => "fr", "sid" => "843449", "owner_id" => "1", ...), "action" => "editsurveysettings", ...), true)
#14 	
+
 /var/www/web/application/core/Survey_Common_Action.php(314): CController->renderPartial("/admin/survey/editLocalSettings_main_view", array("surveyid" => "843449", "scripts" => "<script type="text/javascript" src="/third_party/ckeditor/ckedit...", "esrow" => array("template" => "ls_lpo_2014", "language" => "fr", "sid" => "843449", "owner_id" => "1", ...), "action" => "editsurveysettings", ...))
#15 	
+
 /var/www/web/application/controllers/admin/surveyadmin.php(2077): Survey_Common_Action->_renderWrappedTemplate("survey", array("editLocalSettings_main_view"), array("surveyid" => "843449", "scripts" => "<script type="text/javascript" src="/third_party/ckeditor/ckedit...", "esrow" => array("template" => "ls_lpo_2014", "language" => "fr", "sid" => "843449", "owner_id" => "1", ...), "action" => "editsurveysettings", ...))
#16 	
+
 /var/www/web/application/controllers/admin/surveyadmin.php(1080): SurveyAdmin->_renderWrappedTemplate("survey", array("editLocalSettings_main_view"), array("surveyid" => "843449", "scripts" => "<script type="text/javascript" src="/third_party/ckeditor/ckedit...", "esrow" => array("template" => "ls_lpo_2014", "language" => "fr", "sid" => "843449", "owner_id" => "1", ...), "action" => "editsurveysettings", ...))
#17 	
 unknown(0): SurveyAdmin->editlocalsettings("843449")
#18 	
+
 /var/www/web/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(SurveyAdmin, array("843449"))
#19 	
+
 /var/www/web/application/core/Survey_Common_Action.php(101): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("r" => "admin/survey/sa/editlocalsettings/surveyid/843449", "sa" => "editlocalsettings", "surveyid" => "843449", "iSurveyId" => "843449", ...))
#20 	
+
 /var/www/web/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("r" => "admin/survey/sa/editlocalsettings/surveyid/843449", "sa" => "editlocalsettings", "surveyid" => "843449"))
#21 	
+
 /var/www/web/framework/web/CController.php(286): CController->runAction(SurveyAdmin)
#22 	
+
 /var/www/web/framework/web/CController.php(265): CController->runActionWithFilters(SurveyAdmin, array())
#23 	
+
 /var/www/web/application/controllers/AdminController.php(161): CController->run("survey")
#24 	
+
 /var/www/web/framework/web/CWebApplication.php(282): AdminController->run("survey")
#25 	
+
 /var/www/web/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/survey/sa/editlocalsettings/surveyid/843449")
#26 	
+
 /var/www/web/framework/base/CApplication.php(185): CWebApplication->processRequest()
#27 	
+
 /var/www/web/index.php(211): CApplication->run()
2016-05-02 15:47:16 Apache Yii Framework/1.1.17
log.txt (9,487 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)160430
I will donate to the project if issue is resolvedNo
BrowserFirefox 47
Database type & versionMySQL
Server OS (if known)Debian 7
Webserver software & version (if known)Apache 2.2
PHP Versionphp 5.5

Relationships

child of 10944 closedc_schmitz Bad design when designing a survey on 1366x768 resolution 

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2016-05-02 15:04

administrator   ~38104

Cannot reproduce. Add a screen-shot, please.

webmasterlpo

webmasterlpo

2016-05-02 15:20

reporter   ~38106

Screenshot added (when I click on "General settings & texts" button)

ollehar

ollehar

2016-05-02 15:39

administrator   ~38113

OK, do you have access to the file system? If yes, please enable config=2 in application/config/config.php, then try again and paste the new error message here.

webmasterlpo

webmasterlpo

2016-05-02 15:50

reporter   ~38117

I've added the log (debug=1)

DenisChenu

DenisChenu

2016-05-02 16:05

developer   ~38118

Child of 10944 if available language is empty.

c_schmitz

c_schmitz

2016-05-02 16:27

administrator   ~38119

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=18851

c_schmitz

c_schmitz

2016-05-03 11:22

administrator   ~38141

Version 2.50 Build 160503 released

Related Changesets

LimeSurvey: master 1c93a9b4

2016-05-02 14:27:43

c_schmitz

Details Diff
Fixed issue 11098: Error on survey creation when languages are restricted to only one Affected Issues
11098
mod - application/extensions/yiiwheels/widgets/select2/WhSelect2.php Diff File

Issue History

Date Modified Username Field Change
2016-05-02 14:44 webmasterlpo New Issue
2016-05-02 15:04 ollehar Note Added: 38104
2016-05-02 15:10 ollehar Assigned To => ollehar
2016-05-02 15:10 ollehar Status new => feedback
2016-05-02 15:17 webmasterlpo File Added: Capture d’écran 2016-05-02 à 15.15.18.jpg
2016-05-02 15:20 webmasterlpo Note Added: 38106
2016-05-02 15:20 webmasterlpo Status feedback => assigned
2016-05-02 15:39 ollehar Note Added: 38113
2016-05-02 15:50 webmasterlpo File Added: log.txt
2016-05-02 15:50 webmasterlpo Note Added: 38117
2016-05-02 16:04 DenisChenu Relationship added child of 10944
2016-05-02 16:05 DenisChenu Note Added: 38118
2016-05-02 16:27 c_schmitz Changeset attached => LimeSurvey master 1c93a9b4
2016-05-02 16:27 c_schmitz Note Added: 38119
2016-05-02 16:27 c_schmitz Assigned To ollehar => c_schmitz
2016-05-02 16:27 c_schmitz Resolution open => fixed
2016-05-02 16:30 c_schmitz Status assigned => resolved
2016-05-02 16:30 c_schmitz Fixed in Version => 2.5
2016-05-03 11:22 c_schmitz Note Added: 38141
2016-05-03 11:22 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing