Argument 2 passed to Symfony\Component\HttpKernel\Event\FilterControllerEvent::__construct() must be callable Read more about Argument 2 passed to Symfony\Component\HttpKernel\Event\FilterControllerEvent::__construct() must be callable The following error occured to me in a custom controller: TypeError: Argument 2 passed to Symfony\Component\HttpKernel\Event\FilterControllerEvent::__construct() must be callable, object given, called in /var/www/html/vendor/symfony/http-kernel/HttpKernel.php on line 145 in Symfony\Component\HttpKernel\Event\FilterControllerEvent->__construct() (line 24 of /var/www/html/vendor/symfony/http-kernel/Event/FilterControllerEvent.php).
Controller\ ::__construct(), 0 passed in /var/www/html/web/core/lib/Drupal/Core/Controller/ControllerBase.php on line 109 Read more about Controller\ ::__construct(), 0 passed in /var/www/html/web/core/lib/Drupal/Core/Controller/ControllerBase.php on line 109 This error occurs when trying to user services in your constructor in drupal. If you want to do something like this, you'd have to make sure your container is right. Check out this code, make sure you use the create() method to instantiate the container object. https://chromatichq.com/blog/dependency-injection-drupal-8-plugins
The entity type [entity name] does not have an “revision_created” entity revision metadata key Read more about The entity type [entity name] does not have an “revision_created” entity revision metadata key This error occurs sometimes when creating/uninstalling custom entities in drupal 8 or 9. Solution The error occurs when you try to create an entity that extends: EditorialContentEntityType When using one of these, you must user revisions. Thus then you need to add: