Projekt

Allgemein

Profil

Aktionen

Fehler #261

geschlossen

Ihr Benutzerkonto

Von Matthias Unterbusch vor fast 11 Jahren hinzugefügt. Vor fast 11 Jahren aktualisiert.

Status:
Abgewiesen
Priorität:
Normal
Zugewiesen an:
Kategorie:
Back-End
Zielversion:
-
Beginn:
22.05.2013
Abgabedatum:
% erledigt:

0%

Geschätzter Aufwand:

Beschreibung

Wenn ich, egal bei welcher Rolle, auf "Ihr Benutzerkonto" klicke, kommt folgende Exception:

CException

Eigenschaft "User.userRole ist nicht definiert.

/home/est/public_html/est_trunk/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 */
154 public function __set($name,$value)
155 {
156 if($this->setAttribute($name,$value)===false)
157 {

Stack Trace
#0
+
/home/est/public_html/est_trunk/framework/db/ar/CActiveRecord.php(145): CComponent->_get("userRole")
#1

/home/est/public_html/est_trunk/protected/controllers/UserController.php(393): CActiveRecord->
_get("userRole")

388 $model = User::model()->findByPk($id);
389 if ($model === null) {
390 $this->throwFourNullFour();
391 } else {
392 $model->password_repeat = $model->password;
393 $model->role = $model->userRole->role_id;
394 switch ($model->state) {
395 case 0:
396 $model->stateName = "Nicht aktiv";
397 break;
398 case 1:

#2

/home/est/public_html/est_trunk/protected/controllers/UserController.php(144): UserController->loadModel("3")

139 /**
140 * rendert das Profilview des Users
141 * @author Christian Ehringfeld <>
142 /
143 public function actionAccount() {
*144 $model =$this->loadModel(Yii::app()->user->getId());

145 if(isset($_POST['User']['tan'])) {
146 $model->tan = $_POST['User']['tan'];
147 if($model->validate()) {
148 $model->addWithTanNewGroup();
149 }

#3

/home/est/public_html/est_trunk/framework/web/actions/CInlineAction.php(49): UserController->actionAccount()
#4

/home/est/public_html/est_trunk/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "User/account"))
#5

/home/est/public_html/est_trunk/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction)
#6

/home/est/public_html/est_trunk/framework/web/filters/CFilter.php(40): CFilterChain->run()
#7

/home/est/public_html/est_trunk/framework/web/CController.php(1145): CFilter->filter(CFilterChain)
#8

/home/est/public_html/est_trunk/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)
#9

/home/est/public_html/est_trunk/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain)
#10

/home/est/public_html/est_trunk/framework/web/CController.php(291): CFilterChain->run()
#11

/home/est/public_html/est_trunk/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl"))
#12

/home/est/public_html/est_trunk/framework/web/CWebApplication.php(282): CController->run("account")
#13

/home/est/public_html/est_trunk/framework/web/CWebApplication.php(141): CWebApplication->runController("User/account")
#14

/home/est/public_html/est_trunk/framework/base/CApplication.php(169): CWebApplication->processRequest()
#15

/home/est/public_html/est_trunk/index.php(30): CApplication->run()

25 defined('YII_DEBUG') or define('YII_DEBUG', true);
26 // specify how many levels of call stack should be shown in each log message
27 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
28
29 require_once($yii);
30 Yii::createWebApplication($config)->run();

Aktionen #1

Von Christian Ehringfeld vor fast 11 Jahren aktualisiert

  • Status wurde von Neu zu Abgewiesen geändert

Schon seit Montag mittag gefixxt. Hättest mal http://h1963533.stratoserver.net/~est/ aufrufen sollen!

Aktionen #2

Von Christian Ehringfeld vor fast 11 Jahren aktualisiert

  • Zielversion 1.2 wurde gelöscht
Aktionen

Auch abrufbar als: Atom PDF