lup0z
(Lavaro)
March 12, 2015, 1:23pm
14
I’m doing again every step and when running “composer update”, I’ve found this out:
"Your requirements could not be resolved to an installable set of packages.
Problem 1
The request package webvimark/module-user-management could not be found in any version, there may be a typo in the package name.
Potential causes:
see <https://groups.google.com/forum/#!topic/composer-dev/_g3ASeIFlrc/discussion >"
so something could change about my migration problem because of this issue?
Vimark
(Webvimark)
March 12, 2015, 7:55pm
15
The Pendalf posted how to solve this problem few comments above.
Try this code in your composer.json:
"minimum-stability": "dev",
"prefer-stable" : true,
lup0z
(Lavaro)
March 12, 2015, 11:13pm
16
Ah thank you.
I didn’t notice.
Sorry for the re-post of the problem
lup0z
(Lavaro)
March 13, 2015, 10:01am
17
Ok, I just want to make you know that I succeed on downloading through your repository and when I run the migrate command, now I get this:
C:\xampp\htdocs\yiiframework\user-manager>php yii migrate --migrationPath=vendor/webvimark/module-user-management/migrations
Yii Migration Tool (based on Yii v2.0.3)
Total 10 new migrations to be applied:
m140608_173539_create_user_table
m140611_133903_init_rbac
m140808_073114_create_auth_item_group_table
m140809_072112_insert_superadmin_to_user
m140809_073114_insert_common_permisison_to_auth_item
m141023_141535_create_user_visit_log
m141116_115804_add_bind_to_ip_and_registration_ip_to_user
m141121_194858_split_browser_and_os_column
m141201_220516_add_email_and_email_confirmed_to_user
m141207_001649_create_basic_user_permissions
Apply the above migrations? (yes|no) [no]:yes
*** applying m140608_173539_create_user_table
Exception: Class webvimark\modules\UserManagement\UserManagementModule does not exist (C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\di\Container.php:415)
#0 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\di\Container.php(415): ReflectionClass->__construct('webvimark\modul...')
#1 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\di\Container.php(358): yii\di\Container->getDependencies('webvimark\modul..
.')
#2 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\di\Container.php(151): yii\di\Container->build('webvimark\modul...', Array,
Array)
#3 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\BaseYii.php(344): yii\di\Container->get('webvimark\modul...', Array, Array)
#4 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\base\Module.php(354): yii\BaseYii::createObject(Array, Array)
#5 C:\xampp\htdocs\yiiframework\user-manager\vendor\webvimark\module-user-management\migrations\m140608_173539_create_user_table.php(16): yi
i\base\Module->getModule('user-management')
#6 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\db\Migration.php(81): m140608_173539_create_user_table->safeUp()
#7 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\console\controllers\BaseMigrateController.php(492): yii\db\Migration->up()
#8 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\console\controllers\BaseMigrateController.php(129): yii\console\controllers
\BaseMigrateController->migrateUp('m140608_173539_...')
#9 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(0)
#10 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\base\InlineAction.php(55): call_user_func_array(Array, Array)
#11 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\base\Controller.php(151): yii\base\InlineAction->runWithParams(Array)
#12 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\console\Controller.php(91): yii\base\Controller->runAction('', Array)
#13 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\base\Module.php(455): yii\console\Controller->runAction('', Array)
#14 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\console\Application.php(161): yii\base\Module->runAction('migrate', Array)
#15 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\console\Application.php(137): yii\console\Application->runAction('migrate'
, Array)
#16 C:\xampp\htdocs\yiiframework\user-manager\vendor\yiisoft\yii2\base\Application.php(375): yii\console\Application->handleRequest(Object(y
ii\console\Request))
#17 C:\xampp\htdocs\yiiframework\user-manager\yii(23): yii\base\Application->run()
#18 {main}
*** failed to apply m140608_173539_create_user_table (time: 0.019s)
Migration failed. The rest of the migrations are canceled.
Vimark
(Webvimark)
March 18, 2015, 11:15am
18
Hey, as I can see you downloaded it directly instead of using composer (so I guess you’ll have problems with class autoload). For current problem you may use mysql.schema.sql in migrations/ folder.
If you’ll have futher troubles I’ll just create archive with whole project when I’ll be back from vacation and give you =)
lup0z
(Lavaro)
March 20, 2015, 9:08am
19
No no, I downloaded it through "composer update".
Thank you for your support!
diss1dent
(Ckwork100)
April 2, 2015, 8:02pm
20
How can I set this behaviors for every controller (for the hole site ). It redirects to login page only when i rite this in controller//
public function behaviors()
{
return [
'ghost-access'=> [
'class' => 'webvimark\modules\UserManagement\components\GhostAccessControl',
],
];
}
goltratec
(Goltratec)
April 5, 2015, 8:00am
21
Hi @Vimark , exist an event triggered after a permission was denied?
I mean, I want to log when an user try to access at not permited action…
thanks and great job…
goltratec
(Goltratec)
April 5, 2015, 8:07am
22
Dissident you can create a component basecontroller that extends from the main basecontroller
kingsol
(Yii)
April 12, 2015, 4:06am
23
Hello,
How would you override the view for the module? I am currently attempting in config/web the following:
'view' => [
'theme' => [
'pathMap' => [
'vendor/webvimark/module-user-management/views/auth/' => '@app/views/module/user-management/auth/'
],
],
],
Hello,
So I was hoping to get this installed and am having some fun with it.
So just some information for you:
I downloaded the advanced template, I first tried to run the migration is said there was already a users table, so I renamed the old user table and migration ran fine.
however now i have this error:
6578
OK I got it! I had accidentally left he user component in from the Yii2 advanced application. Doh!
wpler
(Stefan)
July 21, 2015, 10:35pm
27
If the session runs in timeout, how can i set globally that after refresh the page to the login?
sathkur
(Sathkur22)
July 29, 2015, 7:54am
28
hi @Vimark ,
I am installing the user management on “advanced template”. But it can’t find the config/console.php, where we put the migration configuration during installation. I know this is easy, but i am new to YII.
sganz
(Sganz)
August 26, 2015, 5:09pm
29
Same problem got me Thanks for the tip now I can check it all out.
Sandy
Vimark:
I think it’s because you have 2 user components.
'user' => [
'identityClass' => 'app\models\User',
'enableAutoLogin' => true,
],
//User-management added by lup0z
'user' => [
'class' => 'webvimark\modules\UserManagement\components\UserConfig',
// Comment this if you don't want to record user logins
'on afterLogin' => function($event) {
\webvimark\modules\UserManagement\models\UserVisitLog::newVisitor($event->identity->id);
}
],
You have to replace the old one with the new component
I’ll change documentation to make this step more clear
bollydow
(Machnacz Andrzej)
September 20, 2015, 9:00am
30
Does anyone know if I’ll make changes in this module, including the views, then during the upgrade module (composer update) my changes made are lost?
skippy59
(Gpouilly)
October 10, 2015, 9:35am
31
Hi,
I want to custom views for login form, how can i do that ? I want to keep the update capabilities of the module.
Thanks
adinugro
(Adinugro)
January 14, 2016, 6:29am
32
Hi,
I installed this for kartik-practical template, I put the user and module config on common/config/main.php,
However, every time I login it keeps coming back to login page. Any help?
NeuroNet
(Info)
February 1, 2016, 4:51am
33
On MSSQL i get the following error message when trying to apply the installation migrations:
*** applying m140611_133903_init_rbac
> create table {{%auth_item_child}} ...Exception 'yii\db\Exception' with message 'SQLSTATE[42000]: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Introducing FOREIGN KEY constraint 'FK__auth_item__child__3CBF0154' on table 'auth_item_child' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
The SQL being executed was: CREATE TABLE [auth_item_child] (
[parent] varchar(64) NOT NULL,
[child] varchar(64) NOT NULL,
PRIMARY KEY (parent, child),
FOREIGN KEY (parent) REFERENCES [auth_item] (name) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (child) REFERENCES [auth_item] (name) ON DELETE CASCADE ON UPDATE CASCADE
)'