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

Error occurs when executing php craft schematic/import #26

Closed
ricdev opened this issue Sep 13, 2018 · 0 comments
Closed

Error occurs when executing php craft schematic/import #26

ricdev opened this issue Sep 13, 2018 · 0 comments
Assignees
Labels
Bug Report Something isn't working

Comments

@ricdev
Copy link

ricdev commented Sep 13, 2018

Process:

  • Install spoon in plugin.
  • run on command line to export data, php craft schematic/export.
  • then run to verify data, php craft schematic/import.

Errors:

  • Installing plugin spoon
    Exception 'ReflectionException' with message 'Class array does not exist'
    in /media/sf_htdocs/back-end/vendor/yiisoft/yii2/di/Container.php:428

Stack trace:

#0 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/di/Container.php(428): ReflectionClass->__construct('array')
#1 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/di/Container.php(364): yii\di\Container->getDependencies('array')
#2 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('array', Array, Array)
#3 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('array', Array, Array)
#4 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/validators/Validator.php(226): yii\BaseYii::createObject(Array)
#5 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/base/Model.php(458): yii\validators\Validator::createValidator('array', Object(angellco\spoon\models\Settings), Array, Array)
#6 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/base/Model.php(420): yii\base\Model->createValidators()
#7 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/base/Model.php(189): yii\base\Model->getValidators()
#8 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/base/Model.php(354): yii\base\Model->scenarios()
#9 /media/sf_htdocs/back-end/vendor/craftcms/cms/src/services/Plugins.php(586): yii\base\Model->validate()
#10 /media/sf_htdocs/back-end/vendor/nerds-and-company/schematic/src/Mappers/PluginMapper.php(114): craft\services\Plugins->savePluginSettings(Object(angellco\spoon\Spoon), Array)
#11 /media/sf_htdocs/back-end/vendor/nerds-and-company/schematic/src/Mappers/PluginMapper.php(74): NerdsAndCompany\Schematic\Mappers\PluginMapper->savePlugin('spoon', Array, Array)
#12 /media/sf_htdocs/back-end/vendor/nerds-and-company/schematic/src/Controllers/ImportController.php(88): NerdsAndCompany\Schematic\Mappers\PluginMapper->import(Array, Array)
#13 /media/sf_htdocs/back-end/vendor/nerds-and-company/schematic/src/Controllers/ImportController.php(49): NerdsAndCompany\Schematic\Controllers\ImportController->importFromYaml(Array)
#14 [internal function]: NerdsAndCompany\Schematic\Controllers\ImportController->actionIndex()
#15 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#16 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#17 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/console/Controller.php(148): yii\base\Controller->runAction('', Array)
#18 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/base/Module.php(528): yii\console\Controller->runAction('', Array)
#19 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('schematic/impor...', Array)
#20 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction('schematic/impor...', Array)
#21 /media/sf_htdocs/back-end/vendor/yiisoft/yii2/base/Application.php(386): yii\console\Application->handleRequest(Object(craft\console\Request))
#22 /media/sf_htdocs/back-end/craft(22): yii\base\Application->run()
#23 {main}
@joshangell joshangell self-assigned this Sep 13, 2018
@joshangell joshangell added the Bug Report Something isn't working label Sep 13, 2018
joshangell added a commit that referenced this issue Sep 13, 2018
- Added support for static translations ([#22](#22)).

- Fixed an issue where the Settings model wasn’t referencing the correct array validator class and was throwing an error when using the Schematic plugin ([#26](#26) and [#14](#14)).

* tag '3.2.1':
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants