thyseus / yii-user-management

a user management module collection for the yii framework
186 stars 122 forks source link

Privacy Setting not working #152

Open ahmeier opened 10 years ago

ahmeier commented 10 years ago

YUM 0.8-rc7, mysql Ver 14.14 Distrib 5.5.30 php 5.5, apache webserver 2.2.25 using standard testdrive application when clicking on "Privacy Settings", the following error occurs:

PHP notice

Trying to get property of non-object

/Volumes/Static Backups/Dropbox/www/testdrive/protected/modules/profile/views/privacy/update.php(4)

01 <?php 02 $this->breadcrumbs=array( 03 Yum::t('Privacysettings')=>array('index'), 04 $model->user->username=>array( 05 '//user/user/view','id'=>$model->user_id), 06 Yum::t( 'Update'), 07 ); 08 09 $this->title = Yum::t('Privacy settings for {username}', array( 10 '{username}' => $model->user->username)); 11 12 ?> 13

14

15 <?php Yum::requiredFieldNote(); ?> 16

Stack Trace

0

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/CBaseController.php(126): require("/Volumes/Static Backups/Dropbox/www/testdrive/protected/modules/...")

    1

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/CBaseController.php(95): CBaseController->renderInternal("/Volumes/Static Backups/Dropbox/www/testdrive/protected/modules/...", array("model" => YumPrivacysetting, "profile" => null), true)

    2

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/CController.php(869): CBaseController->renderFile("/Volumes/Static Backups/Dropbox/www/testdrive/protected/modules/...", array("model" => YumPrivacysetting, "profile" => null), true)

    3

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/CController.php(782): CController->renderPartial("/privacy/update", array("model" => YumPrivacysetting, "profile" => null), true)

    4

    – /Volumes/Static Backups/Dropbox/www/testdrive/protected/modules/profile/controllers/YumPrivacysettingController.php(75): CController->render("/privacy/update", array("model" => YumPrivacysetting, "profile" => null)) 70 $this->render(Yum::module('profile')->privacySettingView,array( 71 'model'=>$model, 72 'profile'=> isset($model->user) && isset($model->user->profile) 73 ? $model->user->profile 74 : null 75 )); 76 } 77 78 }

    5

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/actions/CInlineAction.php(49): YumPrivacysettingController->actionUpdate()

    6

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/CController.php(308): CInlineAction->runWithParams(array())

    7

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction)

    8

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/filters/CFilter.php(40): CFilterChain->run()

    9

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/CController.php(1145): CFilter->filter(CFilterChain)

    10

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)

    11

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain)

    12

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/CController.php(291): CFilterChain->run()

    13

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl"))

    14

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/CWebApplication.php(282): CController->run("update")

    15

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/web/CWebApplication.php(141): CWebApplication->runController("profile/privacy/update")

    16

  • /Volumes/Static Backups/Dropbox/yii-1.1.14.f0fee9/framework/base/CApplication.php(180): CWebApplication->processRequest()

    17

    – /Volumes/Static Backups/Dropbox/www/testdrive/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run();