Open Samorodek opened 9 years ago
context? also please give the error message, it seems to be missing from your post.
CException - Class WebApplication don't have method getCommandPath()
can you run other commands? looks like help command does not work in web environment
Yes, I can run help, clear and exit.
no, I mean other yiic commands, not just yiic
but yiic webapp
for example
No, yiic command don't work. I try to chage directory of yiic to 'protected' as is in HumHub.
I fixed it by change: $commandPath = Yii::app()->getBasePath().DIRECTORY_SEPARATOR.'commands'.DIRECTORY_SEPARATOR.''; to: $commandPath = Yii::app()->getBasePath().DIRECTORY_SEPARATOR.'commands'.DIRECTORY_SEPARATOR.'shell';
Welcome to Yii web shell. Type help for the list of available commands. yiic CException
"getCommandPath". ((...)/public_html/protected/vendors/yii/base/CComponent.php:265)
0 (...)//public_html/protected/vendors/yii/console/CHelpCommand.php(60): CComponent->__call('getCommandPath', Array)
1 (...)//public_html/protected/vendors/yii/console/CHelpCommand.php(60): WebApplication->getCommandPath()
2 (...)//public_html/protected/vendors/yii/console/CConsoleCommandRunner.php(67): CHelpCommand->run(Array)
3 (...)//public_html/protected/modules/webshell/controllers/DefaultController.php(72): CConsoleCommandRunner->run(Array)
4 (...)//public_html/protected/vendors/yii/web/actions/CInlineAction.php(49): DefaultController->actionYiic()
5 (...)//public_html/protected/vendors/yii/web/CController.php(308): CInlineAction->runWithParams(Array)
6 (...)//public_html/protected/vendors/yii/web/CController.php(286): CController->runAction(Object(CInlineAction))
7 (...)//public_html/protected/vendors/yii/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
8 (...)//public_html/protected/vendors/yii/web/CWebApplication.php(284): CController->run('yiic')
9 (...)//public_html/protected/vendors/yii/web/CWebApplication.php(141): CWebApplication->runController('webshell/defaul...')
10 (...)//public_html/protected/vendors/yii/base/CApplication.php(169): CWebApplication->processRequest()
11 (...)//public_html/index.php(39): CApplication->run()
12 {main}