Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
200 views
in Technique[技术] by (71.8m points)

yii2 migration command gives warning how to fix it?

I want to download and use thyseus/yii2-message. followed steps on github. for installation

1) $ composer require thyseus/yii2-message
2) $ php yii migrate/up --migrationPath=@vendor/thyseus/yii2-message/migrations

warning

PHP Warning:  Module 'openssl' already loaded in Unknown on line 0

Warning: Module 'openssl' already loaded in Unknown on line 0
Exception 'yiiaseInvalidConfigException' with message 'The configuration for
the "user" component must contain a "class" element.'

in C:xampphtdocsyii2-my-app2vendoryiisoftyii2diServiceLocator.php:204

Stack trace:
#0 C:xampphtdocsyii2-my-app2vendoryiisoftyii2diServiceLocator.php(260):
yiidiServiceLocator->set('user', Array)
#1 C:xampphtdocsyii2-my-app2vendoryiisoftyii2aseComponent.php(172): yii
diServiceLocator->setComponents(Array)
#2 C:xampphtdocsyii2-my-app2vendoryiisoftyii2BaseYii.php(529): yiiaseC
omponent->__set('components', Array)
#3 C:xampphtdocsyii2-my-app2vendoryiisoftyii2aseObject.php(105): yiiBa
seYii::configure(Object(yiiconsoleApplication), Array)
#4 C:xampphtdocsyii2-my-app2vendoryiisoftyii2aseApplication.php(205): y
iiaseObject->__construct(Array)
#5 C:xampphtdocsyii2-my-app2vendoryiisoftyii2consoleApplication.php(89):
 yiiaseApplication->__construct(Array)
#6 C:xampphtdocsyii2-my-app2yii(26): yiiconsoleApplication->__construct(Ar
ray)
#7 {main}
PHP Core Warning 'yiiaseErrorException' with message 'Module 'openssl' alread
y loaded'

in .Unknown:0

Stack trace:
#0 [internal function]: yiiaseErrorHandler->handleFatalError()
#1 {main}

1st command runs successfully but second command gives some warning I didnt get it? can anyone fix it? and I also want to know what does this migration command exactly do

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

For the warning, check answers to this question. For the error: Yii2-user or another user extension has to be installed first and working.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...