Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HumHub error #4

Open
Samorodek opened this issue Nov 1, 2014 · 6 comments
Open

HumHub error #4

Samorodek opened this issue Nov 1, 2014 · 6 comments

Comments

@Samorodek
Copy link

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
Copy link
Member

cebe commented Nov 1, 2014

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

@Samorodek
Copy link
Author

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

@cebe
Copy link
Member

cebe commented Nov 1, 2014

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

@Samorodek
Copy link
Author

Yes, I can run help, clear and exit.

@cebe
Copy link
Member

cebe commented Nov 1, 2014

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

@Samorodek
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants