Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибка при запуске cms/init #77

Open
porcelanosa opened this issue Nov 5, 2017 · 2 comments
Open

Ошибка при запуске cms/init #77

porcelanosa opened this issue Nov 5, 2017 · 2 comments

Comments

@porcelanosa
Copy link

Ставим проект магазина

composer create-project --no-install --prefer-dist skeeks/app-shop skeeks-demo.dev
Installing skeeks/app-shop (1.1.1)
  - Installing skeeks/app-shop (1.1.1): Downloading (100%)
Created project in skeeks-demo.dev

все ОК -
composer -install проходит без проблема
В конце запускается postInstall

 skeeks\cms\console\Composer::postInstall
        postInstall
                tmp web config is generated
                tmp console config is generated

Дальше ошибка вот такая:

yii cms/init
Exception 'yii\base\InvalidConfigException' with message 'The configuration for the "cmsAgent" component must contain a "class" element.'

in E:\domains\skeeks-demo.dev\vendor\yiisoft\yii2\di\ServiceLocator.php:202

Stack trace:
#0 E:\domains\skeeks-demo.dev\vendor\yiisoft\yii2\di\ServiceLocator.php(258): yii\di\ServiceLocator->set('cmsAgent', Array)
#1 E:\domains\skeeks-demo.dev\vendor\yiisoft\yii2\base\Component.php(169): yii\di\ServiceLocator->setComponents(Array)
#2 E:\domains\skeeks-demo.dev\vendor\yiisoft\yii2\BaseYii.php(521): yii\base\Component->__set('components', Array)
#3 E:\domains\skeeks-demo.dev\vendor\yiisoft\yii2\base\Object.php(105): yii\BaseYii::configure(Object(yii\console\Application), Array)
#4 E:\domains\skeeks-demo.dev\vendor\yiisoft\yii2\base\Application.php(206): yii\base\Object->__construct(Array)
#5 E:\domains\skeeks-demo.dev\vendor\yiisoft\yii2\console\Application.php(89): yii\base\Application->__construct(Array)
#6 E:\domains\skeeks-demo.dev\vendor\skeeks\cms\app-console.php(25): yii\console\Application->__construct(Array)
#7 E:\domains\skeeks-demo.dev\yii(22): include('E:\\domains\\skee...')
#8 {main}
@skeeks-semenov
Copy link
Member

COMPOSER_HOME=.composer php composer.phar create-project --prefer-dist --stability=dev skeeks/app-shop-smarty demo.ru

Поставьте этот магазин. Этот работает. skeeks/app-shop - нужно обновить до актуальной версии cms

@mfilin
Copy link

mfilin commented Sep 10, 2018

Доброго дня. Какой установкой лучше пользоваться? После установки basic и shop-smarty лезут ошибки такого рода Fatal error: Cannot use yii\base\Object as Object because 'Object' is a special class name in \vendor\skeeks\yii2-ckeditor\src\CKEditorPresets.php on line 11.

И как реагировать на такие ошибки, ведь это нужно фиксить, заменяя Object от yii2 на BaseObject...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants