Yii Framework Forum: Console problem with "php yii" - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Console problem with "php yii" 'Unable to determine the request URI.' Rate Topic: -----

#1 User is offline   DesRodman 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 13-June 15

Posted 30 August 2017 - 10:16 AM

Good day.

I have yii2 v2.0.12 avdanced
Installed i18n like here

After that - removed project to other server... Installed all vendors and so on

and now have error after command "php yii"
[root@226 workflow]# php yii
Exception 'yii\base\InvalidConfigException' with message 'Unable to determine the request URI.'

in /var/www/workflow/vendor/yiisoft/yii2/web/Request.php:858

Stack trace:
#0 /var/www/workflow/vendor/yiisoft/yii2/web/Request.php(818): yii\web\Request->resolveRequestUri()
#1 /var/www/workflow/common/components/LangRequest.php(16): yii\web\Request->getUrl()
#2 /var/www/workflow/common/components/LangRequest.php(32): common\components\LangRequest->getLangUrl()
#3 /var/www/workflow/vendor/yiisoft/yii2/web/Request.php(727): common\components\LangRequest->resolvePathInfo()
#4 /var/www/workflow/vendor/yiisoft/yii2/web/UrlManager.php(289): yii\web\Request->getPathInfo()
#5 /var/www/workflow/vendor/yiisoft/yii2/web/Request.php(184): yii\web\UrlManager->parseRequest(Object(common\components\LangRequest))
#6 /var/www/workflow/vendor/yiisoft/yii2/console/Application.php(145): yii\web\Request->resolve()
#7 /var/www/workflow/vendor/yiisoft/yii2/base/Application.php(380): yii\console\Application->handleRequest(Object(common\components\LangRequest))
#8 /var/www/workflow/yii(27): yii\base\Application->run()
#9 {main}


Cant find solvation...

How can i fix it?

thanks
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 30 August 2017 - 02:33 PM

Seems your environment is using web PHP binary for command line. It's wrong and correct binary should be used instead.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users