CException

Property "User.owner_id" is not defined.

/var/www/lime25/limesurvey/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

#2
+
 /var/www/lime25/limesurvey/application/controllers/admin/usergroups.php(283): CModel->offsetGet("owner_id")
278                     }
279                     $userloop[$row]["userid"] = $egurow['uid'];
280 
281                     //    output users
282                     $userloop[$row]["rowclass"] = $bgcc;
283                     if (Permission::model()->hasGlobalPermission('usergroups', 'update') && $egurow['owner_id']==Yii::app()->session['loginID'])  {
284                         $userloop[$row]["displayactions"] = true;
285                     } else {
286                         $userloop[$row]["displayactions"] = false;
287                     }
288 
#3
+
 /var/www/lime25/limesurvey/application/controllers/admin/usergroups.php(148): Usergroups->index("1", true)
143                         list($aViewUrls, $aData) = $this->index(false, array("type" => "warning", "message" => gT("Failed to add group! Group already exists.")));
144                         Yii::app()->user->setFlash('error', gT("Failed to add group! Group already exists."));
145                     } else {
146                         $ugid = UserGroup::model()->addGroup($db_group_name, $db_group_description);
147                         Yii::app()->session['flashmessage'] = gT("User group successfully added!");
148                         list($aViewUrls, $aData) = $this->index($ugid, true);
149                         $this->getController()->redirect(array('admin/usergroups/sa/view/ugid/'.$ugid));
150                     }
151 
152                     $this->getController()->redirect(array('admin/usergroups'));
153 
#6
+
 /var/www/lime25/limesurvey/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(Usergroups, ReflectionMethod, array("r" => "admin/usergroups/sa/add", "sa" => "add"))
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
2019-04-24 18:11:07 Apache/2.4.10 (Ubuntu) Yii Framework/1.1.21