- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Error: New Survey Group: Property "SurveysGroups.owner_uid" is not defined.'
- bpbpbp
- Topic Author
- Offline
- New Member
Less
More
4 years 10 months ago - 4 years 10 months ago #184935
by bpbpbp
Error: New Survey Group: Property "SurveysGroups.owner_uid" is not defined.' was created by bpbpbp
Latest stable v 3.17.3, self-hosted Apache/2.4.29 (Ubuntu) Yii Framework/1.1.21
I receive 'Property "SurveysGroups.owner_uid" is not defined.' when clicking 'Save' button in the Gui to create a new survey group.
I am allowed to change the name and description of the existing default group.
____
I receive 'Property "SurveysGroups.owner_uid" is not defined.' when clicking 'Save' button in the Gui to create a new survey group.
I am allowed to change the name and description of the existing default group.
____
Code:
CException Property "SurveysGroups.owner_uid" is not defined. /var/www/html/survey/framework/db/ar/CActiveRecord.php(162) 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) 158 { 159 if(isset($this->getMetaData()->relations[$name])) 160 $this->_related[$name]=$value; 161 else 162 parent::__set($name,$value); 163 } 164 } 165 166 /** 167 * Checks if a property value is null. 168 * This method overrides the parent implementation by checking 169 * if the named attribute is null or not. 170 * @param string $name the property name or the event name 171 * @return boolean whether the property value is null 172 */ 173 public function __isset($name) 174 { Stack Trace #0 + /var/www/html/survey/framework/db/ar/CActiveRecord.php(162): CComponent->__set("owner_uid", "1") #1 – /var/www/html/survey/application/controllers/admin/SurveysGroupsController.php(48): CActiveRecord->__set("owner_uid", "1") 43 // Uncomment the following line if AJAX validation is needed 44 // $this->performAjaxValidation($model); 45 46 if (Yii::app()->getRequest()->getPost('SurveysGroups')) { 47 $model->attributes = Yii::app()->getRequest()->getPost('SurveysGroups'); 48 $model->created_by = $model->owner_uid = Yii::app()->user->id; 49 if ($model->save()) { 50 $this->getController()->redirect($this->getController()->createUrl('admin/survey/sa/listsurveys').'#surveygroups'); 51 } 52 } 53 #2 unknown(0): SurveysGroupsController->create() #3 + /var/www/html/survey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(SurveysGroupsController, array()) #4 – /var/www/html/survey/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(SurveysGroupsController, ReflectionMethod, array("sa" => "create")) 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 #5 + /var/www/html/survey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "create")) #6 + /var/www/html/survey/framework/web/CController.php(286): CController->runAction(SurveysGroupsController) #7 + /var/www/html/survey/framework/web/CController.php(265): CController->runActionWithFilters(SurveysGroupsController, array()) #8 – /var/www/html/survey/application/controllers/AdminController.php(158): CController->run("surveysgroups") 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 * #9 + /var/www/html/survey/framework/web/CWebApplication.php(282): AdminController->run("surveysgroups") #10 + /var/www/html/survey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/surveysgroups/sa/create") #11 + /var/www/html/survey/framework/base/CApplication.php(185): CWebApplication->processRequest() #12 + /var/www/html/survey/index.php(194): CApplication->run() 2019-05-27 16:32:58 Apache/2.4.29 (Ubuntu) Yii Framework/1.1.21
Last edit: 4 years 10 months ago by DenisChenu. Reason: code
The topic has been locked.