

in C:\xampp\htdocs\vendor\yiisoft\yii2\base\Module.php at line 455 – yii\base\Controller::runAction('index', )ĩ. in C:\xampp\htdocs\vendor\yiisoft\yii2\base\Controller.php at line 151 – yii\base\InlineAction::runWithParams()Ĩ. in C:\xampp\htdocs\vendor\yiisoft\yii2\base\InlineAction.php at line 55 – call_user_func_array(, )ħ. in C:\xampp\htdocs\controllers\SiteController.php at line 58 – yii\base\Controller::render('index')ĥ. in C:\xampp\htdocs\vendor\yiisoft\yii2\base\Controller.php at line 371 – yii\base\View::render('index',, app\controllers\SiteController)Ĥ. in C:\xampp\htdocs\vendor\yiisoft\yii2\base\View.php at line 149 – yii\base\View::renderFile('C:\xampp\htdocs\.',, app\controllers\SiteController)ģ. in C:\xampp\htdocs\vendor\yiisoft\yii2\base\View.php at line 226Ģ. Return $this->renderFile($viewFile, $params, $context) Īnd $viewFile returns the path which can't be found ( views\site\index.php).Īlso, in SiteController.php, $this->viewPath is C:\xampp\htdocs\views\site (which it shouldn't.?) $viewFile = $this->findViewFile($view, $context)

I guess it has something to do with url rewriting, but nothing happened after adding an urlManager component to /config/web.php (which I removed after trying)Īlso, in \vendor\yiisoft\yii2\base\View.php there's this code: public function render($view, $params =, $context = null) I removed the /views/site/error.php file, but the problem persists. I created that php file, but then the problem described above occurred. That instantly showed an error that /views/site/error.php did not exist. Moreover, it started when I started throwing some UserExceptions (To show some invalid post requests and such). Why is this happening and what can I do against it? Also, since I do not know where to search, I probably haven't posted the correct code to analyze, but of course I can add code when necessary. Part of controllers/SiteController.php: public function actions()Īlso, in config/web.php I have no urlManager component. However, I've been able to navigate my site with since I started using Yii2, and I haven't been editing configuration files for quite some time, so I don't know why this started happening. The view file does not exist: C:\xampp\htdocs\views\site\index.php Invalid Parameter – yii\base\InvalidParamException However, today, for a reason I do not know, Yii's been routing me to the wrong page, causing errors because web pages have not been found: URL: I've been using Yii2 for a few weeks now, and getting the hang of it.
