Yii2 Basic Setup Fail / Bug (Dev Version)

Hi,

I don’t have github account. But I think there are some “bug” in the Yii2 basic.

I have installed it by the Composer. The installation was successful.The newest dev version.

Then I went to the ‘localhost/yii-basic/web/’, but in the browser I got a totally blank page. Then I used the xDebug tool.

It gave me this error:


Fatal error: require(): Failed opening required '/var/www/yii-basic/vendor/yiisoft/yii2/../../yii2-dev/framework/Yii.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/yii-basic/vendor/yiisoft/yii2/Yii.php on line 10

Call Stack

#	Time	Memory	Function	Location

1	0.0001	229440	{main}( )	../index.php:0

2	0.0008	261192	require( '/var/www/yii-basic/vendor/yiisoft/yii2/Yii.php' )	../index.php:10

Okay, then I went to that file.

This is was the problem:


return require(__DIR__ . '/../../yii2-dev/framework/Yii.php');

I fixed to:


return require(__DIR__ . '/../yii2-dev/framework/Yii.php');

Then after it I gave the original Yii error site (So, my modification worked :))

But I got this error:




nvalid Parameter – yii\base\InvalidParamException

The file or directory to be published does not exist: /var/www/yii-basic/vendor/twbs/bootstrap/dist


    1. in /var/www/yii-basic/vendor/yiisoft/yii2-dev/framework/web/AssetManager.php at line 232

    


                return $this->_published[$path];

            }

     

            $src = realpath($path);

            if ($src === false) {

                throw new InvalidParamException("The file or directory to be published does not exist: $path");

            }

     

            if (is_file($src)) {

                $dir = $this->hash(dirname($src) . filemtime($src));

                $fileName = basename($src);


.....



Should I fix it, or wait?




Invalid Parameter – yii\base\InvalidParamException

The file or directory to be published does not exist: /var/www/yii-basic/vendor/twbs/bootstrap/dist

.....



make sure there is bootsrap folder in /var/www/yii-basic/vendor/twbs.

try composer update at yii-basic folder. i have the same problem and now is fixed.