I'v just updated from v. 3.2.1 to v. 3.3.1 and now I get this error.
In this file: modules/contrib/admin_toolbar/admin_toolbar_tools/src/AdminToolbarToolsHelper.php, class AdminToolbarToolsHelper:
In v. 3.2.1: __construct(EntityTypeManagerInterface $entity_type_manager, LocalTaskManager $local_task_manager, RouteMatchInterface $route_match)
3 arguments
In v. 3.3.1: __construct(EntityTypeManagerInterface $entity_type_manager, LocalTaskManagerInterface $local_task_manager, RouteMatchInterface $route_match, ConfigFactoryInterface $config_factory)
4 arguments
I can not run update.php with version 3.3.1 because of error:
ArgumentCountError: Too few arguments to function Drupal\admin_toolbar_tools\AdminToolbarToolsHelper::__construct(), 3 passed in /var/www/dit-veterantog.dk/d091/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 4 expected in Drupal\admin_toolbar_tools\AdminToolbarToolsHelper->__construct() (line 63 of modules/contrib/admin_toolbar/admin_toolbar_tools/src/AdminToolbarToolsHelper.php).
Comments
Comment #2
ressaCan you update with Drush?
Comment #3
uv516 commentedI don't use Drush but Composer with -W
Comment #4
dave reidIf you don't use Drush you must immediately load yoursite.com/update.php after doing a composer update.
Comment #5
uv516 commented1. Update via composer
2. Run update.php
Result: Error!
Comment #6
marysalome commentedI also had this PHP error but it didn't prevent me from updating the database and when I did, the error went away. Uv516, in case it helps, I think he means to try updating the database using drush rather than through the browser. You can do this even though you use composer to install the module. Sometimes drush works when the interface doesn't. Just ignore if this isn't helpful.
Comment #7
adriancidI'm not able to reproduce the problem.