Property "Question.groups" is not defined. /www/site/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 + /www/site/framework/db/ar/CActiveRecord.php(145): CComponent->__get("groups") #1 – /www/site/application/controllers/admin/checkintegrity.php(541): CActiveRecord->__get("groups") 536 537 // We check if its GID is the same as the one defined in the column name 538 if ($oQuestion->gid != $sGid){ 539 540 // If not, we change the column name 541 $sNvColName = $oSurvey->sid . 'X'. $oQuestion->groups->gid . 'X' . $sDirtyQid; 542 543 if ( array_key_exists( $sNvColName, $aColumns ) ){ 544 // This case will not happen often, only when QID + Subquestion ID == QID of a question in the target group 545 // So we'll change the group of the question question group table (so in admin interface, not in frontend) 546 $oQuestion->gid = $sGid; #2 – /www/site/application/controllers/admin/checkintegrity.php(40): CheckIntegrity->_checkintegrity() 35 Yii::app()->loadHelper('surveytranslator'); 36 } 37 38 public function index() 39 { 40 $aData = $this->_checkintegrity(); 41 42 43 $aData['fullpagebar']['returnbutton']['url'] = 'admin/index'; 44 $aData['fullpagebar']['returnbutton']['text'] = gT('Return to admin home'); 45 #3 unknown(0): CheckIntegrity->index() #4 + /www/site/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(CheckIntegrity, array()) #5 – /www/site/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(CheckIntegrity, ReflectionMethod, array("r" => "admin/checkintegrity")) 81 $oMethod = new ReflectionMethod($this, $sDefault); 82 } 83 84 // We're all good to go, let's execute it 85 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 86 return parent::runWithParamsInternal($this, $oMethod, $params); 87 } 88 89 /** 90 * Some functions have different parameters, which are just an alias of the 91 * usual parameters we're getting in the url. This function just populates #6 + /www/site/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("r" => "admin/checkintegrity")) #7 + /www/site/framework/web/CController.php(286): CController->runAction(CheckIntegrity) #8 + /www/site/framework/web/CController.php(265): CController->runActionWithFilters(CheckIntegrity, array()) #9 + /www/site/application/controllers/AdminController.php(165): CController->run("checkintegrity") #10 + /www/site/framework/web/CWebApplication.php(282): AdminController->run("checkintegrity") #11 + /www/site/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/checkintegrity") #12 + /www/site/framework/base/CApplication.php(185): CWebApplication->processRequest() #13 + /www/site/index.php(195): CApplication->run() 2020-02-24 09:22:04 nginx/1.17.8 Yii Framework/1.1.22-dev