Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
14820Bug reportsSurvey editingpublic2020-02-12 18:12
Reportertammo Assigned Tocdorin  
PriorityurgentSeverityblock 
Status closedResolutionfixed 
Product Version4.0.0dev 
Target Version4.0.0-betaFixed in Version4.0.0dev 
Summary14820: Survey creation not possible
Description

As erronously described in another bug report survey creation seems to be impossible, both on XAMPP on Widows 10, as well as on Centos.

When trying to create survey, date format cannot be chosen (drop down fill not fold out) and after survey creation error 500 with text that Survey languages are not found.

In the end a survey is created, but with empty title and no way of adding groups.

Steps To Reproduce

Create survey, give name. Try to set date format, fail. Save. Error 500

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)4.0.0-alpha
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL
Server OS (if known)Windows 10, Centos
Webserver software & version (if known)Apache
PHP Version7.2, 7.1

Relationships

related to 14755 closedmarkusfluer Experimental editor is empty 

Activities

tammo

tammo

2019-04-28 10:30

developer   ~51612

More description is related issue.

DenisChenu

DenisChenu

2019-04-28 15:33

developer   ~51615

Check on your system : reproduce, see the console.log (i reset addet too).

I'm on ngynx, you are on apache if i don't make error. Can you set url to get and not path to see if it update something ?

tammo

tammo

2019-04-28 16:10

developer   ~51617

Thank you for looking into it, very much appreciated. But I really do not understand what you are asking me to do. See attached image for what I see in developer tools.

error500.png (72,484 bytes)   
error500.png (72,484 bytes)   
DenisChenu

DenisChenu

2019-04-28 16:14

developer   ~51618

I search why i don't have this issue on my server then an idea can be:

I have this in application/config/config.php

        'urlManager' => array(
            'urlFormat' => 'get',
            'rules' => array(
                // You can add your own rules here
            ),
            'showScriptName' => true,
        ),

You have this

        'urlManager' => array(
            'urlFormat' => 'path',
            'rules' => array(
                // You can add your own rules here
            ),
            'showScriptName' => true,
        ),

Then maybe 'urlFormat' => 'path', is broken.
Another solution : i upgrade, and don't do a new install.

This just allow to find the final issue, with hope it was quickly fixed (currently : y only solution for new feature in dvelop is : do it, but don't test since develop is broken).

tammo

tammo

2019-04-28 16:18

developer   ~51619

OK, I just did a git clone (unchanged) and checked out the develop branch. The I initialized and this happened. So it was a clean install.

I will wait until the sign: "All clear" is given for new testing of develop. Or is there any other branch that I should test for LS4?

tammo

tammo

2019-04-28 16:23

developer   ~51620

I changed "path" to "get", but no difference.

Could it have anything to do with the data format not folding out?

LimeGit (2).png (16,243 bytes)   
LimeGit (2).png (16,243 bytes)   
DenisChenu

DenisChenu

2019-04-30 12:20

developer   ~51698

@tammo : sorry can not check with a new setup currently … https://bugs.limesurvey.org/view.php?id=14823 ;)

tammo

tammo

2019-05-07 14:02

developer   ~51790

Reverted to "path".

Still: when I try to define new survey the date format dropdown does not drop down and I get error 500.

I will proceed when I hear that this has been fixed. It occurs for more than 3 weeks now.

tammo

tammo

2019-05-07 15:04

developer   ~51794

Made new clone, new database (locally), but problem persists.

tammo

tammo

2019-05-07 16:32

developer   ~51799

Exception
Selected Surveys language not found

V:\lsgit\framework\db\ar\CActiveRecord.php(145)

133 */
134 public function get($name)
135 {
136 if(isset($this->_attributes[$name]))
137 return $this->_attributes[$name];
138 elseif(isset($this->getMetaData()->columns[$name]))
139 return null;
140 elseif(isset($this->_related[$name]))
141 return $this->_related[$name];
142 elseif(isset($this->getMetaData()->relations[$name]))
143 return $this->getRelated($name);
144 else
145 return parent::
get($name);
146 }
147
148 /*
149
PHP setter magic method.
150 This method is overridden so that AR attributes can be accessed like properties.
151
@param string $name property name
152 @param mixed $value property value
153
@throws CException
154 */
155 public function __set($name,$value)
156 {
157 if($this->setAttribute($name,$value)===false)
Stack Trace
#0

  • V:\lsgit\framework\base\CComponent.php(111): Survey->getCurrentLanguageSettings()
    #1
  • V:\lsgit\framework\db\ar\CActiveRecord.php(145): CComponent->get("currentLanguageSettings")
    #2
    – V:\lsgit\application\controllers\admin\surveyadmin.php(440): CActiveRecord->
    get("currentLanguageSettings")
    435 // Ensure Last GetLastPrettyPrintExpression get info from this sid and default lang
    436 LimeExpressionManager::SetEMLanguage($baselang);
    437 LimeExpressionManager::SetSurveyId($iSurveyID);
    438 LimeExpressionManager::StartProcessingPage(false, true);
    439
    440 $aData['title_bar']['title'] = $survey->currentLanguageSettings->surveyls_title." (".gT("ID").":".$iSurveyID.")";
    441 $aData['surveyid'] = $iSurveyID;
    442 $aData['display']['surveysummary'] = true;
    443
    444 // Last survey visited
    445 $setting_entry = 'lastsurvey'.Yii::app()->user->getId();
    #3
    unknown(0): SurveyAdmin->view("146865", null, null)
    #4
  • V:\lsgit\framework\web\actions\CAction.php(109): ReflectionMethod->invokeArgs(SurveyAdmin, array("146865", null, null))
    #5
    – V:\lsgit\application\core\Survey_Common_Action.php(83): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("surveyid" => "146865", "sa" => "view", "iSurveyId" => "146865", "iSurveyID" => "146865", ...))
    78 $oMethod = new ReflectionMethod($this, $sDefault);
    79 }
    80
    81 // We're all good to go, let's execute it
    82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
    83 return parent::runWithParamsInternal($this, $oMethod, $params);
    84 }
    85
    86 /*
    87
    Some functions have different parameters, which are just an alias of the
    88 * usual parameters we're getting in the url. This function just populates
    #6
  • V:\lsgit\framework\web\CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "146865", "sa" => "view", "iSurveyId" => "146865", "iSurveyID" => "146865", ...))
    #7
  • V:\lsgit\framework\web\CController.php(286): CController->runAction(SurveyAdmin)
    #8
  • V:\lsgit\framework\web\CController.php(265): CController->runActionWithFilters(SurveyAdmin, array())
    #9
    – V:\lsgit\application\controllers\AdminController.php(158): CController->run("survey")
    153 $this->redirect(array('/admin/authentication/sa/login'));
    154 }
    155 }
    156 }
    157
    158 return parent::run($action);
    159 }
    160
    161 /*
    162
    Routes all the actions to their respective places
    163 *
    #10
  • V:\lsgit\framework\web\CWebApplication.php(282): AdminController->run("survey")
    #11
  • V:\lsgit\framework\web\CWebApplication.php(141): CWebApplication->runController("admin/survey/sa/view")
    #12
  • V:\lsgit\framework\base\CApplication.php(185): CWebApplication->processRequest()
    #13
  • V:\lsgit\index.php(195): CApplication->run()
DenisChenu

DenisChenu

2019-05-07 16:38

developer   ~51800

@tammo : one question what language did you set when install ? It's JUST a question, to check it too .

PS : if you can , with firefox , you can directly do Files/ Save As … and send the HTML produced with deug : 2

tammo

tammo

2019-05-07 16:42

developer   ~51802

English

tammo

tammo

2019-05-07 16:43

developer   ~51804

You mean this?

PHP notice
Undefined index: en

V:\lsgit\application\helpers\common_helper.php(114)

102 static $cached = null;
103 $bCheckIntegrity = false;
104 $timeadjust = getGlobalSetting('timeadjust');
105 App()->setLanguage((isset(Yii::app()->session['adminlang']) ? Yii::app()->session['adminlang'] : 'en'));
106 $surveynames = array();
107
108 if (is_null($cached)) {
109 $surveyidresult = Survey::model()
110 ->permission(Yii::app()->user->getId())
111 ->with('languagesettings')
112 ->findAll();
113 foreach ($surveyidresult as $result) {
114 $surveynames[] = array_merge($result->attributes, $result->languagesettings[$result->language]->attributes);
115 }
116
117 usort($surveynames, function($a, $b)
118 {
119 return strcmp($a['surveyls_title'], $b['surveyls_title']);
120 });
121 $cached = $surveynames;
122 } else {
123 $surveynames = $cached;
124 }
125 $surveyselecter = "";
126 if ($bReturnArray === true) {
Stack Trace
#0
– V:\lsgit\application\views\admin\survey\subview\tabCopy_view.php(17): getSurveyList(false)
12 <!-- Select survey -->
13 <div class="form-group">
14 <label for='copysurveylist' class=" control-label"><?php eT("Select survey to copy:"); ?> </label>
15 <div class="">
16 <select id='copysurveylist' name='copysurveylist' required="required" class="form-control">
17 <?php echo getSurveyList(false); ?>
18 </select>
19 </div>
20 <div class="">
21 <p class="form-control-static">
22 <span class='annotation text-warning'><?php echo gT("Required"); ?> </span>
#1

  • V:\lsgit\framework\web\CBaseController.php(126): require("V:\lsgit\application\views\admin\survey\subview\tabCopy_view.php")
    #2
  • V:\lsgit\framework\web\CBaseController.php(95): CBaseController->renderInternal("V:\lsgit\application\views/admin/survey/subview/tabCopy_view.php", array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), true)
    #3
  • V:\lsgit\framework\web\CController.php(872): CBaseController->renderFile("V:\lsgit\application\views/admin/survey/subview/tabCopy_view.php", array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), true)
    #4
    – V:\lsgit\application\views\admin\survey\newSurvey_view.php(44): CController->renderPartial("/admin/survey/subview/tabCopy_view", array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...))
    39 <?php $this->renderPartial('/admin/survey/subview/tabImport_view',$data); ?>
    40 </div>
    41
    42 <!-- Copy -->
    43 <div id='copy' class="tab-pane fade in <?php if($active=='copy'){echo ' active ';}?>" >
    44 <?php $this->renderPartial('/admin/survey/subview/tabCopy_view',$data); ?>
    45 </div>
    46 </div>
    47 </div>
    48 </div>
    49
    #5
  • V:\lsgit\framework\web\CBaseController.php(126): require("V:\lsgit\application\views\admin\survey\newSurvey_view.php")
    #6
  • V:\lsgit\framework\web\CBaseController.php(95): CBaseController->renderInternal("V:\lsgit\application\views/admin/survey/newSurvey_view.php", array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))), true)
    #7
  • V:\lsgit\framework\web\CController.php(872): CBaseController->renderFile("V:\lsgit\application\views/admin/survey/newSurvey_view.php", array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))), true)
    #8
    – V:\lsgit\application\core\Survey_Common_Action.php(267): CController->renderPartial("/admin/survey/newSurvey_view", array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))), true)
    262 // Load views
    263 $content = "";
    264 foreach ($aViewUrls as $sViewKey => $viewUrl) {
    265 if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output'))) {
    266 if (is_numeric($sViewKey)) {
    267 $content .= Yii::app()->getController()->renderPartial($sViewPath.$viewUrl, $aData, true);
    268 } elseif (is_array($viewUrl)) {
    269 foreach ($viewUrl as $aSubData) {
    270 $aSubData = array_merge($aData, $aSubData);
    271 $content .= Yii::app()->getController()->renderPartial($sViewPath.$sViewKey, $aSubData, true);
    272 }
    #9
  • V:\lsgit\application\core\Survey_Common_Action.php(345): Survey_Common_Action->renderCentralContents("survey", array("newSurvey_view"), array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))))
    #10
  • V:\lsgit\application\controllers\admin\surveyadmin.php(2251): Survey_Common_Action->_renderWrappedTemplate("survey", array("newSurvey_view"), array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))), false)
    #11
  • V:\lsgit\application\controllers\admin\surveyadmin.php(201): SurveyAdmin->_renderWrappedTemplate("survey", array("newSurvey_view"), array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))))
    #12
    unknown(0): SurveyAdmin->newsurvey()
    #13
  • V:\lsgit\framework\web\actions\CAction.php(109): ReflectionMethod->invokeArgs(SurveyAdmin, array())
    #14
  • V:\lsgit\application\core\Survey_Common_Action.php(83): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("sa" => "newsurvey"))
    #15
  • V:\lsgit\framework\web\CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "newsurvey"))
    #16
  • V:\lsgit\framework\web\CController.php(286): CController->runAction(SurveyAdmin)
    #17
  • V:\lsgit\framework\web\CController.php(265): CController->runActionWithFilters(SurveyAdmin, array())
    #18
  • V:\lsgit\application\controllers\AdminController.php(158): CController->run("survey")
    #19
  • V:\lsgit\framework\web\CWebApplication.php(282): AdminController->run("survey")
    #20
  • V:\lsgit\framework\web\CWebApplication.php(141): CWebApplication->runController("admin/survey/sa/newsurvey")
    #21
  • V:\lsgit\framework\base\CApplication.php(185): CWebApplication->processRequest()
    #22
  • V:\lsgit\index.php(195): CApplication->run()
DenisChenu

DenisChenu

2019-05-07 16:59

developer   ~51809

Sorry don't see the en …

Else about file , i mean like this https://bugs.limesurvey.org/view.php?id=14854 the Error.html file open in a new tab on my Firefox with color and beautifull tab :)

tammo

tammo

2019-05-08 14:39

developer   ~51833

Or is this not what you mean?

markusfluer

markusfluer

2019-07-05 16:45

administrator   ~52769

There has been a lot of development lately. Can you check if you still ahve this issue?

tammo

tammo

2019-07-24 15:10

developer   ~52987

Fixed now!

tammo

tammo

2019-07-24 15:11

developer   ~52988

Thank you!

Issue History

Date Modified Username Field Change
2019-04-28 10:29 tammo New Issue
2019-04-28 10:30 tammo Relationship added related to 14755
2019-04-28 10:30 tammo Note Added: 51612
2019-04-28 15:33 DenisChenu File Added: Capture d’écran du 2019-04-28 15-30-06.png
2019-04-28 15:33 DenisChenu Note Added: 51615
2019-04-28 16:10 tammo File Added: error500.png
2019-04-28 16:10 tammo Note Added: 51617
2019-04-28 16:14 DenisChenu Note Added: 51618
2019-04-28 16:18 tammo Note Added: 51619
2019-04-28 16:23 tammo File Added: LimeGit (2).png
2019-04-28 16:23 tammo Note Added: 51620
2019-04-30 09:46 dominikvitt Assigned To => markusfluer
2019-04-30 09:46 dominikvitt Status new => assigned
2019-04-30 12:20 DenisChenu Note Added: 51698
2019-04-30 14:11 ollehar Product Version 4.0.0-beta => 4.0.0dev
2019-05-06 07:05 adamzammit Issue Monitored: adamzammit
2019-05-07 14:02 tammo File Added: 500 Internal Server Error (1).png
2019-05-07 14:02 tammo Note Added: 51790
2019-05-07 15:04 tammo Note Added: 51794
2019-05-07 15:28 c_schmitz Priority none => urgent
2019-05-07 16:32 tammo Note Added: 51799
2019-05-07 16:38 DenisChenu Note Added: 51800
2019-05-07 16:42 tammo Note Added: 51802
2019-05-07 16:43 tammo Note Added: 51804
2019-05-07 16:59 DenisChenu Note Added: 51809
2019-05-08 14:39 tammo File Added: 14820 Survey creation not possible LimeSurvey bugs and feature requests.png
2019-05-08 14:39 tammo Note Added: 51833
2019-07-05 16:45 markusfluer Status assigned => feedback
2019-07-05 16:45 markusfluer Note Added: 52769
2019-07-08 10:34 markusfluer Assigned To markusfluer => tammo
2019-07-24 15:10 tammo Note Added: 52987
2019-07-24 15:11 tammo Status feedback => resolved
2019-07-24 15:11 tammo Resolution open => fixed
2019-07-24 15:11 tammo Fixed in Version => 4.0.0-RC2
2019-07-24 15:11 tammo Note Added: 52988
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing
2020-02-12 18:12 cdorin Assigned To tammo => cdorin
2020-02-12 18:12 cdorin Status resolved => closed
2020-02-12 18:12 cdorin Fixed in Version 4.0.0-RC2 => 4.0.0dev
2021-08-02 17:18 guest Bug heat 6 => 8