Ошибка при запуске с Assets ./vendor/bin/yii serve

Обсуждаем разработку фреймворка: дизайн компонентов, API, пакеты
Ответить
alexa777
Сообщения: 287
Зарегистрирован: 2016.03.01, 17:38

Ошибка при запуске с Assets ./vendor/bin/yii serve

Сообщение alexa777 »

Пытаюсь запустить yii3 https://github.com/machour/yii3-kitchen-sink
Выдает эту ошибку, что не так?
Node у меня установлен
erver started on http://localhost:8080/
Document root is "public"
Quit the server with CTRL-C or COMMAND-C.
[Sat Jan 4 17:40:04 2020] PHP 7.4.1 Development Server (http://localhost:8080) started
[Sat Jan 4 17:41:31 2020] 127.0.0.1:57562 Accepted
[Sat Jan 4 17:41:31 2020] An Error occurred while handling another error:
yii\exceptions\InvalidConfigException: A circular dependency is detected for bundle 'app\assets\AppAsset'. in /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/View.php:289
Stack trace:
#0 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/AssetBundle.php(126): yii\web\View->registerAssetBundle()
#1 /home/alexa/www/local.local/src/views/layouts/main.php(12): yii\web\AssetBundle::register()
#2 /home/alexa/www/local.local/vendor/yiisoft/view/src/view/View.php(379): require('/home/alexa/www...')
#3 /home/alexa/www/local.local/vendor/yiisoft/view/src/view/View.php(248): yii\view\View->renderPhpFile()
#4 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/Controller.php(112): yii\view\View->renderFile()
#5 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/Controller.php(98): yii\web\Controller->renderContent()
#6 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/ErrorAction.php(173): yii\web\Controller->render()
#7 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/ErrorAction.php(152): yii\web\ErrorAction->renderHtmlResponse()
#8 /home/alexa/www/local.local/vendor/yiisoft/yii-core/src/base/Action.php(98): yii\web\ErrorAction->run()
#9 /home/alexa/www/local.local/vendor/yiisoft/yii-core/src/base/Controller.php(160): yii\base\Action->runWithParams()
#10 /home/alexa/www/local.local/vendor/yiisoft/yii-core/src/base/Module.php(542): yii\base\Controller->runAction()
#11 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/ErrorHandler.php(103): yii\base\Module->runAction()
#12 /home/alexa/www/local.local/vendor/yiisoft/yii-core/src/base/ErrorHandler.php(124): yii\web\ErrorHandler->renderException()
#13 [internal function]: yii\base\ErrorHandler->handleException()
#14 {main}
Previous exception:
yii\exceptions\InvalidArgumentException: The file or directory to be published does not exist: /home/alexa/www/local.local/config/../node_modules/jquery/dist in /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/AssetManager.php:468
Stack trace:
#0 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/AssetBundle.php(218): yii\web\AssetManager->publish()
#1 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/AssetManager.php(280): yii\web\AssetBundle->publish()
#2 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/AssetManager.php(251): yii\web\AssetManager->loadBundle()
#3 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/View.php(280): yii\web\AssetManager->getBundle()
#4 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/View.php(285): yii\web\View->registerAssetBundle()
#5 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/AssetBundle.php(126): yii\web\View->registerAssetBundle()
#6 /home/alexa/www/local.local/src/views/layouts/main.php(12): yii\web\AssetBundle::register()
#7 /home/alexa/www/local.local/vendor/yiisoft/view/src/view/View.php(379): require('/home/alexa/www...')
#8 /home/alexa/www/local.local/vendor/yiisoft/view/src/view/View.php(248): yii\view\View->renderPhpFile()
#9 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/Controller.php(112): yii\view\View->renderFile()
#10 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/Controller.php(98): yii\web\Controller->renderContent()
#11 /home/alexa/www/local.local/src/controllers/SiteController.php(41): yii\web\Controller->render()
#12 /home/alexa/www/local.local/vendor/yiisoft/yii-core/src/base/InlineAction.php(56): app\controllers\SiteController->actionIndex()
#13 /home/alexa/www/local.local/vendor/yiisoft/yii-core/src/base/Controller.php(160): yii\base\InlineAction->runWithParams()
#14 /home/alexa/www/local.local/vendor/yiisoft/yii-core/src/base/Module.php(542): yii\base\Controller->runAction()
#15 /home/alexa/www/local.local/vendor/yiisoft/yii-web/src/Application.php(94): yii\base\Module->runAction()
#16 /home/alexa/www/local.local/vendor/yiisoft/yii-core/src/base/Application.php(544): yii\web\Application->handleRequest()
#17 /home/alexa/www/local.local/public/index.php(22): yii\base\Application->run()
#18 /home/alexa/www/local.local/public/index.php(23): {closure}()
#19 {main}
$_SERVER = [
'DOCUMENT_ROOT' => '/home/alexa/www/local.local/public',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '57562',
'SERVER_SOFTWARE' => 'PHP 7.4.1 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8080',
'REQUEST_URI' => '/',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/home/alexa/www/local.local/public/index.php',
'PHP_SELF' => '/index.php',
'HTTP_HOST' => 'localhost:8080',
'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0',
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_LANGUAGE' => 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',
'REQUEST_TIME_FLOAT' => 1578148891.515026,
'REQUEST_TIME' => 1578148891,
'ENV' => 'prod',
'HOSTS' => 'local.local,www.local.local',
]
[Sat Jan 4 17:41:31 2020] 127.0.0.1:57562 [500]: GET /
[Sat Jan 4 17:41:31 2020] 127.0.0.1:57562 Closing
[Sat Jan 4 17:45:42 2020] 127.0.0.1:57700 Accepted
[Sat Jan 4 17:45:48 2020] 127.0.0.1:57700 Closed without sending a request; it was probably just an unused speculative preconnection
[Sat Jan 4 17:45:48 2020] 127.0.0.1:57700 Closing

Аватара пользователя
samdark
Администратор
Сообщения: 9262
Зарегистрирован: 2009.04.02, 13:46
Откуда: Воронеж
Контактная информация:

Re: Ошибка при запуске с Assets ./vendor/bin/yii serve

Сообщение samdark »


alexa777
Сообщения: 287
Зарегистрирован: 2016.03.01, 17:38

Re: Ошибка при запуске с Assets ./vendor/bin/yii serve

Сообщение alexa777 »

samdark писал(а):
2020.01.04, 20:44
Запускайте https://github.com/yiisoft/yii-demo
Попробовал, composer install под конец выдает ошибку
Writing lock file
Generating autoload files
Assembling config files
PHP Fatal error: Uncaught Error: Call to undefined function Opis\Closure\token_get_all() in /home/alexa/www/local.local/vendor/opis/closure/src/ReflectionClosure.php:707
Stack trace:
#0 /home/alexa/www/local.local/vendor/opis/closure/src/ReflectionClosure.php(719): Opis\Closure\ReflectionClosure->getFileTokens()
#1 /home/alexa/www/local.local/vendor/opis/closure/src/ReflectionClosure.php(123): Opis\Closure\ReflectionClosure->getTokens()
#2 /home/alexa/www/local.local/vendor/hiqdev/composer-config-plugin/src/ClosureEncoder.php(44): Opis\Closure\ReflectionClosure->getCode()
#3 /home/alexa/www/local.local/vendor/riimu/kit-phpencoder/src/PHPEncoder.php(229): hiqdev\composer\config\ClosureEncoder->encode()
#4 /home/alexa/www/local.local/vendor/riimu/kit-phpencoder/src/PHPEncoder.php(188): Riimu\Kit\PHPEncoder\PHPEncoder->encodeValue()
#5 /home/alexa/www/local.local/vendor/riimu/kit-phpencoder/src/PHPEncoder.php(185): Riimu\Kit\PHPEncoder\PHPEncoder->generate()
#6 /home/alexa/www/local.local/vendor/riimu/kit-phpencoder/src/Encoder/ in /home/alexa/www/local.local/vendor/opis/closure/src/ReflectionClosure.php on line 707

Fatal error: Uncaught Error: Call to undefined function Opis\Closure\token_get_all() in /home/alexa/www/local.local/vendor/opis/closure/src/ReflectionClosure.php:707
Stack trace:
#0 /home/alexa/www/local.local/vendor/opis/closure/src/ReflectionClosure.php(719): Opis\Closure\ReflectionClosure->getFileTokens()
#1 /home/alexa/www/local.local/vendor/opis/closure/src/ReflectionClosure.php(123): Opis\Closure\ReflectionClosure->getTokens()
#2 /home/alexa/www/local.local/vendor/hiqdev/composer-config-plugin/src/ClosureEncoder.php(44): Opis\Closure\ReflectionClosure->getCode()
#3 /home/alexa/www/local.local/vendor/riimu/kit-phpencoder/src/PHPEncoder.php(229): hiqdev\composer\config\ClosureEncoder->encode()
#4 /home/alexa/www/local.local/vendor/riimu/kit-phpencoder/src/PHPEncoder.php(188): Riimu\Kit\PHPEncoder\PHPEncoder->encodeValue()
#5 /home/alexa/www/local.local/vendor/riimu/kit-phpencoder/src/PHPEncoder.php(185): Riimu\Kit\PHPEncoder\PHPEncoder->generate()
#6 /home/alexa/www/local.local/vendor/riimu/kit-phpencoder/src/Encoder/ in /home/alexa/www/local.local/vendor/opis/closure/src/ReflectionClosure.php on line 707

alexa777
Сообщения: 287
Зарегистрирован: 2016.03.01, 17:38

Re: Ошибка при запуске с Assets ./vendor/bin/yii serve

Сообщение alexa777 »

ура заработало, у меня не было в php.ini влючено расширение extension=tokenizer

Ответить