yii2: Codeception - Unable to determine the request URI

Get this error after the test is completed:

PHP Fatal error:  Uncaught exception 'yii\base\InvalidConfigException' with mess
age 'Unable to determine the request URI.' in C:\open_server\OpenServer\domains\
site.ru\protected\vendor\yiisoft\yii2\web\Request.php:767
Stack trace:
#0 C:\open_server\OpenServer\domains\site.ru\protected\vendor\yiisoft\yii2\web\
Request.php(727): yii\web\Request->resolveRequestUri()
#1 C:\open_server\OpenServer\domains\site.ru\protected\vendor\yiisoft\yii2\web\
Request.php(712): yii\web\Request->getUrl()
#2 C:\open_server\OpenServer\domains\site.ru\protected\vendor\yiisoft\yii2-debu
g\LogTarget.php(140): yii\web\Request->getAbsoluteUrl()
#3 C:\open_server\OpenServer\domains\site.ru\protected\vendor\yiisoft\yii2-debu
g\LogTarget.php(50): yii\debug\LogTarget->collectSummary()
#4 C:\open_server\OpenServer\domains\site.ru\protected\vendor\yiisoft\yii2-debu
g\LogTarget.php(111): yii\debug\LogTarget->export(Array)
#5 C:\open_server\OpenServer\domains\site.ru\protected\vendor\yiisoft\yii2\log\
Dispatcher.php(179): yii\debug\LogTarget->collect(Array, tr in C:\open_server\Op
enServer\domains\site.ru\protected\vendor\yiisoft\yii2\web\Request.php on line
767

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 16 (16 by maintainers)

Most upvoted comments

Try disabling the “debug” module (this is not needed for tests anyway).