Skip to content

Remove webprofiler from config split

I'm assigning it to you Stephen since you know the background to this. After fixing the drush error, tried again following the steps on the dev.docs https://dev.docs.agile.coop/docs/environment/setup-new/

at step 14.lando drush si ac_base --sites-subdir="default" --site-name="My new site"

gives another error:

PHP Fatal error:  Class Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\Core\Entity\EntityStorageInterface::restore) in /app/web/modules/contrib/devel/webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php on line 18
PHP Stack trace:
PHP   1. {main}() /app/vendor/drush/drush/drush:0
PHP   2. require() /app/vendor/drush/drush/drush:4
PHP   3. Drush\Runtime\Runtime->run() /app/vendor/drush/drush/drush.php:72
PHP   4. Drush\Runtime\Runtime->doRun() /app/vendor/drush/drush/src/Runtime/Runtime.php:49
PHP   5. Drush\Application->run() /app/vendor/drush/drush/src/Runtime/Runtime.php:118
PHP   6. Drush\Application->doRun() /app/vendor/symfony/console/Application.php:148
PHP   7. Drush\Application->doRunCommand() /app/vendor/symfony/console/Application.php:255
PHP   8. Consolidation\AnnotatedCommand\AnnotatedCommand->run() /app/vendor/symfony/console/Application.php:1000
PHP   9. Consolidation\AnnotatedCommand\AnnotatedCommand->execute() /app/vendor/symfony/console/Command/Command.php:255
PHP  10. Consolidation\AnnotatedCommand\CommandProcessor->process() /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:302
PHP  11. Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter() /app/vendor/consolidation/annotated-command/src/CommandProcessor.php:178
PHP  12. Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback() /app/vendor/consolidation/annotated-command/src/CommandProcessor.php:212
PHP  13. call_user_func_array:{/app/vendor/consolidation/annotated-command/src/CommandProcessor.php:257}() /app/vendor/consolidation/annotated-command/src/CommandProcessor.php:257
PHP  14. Drush\Commands\core\SiteInstallCommands->install() /app/vendor/consolidation/annotated-command/src/CommandProcessor.php:257
PHP  15. drush_op() /app/vendor/drush/drush/src/Commands/core/SiteInstallCommands.php:145
PHP  16. drush_call_user_func_array() /app/vendor/drush/drush/includes/drush.inc:214
PHP  17. install_drupal() /app/vendor/drush/drush/includes/drush.inc:229
PHP  18. install_run_tasks() /app/web/core/includes/install.core.inc:118
PHP  19. install_run_task() /app/web/core/includes/install.core.inc:577
PHP  20. install_config_revert_install_changes() /app/web/core/includes/install.core.inc:702
PHP  21. Drupal\Core\Config\ConfigImporter->import() /app/web/core/includes/install.core.inc:2425
PHP  22. Drupal\Core\Config\ConfigImporter->doSyncStep() /app/web/core/lib/Drupal/Core/Config/ConfigImporter.php:472
PHP  23. Drupal\Core\Config\ConfigImporter->processExtensions() /app/web/core/lib/Drupal/Core/Config/ConfigImporter.php:496
PHP  24. Drupal\Core\Config\ConfigImporter->processExtension() /app/web/core/lib/Drupal/Core/Config/ConfigImporter.php:559
PHP  25. Drupal\Core\ProxyClass\Extension\ModuleInstaller->install() /app/web/core/lib/Drupal/Core/Config/ConfigImporter.php:795
PHP  26. Drupal\Core\Extension\ModuleInstaller->install() /app/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
PHP  27. Drupal\Core\Entity\EntityManager->getFieldStorageDefinitions() /app/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:253
PHP  28. Drupal\Core\Entity\EntityFieldManager->getFieldStorageDefinitions() /app/web/core/lib/Drupal/Core/Entity/EntityManager.php:209
PHP  29. Drupal\Core\Entity\EntityFieldManager->getBaseFieldDefinitions() /app/web/core/lib/Drupal/Core/Entity/EntityFieldManager.php:436
PHP  30. Drupal\Core\Entity\EntityFieldManager->buildBaseFieldDefinitions() /app/web/core/lib/Drupal/Core/Entity/EntityFieldManager.php:179
PHP  31. Drupal\block_content\Entity\BlockContent::baseFieldDefinitions() /app/web/core/lib/Drupal/Core/Entity/EntityFieldManager.php:214
PHP  32. Drupal\Core\Entity\EditorialContentEntityBase::baseFieldDefinitions() /app/web/core/modules/block_content/src/Entity/BlockContent.php:180
PHP  33. Drupal\Core\Entity\EditorialContentEntityBase::revisionLogBaseFieldDefinitions() /app/web/core/lib/Drupal/Core/Entity/EditorialContentEntityBase.php:23
PHP  34. Drupal\Core\Field\BaseFieldDefinition->setDefaultValue() /app/web/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:43
PHP  35. Drupal\Core\Field\BaseFieldDefinition->getMainPropertyName() /app/web/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:490
PHP  36. Drupal\Core\Field\TypedData\FieldItemDataDefinition->getClass() /app/web/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:633
PHP  37. Drupal\Core\TypedData\TypedDataManager->getDefinition() /app/web/core/lib/Drupal/Core/TypedData/DataDefinition.php:195
PHP  38. Drupal\Core\TypedData\TypedDataManager->getDefinitions() /app/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php:22
PHP  39. Drupal\Core\TypedData\TypedDataManager->findDefinitions() /app/web/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:175
PHP  40. Drupal\Core\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator->getDefinitions() /app/web/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:284
PHP  41. Drupal\Core\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator->getDerivatives() /app/web/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php:87
PHP  42. Drupal\Core\Entity\Plugin\DataType\Deriver\EntityDeriver->getDerivativeDefinitions() /app/web/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php:101
PHP  43. Drupal\Core\Entity\EntityTypeBundleInfo->getBundleInfo() /app/web/core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php:101
PHP  44. Drupal\Core\Entity\EntityTypeBundleInfo->getAllBundleInfo() /app/web/core/lib/Drupal/Core/Entity/EntityTypeBundleInfo.php:80
PHP  45. Drupal\webprofiler\Entity\EntityManagerWrapper->getStorage() /app/web/core/lib/Drupal/Core/Entity/EntityTypeBundleInfo.php:99
PHP  46. Drupal\webprofiler\Entity\EntityManagerWrapper->getStorageDecorator() /app/web/modules/contrib/devel/webprofiler/src/Entity/EntityManagerWrapper.php:53
PHP  47. spl_autoload_call() /app/web/modules/contrib/devel/webprofiler/src/Entity/EntityManagerWrapper.php:102
PHP  48. Symfony\Component\ClassLoader\ApcClassLoader->loadClass() /app/web/modules/contrib/devel/webprofiler/src/Entity/EntityManagerWrapper.php:102
PHP  49. require() /app/vendor/symfony/class-loader/ApcClassLoader.php:112

Stephen's solution: removing webprofiler from the config split