yii-user-management icon indicating copy to clipboard operation
yii-user-management copied to clipboard

403 error on /user/user/admin, after install module

Open dsxack opened this issue 11 years ago • 4 comments

After /user/install i login admin/admin in /site/login and follow to /user/user/admin. I got a 403 error on this page.

dsxack avatar Feb 27 '13 03:02 dsxack

Please enable logging at /protected/config/main.php with the 'log' section at the and of the file:

'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class' => 'CFileLogRoute',
                    'levels' => 'error, warning',
                ),
                // uncomment the following to show log messages on web pages
                array(
                    'class' => 'CWebLogRoute',
                ),
            ),
        )

at the the log output on your page you might find a exception.CHttpException.403 section with more information about what's going on.

hth.

kidata avatar Feb 28 '13 08:02 kidata

Did you enable YumWebUser instead of CWebUser in config/main.php ? Also please make sure to use //user/user/login instead of the site/login route provided by the blog demo.

thyseus avatar Mar 08 '13 11:03 thyseus

Sorry for the delay in response, tomorrow I will lay out the logs

dsxack avatar Mar 10 '13 08:03 dsxack

I was getting the same 403 error. Make sure the URL you are going to is "index.php?r=user/user/login" and NOT "index.php?r=site/login". Changing the 'loginUrl' => array('//user/user/login') in config/main.php does NOT update the link on the default template.

skhotdotcom avatar Mar 26 '13 08:03 skhotdotcom