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

Uv516 created an issue. See original summary.

ressa’s picture

Can you update with Drush?

$ drush updatedb

 --------------------- -----------------------------
  Module                Update ID                   
 --------------------- -----------------------------
  admin_toolbar_tools   helper_added_config_factory 
 --------------------- -----------------------------

 ------------- ----------------------------- 
  Type          Description                  
 ------------- ----------------------------- 
  post-update   Update container for
                admin_toolbar_tools.helper
                arguments.
 ------------- ----------------------------- 


 Do you wish to run the specified pending updates? (yes/no) [yes]:
 > y

>  [notice] Update started: admin_toolbar_tools_post_update_helper_added_config_factory
>  [notice] Update completed: admin_toolbar_tools_post_update_helper_added_config_factory
 [success] Finished performing updates.

uv516’s picture

I don't use Drush but Composer with -W

dave reid’s picture

If you don't use Drush you must immediately load yoursite.com/update.php after doing a composer update.

uv516’s picture

I can not run update.php with version 3.3.1 because of error:

1. Update via composer
2. Run update.php
Result: Error!

marysalome’s picture

I 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.

adriancid’s picture

Status: Active » Closed (works as designed)

I'm not able to reproduce the problem.