After upgrading from Drupal 8.4 beta 1 to Drupal 8.4 RC1 we get the following error when reinstalling the site :
Warning: array_filter(): An error occurred while invoking the filter callback in /core/lib/Drupal/Core/Entity/Entity.php on line 339
Call Stack:
0.0002 228960 1. {main}() /vendor/drush/drush/drush:0
0.0003 231640 2. require('/vendor/drush/drush/drush.php') /vendor/drush/drush/drush:4
0.0014 450384 3. drush_main() /vendor/drush/drush/drush.php:10
0.2875 13990064 4. Drush\Boot\BaseBoot->bootstrapAndDispatch() /vendor/drush/drush/includes/preflight.inc:80
0.3124 13115528 5. drush_dispatch() /vendor/drush/drush/src/Boot/BaseBoot.php:92
0.3144 13156232 6. call_user_func_array:{/vendor/drush/drush/includes/command.inc:196}() /vendor/drush/drush/includes/command.inc:196
0.3144 13156776 7. annotationcommand_adapter_process_command() /vendor/drush/drush/includes/command.inc:196
0.3401 14385144 8. Consolidation\AnnotatedCommand\CommandProcessor->process() /vendor/drush/drush/includes/annotationcommand_adapter.inc:243
0.3401 14385480 9. Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter() /vendor/consolidation/annotated-command/src/CommandProcessor.php:151
43.8874 16377160 10. Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback() /vendor/consolidation/annotated-command/src/CommandProcessor.php:181
43.8874 16378072 11. call_user_func_array:{/vendor/consolidation/annotated-command/src/CommandProcessor.php:235}() /vendor/consolidation/annotated-command/src/CommandProcessor.php:235
43.8874 16378952 12. Drush\Commands\core\SiteInstallCommands->install() /vendor/consolidation/annotated-command/src/CommandProcessor.php:235
43.8909 16797024 13. drush_op() /vendor/drush/drush/src/Commands/core/SiteInstallCommands.php:122
43.8909 16797952 14. drush_call_user_func_array() /vendor/drush/drush/includes/drush.inc:628
43.8909 16798168 15. install_drupal() /vendor/drush/drush/includes/drush.inc:643
45.0678 36164552 16. install_run_tasks() /core/includes/install.core.inc:117
52.5005 63078000 17. install_run_task() /core/includes/install.core.inc:540
52.7354 65401824 18. batch_process() /core/includes/install.core.inc:619
52.7378 65483888 19. _batch_process() /core/includes/form.inc:875
168.7292 232319352 20. call_user_func_array:{/core/includes/batch.inc:294}() /core/includes/batch.inc:294
168.7292 232319392 21. config_install_batch_process() /core/includes/batch.inc:294
168.7292 232319392 22. Drupal\Core\Config\ConfigImporter->doSyncStep() /profiles/contrib/config_installer/config_installer.profile:139
168.7293 232319392 23. Drupal\Core\Config\ConfigImporter->processConfigurations() /core/lib/Drupal/Core/Config/ConfigImporter.php:488
168.7351 232320008 24. Drupal\Core\Config\ConfigImporter->checkOp() /core/lib/Drupal/Core/Config/ConfigImporter.php:583
168.7364 232320768 25. Drupal\Core\Entity\Entity->delete() /core/lib/Drupal/Core/Config/ConfigImporter.php:865
168.7364 232321096 26. Drupal\Core\Entity\EntityStorageBase->delete() /core/lib/Drupal/Core/Entity/Entity.php:385
168.7548 232584936 27. Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook() /core/lib/Drupal/Core/Entity/EntityStorageBase.php:359
168.7548 232585416 28. Drupal\Core\Extension\ModuleHandler->invokeAll() /core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:371
168.7548 232586312 29. call_user_func_array:{/core/lib/Drupal/Core/Extension/ModuleHandler.php:402}() /core/lib/Drupal/Core/Extension/ModuleHandler.php:402
168.7548 232586736 30. menu_link_content_entity_predelete() /core/lib/Drupal/Core/Extension/ModuleHandler.php:402
168.7548 232586736 31. Drupal\Core\Entity\Entity->uriRelationships() /core/modules/menu_link_content/menu_link_content.module:92
168.7549 232588328 32. array_filter() /core/lib/Drupal/Core/Entity/Entity.php:339
[error] Some mandatory parameters are missing ("entity_type_id") to generate a URL for route "entity.entity_view_mode.add_form"
Comments
Comment #2
mpp commentedComment #3
cilefen commentedWe don't ship anything in the vendor/consolidation namespace—it looks like drush/drush needs it. Still, that's not good.
Comment #4
mpp commentedClosing this one as it seems to be a duplicate of https://www.drupal.org/node/2907654
An exception is thrown (MissingMandatoryParametersException) in the anonymous function in array_filter(). In turn this results in a warning.
For further details about the warning, see https://bugs.php.net/bug.php?id=68686