-
-
Notifications
You must be signed in to change notification settings - Fork 553
Open
Milestone
Description
Problem/Motivation
When trying to export my config the console runs into an error. That happens for every content type i'm trying to export.
- Drupal version 8.6.11
- Console version 1.8.0
- Console Launcher version 1.8.0
- other people with the same problem: drupal.org
- reproduce with any content-type export and the given versions
Errors
[ERROR] <em class="placeholder">Warning</em>: call_user_func_array() expects parameter 1 to be a valid callback,
class 'SplFileInfo' does not have a method 'serialize' in <em
class="placeholder">Drupal\Core\Extension\Extension->__call()</em> (line <em class="placeholder">160</em>
of <em class="placeholder">core/lib/Drupal/Core/Extension/Extension.php</em>). <pre
class="backtrace">Drupal\Core\Extension\Extension->__call('serialize', Array) (Line: 314)
Drupal\Console\Extension\Manager->createExtension(Object) (Line: 251)
Drupal\Console\Extension\Manager->getModule('address') (Line: 86)
Drupal\Console\Command\Config\ExportContentTypeCommand->exportConfigToModule('address',
'Exporting content type') (Line: 183)
Drupal\Console\Command\Config\ExportContentTypeCommand->execute(Object, Object) (Line: 255)
Symfony\Component\Console\Command\Command->run(Object, Object) (Line: 978)
Symfony\Component\Console\Application->doRunCommand(Object, Object, Object) (Line: 255)
Symfony\Component\Console\Application->doRun(Object, Object) (Line: 185)
Drupal\Console\Core\Application->doRun(Object, Object) (Line: 64)
Drupal\Console\Application->doRun(Object, Object) (Line: 148)
Symfony\Component\Console\Application->run() (Line: 89)
require('/var/app/current/vendor/drupal/console/bin/drupal.php') (Line: 4)
</pre>
[ERROR] <em class="placeholder">Warning</em>: call_user_func_array() expects parameter 1 to be a valid callback,
class 'SplFileInfo' does not have a method 'unserialize' in <em
class="placeholder">Drupal\Core\Extension\Extension->__call()</em> (line <em class="placeholder">160</em>
of <em class="placeholder">core/lib/Drupal/Core/Extension/Extension.php</em>). <pre
class="backtrace">Drupal\Core\Extension\Extension->__call('unserialize', Array) (Line: 314)
Drupal\Console\Extension\Manager->createExtension(Object) (Line: 251)
Drupal\Console\Extension\Manager->getModule('address') (Line: 86)
Drupal\Console\Command\Config\ExportContentTypeCommand->exportConfigToModule('address',
'Exporting content type') (Line: 183)
Drupal\Console\Command\Config\ExportContentTypeCommand->execute(Object, Object) (Line: 255)
Symfony\Component\Console\Command\Command->run(Object, Object) (Line: 978)
Symfony\Component\Console\Application->doRunCommand(Object, Object, Object) (Line: 255)
Symfony\Component\Console\Application->doRun(Object, Object) (Line: 185)
Drupal\Console\Core\Application->doRun(Object, Object) (Line: 64)
Drupal\Console\Application->doRun(Object, Object) (Line: 148)
Symfony\Component\Console\Application->run() (Line: 89)
require('/var/app/current/vendor/drupal/console/bin/drupal.php') (Line: 4)
</pre>
Example Log
[ec2-user@ip-123-45-67-890 current]$ drupal config:export:content:type page
Enter the module name [address]:
>
Export content type in module as an optional configuration (yes/no) [yes]:
> no
commands.config.export.content.type.questions.remove-uuid (yes/no) [yes]:
>
commands.config.export.content.type.questions.remove-config-hash (yes/no) [yes]:
>
Exporting content type
- modules/contrib/address/config/install/node.type.page.yml
- modules/contrib/address/config/install/field.field.node.page.body.yml
- modules/contrib/address/config/install/field.storage.node.body.yml
- modules/contrib/address/config/install/core.entity_form_display.node.page.default.yml
- modules/contrib/address/config/install/core.entity_view_display.node.page.default.yml
- modules/contrib/address/config/install/core.entity_view_display.node.page.teaser.yml
- modules/contrib/address/config/install/core.entity_view_mode.node.teaser.yml
Solutions
Didn't tried something yet.
audifaxdev, chrissnyder2337, taivu, ndouglas and sgoelz
Metadata
Metadata
Assignees
Labels
No labels