yiiext / webshell-module

A web shell that allows to run yiic commands and create your own commands.
http://www.yiiframework.com/extension/webshell/
BSD 3-Clause "New" or "Revised" License
16 stars 11 forks source link

HumHub error #4

Open Samorodek opened 9 years ago

Samorodek commented 9 years ago

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}

cebe commented 9 years ago

context? also please give the error message, it seems to be missing from your post.

Samorodek commented 9 years ago

CException - Class WebApplication don't have method getCommandPath()

cebe commented 9 years ago

can you run other commands? looks like help command does not work in web environment

Samorodek commented 9 years ago

Yes, I can run help, clear and exit.

cebe commented 9 years ago

no, I mean other yiic commands, not just yiic but yiic webapp for example

Samorodek commented 9 years ago

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';