Home » Error
Error 403
You are not authorized to perform this action.
following messages was main.php and Application Log ,thx for helpping :)
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(FILE).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application',
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.modules.user.models.*',
),
'modules'=>array(
'user' => array(
'debug' => false,
'userTable'=>'user',
),
'role' => array(
'roleTable' => 'role',
'userRoleTable' => 'user_role',
'actionTable' => 'action',
'permissionTable' => 'permission',
),
// uncomment the following to enable the Gii tool
/*
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'Enter Your Password Here',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
*/
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'class' => 'application.modules.user.components.YumWebUser',
//'allowAutoLogin'=>true,
'loginUrl' => array('//user/user/login'),
),
'cache' => array('class' => 'system.caching.CDummyCache'),
// uncomment the following to enable URLs in path-format
/*
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
*/
/*
'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
*/
// uncomment the following to use a MySQL database
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=usermanager',
'emulatePrepare' => true,
'username' => 'admin',
'password' => 'admin',
'charset' => 'utf8',
'tablePrefix' => '',
),
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
array(
'class' => 'CWebLogRoute',
),
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
*/
),
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'webmaster@example.com',
),
Loading "log" application component
in C:\wamp\www\usermanager\index.php (13)
07:59:09.774214 trace system.CModule
Loading "request" application component
in C:\wamp\www\usermanager\index.php (13)
07:59:09.776382 trace system.CModule
Loading "urlManager" application component
in C:\wamp\www\usermanager\index.php (13)
07:59:09.778014 trace system.base.CModule
Loading "user" module
in C:\wamp\www\usermanager\index.php (13)
07:59:09.839302 trace system.CModule
Loading "user" application component
in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228)
in C:\wamp\www\usermanager\index.php (13)
07:59:09.842072 trace system.CModule
Loading "session" application component
in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228)
in C:\wamp\www\usermanager\index.php (13)
07:59:09.870126 trace system.db.ar.CActiveRecord
YumUser.findByPk()
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(16)
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(158)
in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228)
07:59:09.870248 trace system.CModule
Loading "db" application component
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(16)
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(158)
in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228)
07:59:09.872211 trace system.db.CDbConnection
Opening DB connection
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(16)
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(158)
in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228)
07:59:09.888151 trace system.db.CDbCommand
Querying SQL: SHOW FULL COLUMNS FROM user
in
C:\wamp\www\usermanager\protected\modules\user\models\YumActiveRecord.php
(49)
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(16)
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(158)
07:59:09.897826 trace system.db.CDbCommand
Querying SQL: SHOW CREATE TABLE user
in
C:\wamp\www\usermanager\protected\modules\user\models\YumActiveRecord.php
(49)
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(16)
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(158)
07:59:09.898550 trace system.base.CModule
Loading "role" module
in C:\wamp\www\usermanager\protected\modules\user\models\Yum.php (176)
in C:\wamp\www\usermanager\protected\modules\user\models\YumUser.php (394)
in
C:\wamp\www\usermanager\protected\modules\user\models\YumActiveRecord.php
(49)
07:59:09.916439 trace system.db.CDbCommand
Querying SQL: SELECT * FROM usert WHERE t.id='admin' LIMIT 1
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(16)
in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php
(158)
in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228)
exception 'CHttpException' with message 'You are not authorized to perform
this action.' in
C:\wamp\www\yii\framework\web\auth\CAccessControlFilter.php:182
Stack trace:
Loading "widgetFactory" application component
in C:\wamp\www\usermanager\protected\views\layouts\column1.php (2)
in C:\wamp\www\usermanager\protected\controllers\SiteController.php (45)
07:59:09.941502 trace system.CModule
Loading "clientScript" application component
in C:\wamp\www\usermanager\protected\controllers\SiteController.php (45)
after install,got this message:
Home » Error Error 403 You are not authorized to perform this action.
following messages was main.php and Application Log ,thx for helpping :)
<?php
// uncomment the following to define a path alias // Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable // CWebApplication properties can be configured here. return array( 'basePath'=>dirname(FILE).DIRECTORY_SEPARATOR.'..', 'name'=>'My Web Application',
);
Application Log Timestamp Level Category Message 07:59:09.767390 trace system.CModule
Loading "log" application component in C:\wamp\www\usermanager\index.php (13)
07:59:09.774214 trace system.CModule
Loading "request" application component in C:\wamp\www\usermanager\index.php (13)
07:59:09.776382 trace system.CModule
Loading "urlManager" application component in C:\wamp\www\usermanager\index.php (13)
07:59:09.778014 trace system.base.CModule
Loading "user" module in C:\wamp\www\usermanager\index.php (13)
07:59:09.839302 trace system.CModule
Loading "user" application component in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228) in C:\wamp\www\usermanager\index.php (13)
07:59:09.842072 trace system.CModule
Loading "session" application component in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228) in C:\wamp\www\usermanager\index.php (13)
07:59:09.870126 trace system.db.ar.CActiveRecord
YumUser.findByPk() in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (16) in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (158) in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228)
07:59:09.870248 trace system.CModule
Loading "db" application component in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (16) in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (158) in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228)
07:59:09.872211 trace system.db.CDbConnection
Opening DB connection in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (16) in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (158) in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228)
07:59:09.888151 trace system.db.CDbCommand
Querying SQL: SHOW FULL COLUMNS FROM
user
in C:\wamp\www\usermanager\protected\modules\user\models\YumActiveRecord.php (49) in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (16) in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (158)07:59:09.897826 trace system.db.CDbCommand
Querying SQL: SHOW CREATE TABLE
user
in C:\wamp\www\usermanager\protected\modules\user\models\YumActiveRecord.php (49) in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (16) in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (158)07:59:09.898550 trace system.base.CModule
Loading "role" module in C:\wamp\www\usermanager\protected\modules\user\models\Yum.php (176) in C:\wamp\www\usermanager\protected\modules\user\models\YumUser.php (394) in C:\wamp\www\usermanager\protected\modules\user\models\YumActiveRecord.php (49)
07:59:09.916439 trace system.db.CDbCommand
Querying SQL: SELECT * FROM
user
t
WHEREt
.id
='admin' LIMIT 1 in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (16) in C:\wamp\www\usermanager\protected\modules\user\components\YumWebUser.php (158) in C:\wamp\www\usermanager\protected\modules\user\UserModule.php (228)07:59:09.920260 trace system.web.filters.CFilterChain
Running filter YumUserController.filteraccessControl() in C:\wamp\www\usermanager\index.php (13)
07:59:09.922337 trace system.CModule
Loading "coreMessages" application component in C:\wamp\www\usermanager\index.php (13)
07:59:09.926093 error exception.CHttpException.403
exception 'CHttpException' with message 'You are not authorized to perform this action.' in C:\wamp\www\yii\framework\web\auth\CAccessControlFilter.php:182 Stack trace:
0 C:\wamp\www\yii\framework\web\auth\CAccessControlFilter.php(145):
CAccessControlFilter->accessDenied(Object(YumWebUser), 'You are not aut...')
1 C:\wamp\www\yii\framework\web\filters\CFilter.php(38):
CAccessControlFilter->preFilter(Object(CFilterChain))
2 C:\wamp\www\yii\framework\web\CController.php(1145):
CFilter->filter(Object(CFilterChain))
3 C:\wamp\www\yii\framework\web\filters\CInlineFilter.php(58):
CController->filterAccessControl(Object(CFilterChain))
4 C:\wamp\www\yii\framework\web\filters\CFilterChain.php(130):
CInlineFilter->filter(Object(CFilterChain))
5 C:\wamp\www\yii\framework\web\CController.php(291): CFilterChain->run()
6 C:\wamp\www\yii\framework\web\CController.php(265):
CController->runActionWithFilters(Object(CInlineAction), Array)
7 C:\wamp\www\yii\framework\web\CWebApplication.php(282):
CController->run('admin')
8 C:\wamp\www\yii\framework\web\CWebApplication.php(141):
CWebApplication->runController('user/user/admin')
9 C:\wamp\www\yii\framework\base\CApplication.php(180):
CWebApplication->processRequest()
10 C:\wamp\www\usermanager\index.php(13): CApplication->run()
11 {main}
REQUEST_URI=/usermanager/index.php?r=user/user/admin
07:59:09.926495 trace system.CModule
Loading "errorHandler" application component
07:59:09.934271 trace system.CModule
Loading "widgetFactory" application component in C:\wamp\www\usermanager\protected\views\layouts\column1.php (2) in C:\wamp\www\usermanager\protected\controllers\SiteController.php (45)
07:59:09.941502 trace system.CModule
Loading "clientScript" application component in C:\wamp\www\usermanager\protected\controllers\SiteController.php (45)