If you have an existing Yii2 advanced app install and have done a composer update after Jan 11th - your app may be broken. To fix I changed the following line in [font="Lucida Console"]index.php[/font] for your frontend and backend:
Change following line from:
require(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php');
To:
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
There are some more changes, see index.php from app templates.
samdark
(Alexander Makarov)
January 12, 2014, 3:36pm
3
After doing so delete "composer.lock", and everything except ".gitignore" from "vendor". Then do "composer install --prefer-dist".
CeBe
January 12, 2014, 8:51pm
4
Also need to update the console yii file. Changes are similar to the index.php.
Did not see any other change in index.php other than location of Yii.php. Will check the other options suggested above.
Davey
(Davey975)
January 13, 2014, 12:57pm
6
I also get this error on the debug page, any fix for that?
The file or directory to be published does not exist: D:\server\projects\myproject\vendor\yiisoft\yii2/debug/assets
Davey
(Davey975)
January 13, 2014, 1:20pm
8
CeBe:
Have you tried this?
Ah thanks, yes, it’s working again now!