Too few arguments to function Drupal\admin_toolbar_tools\AdminToolbarToolsHelper

Created on 29 April 2023, over 1 year ago
Updated 10 May 2023, over 1 year ago

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

πŸ› Bug report
Status

Closed: works as designed

Version

3.3

Component

Code

Created by

πŸ‡©πŸ‡°Denmark Uv516 Denmark

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Uv516
  • πŸ‡©πŸ‡°Denmark ressa Copenhagen

    Can you update with Drush?

    $ drush updatedb
     --------------------- ----------------------------- ------------- ----------------------------- 
      Module                Update ID                     Type          Description                                      
     --------------------- ----------------------------- ------------- ----------------------------- 
      admin_toolbar_tools   helper_added_config_factory   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.
    
  • πŸ‡©πŸ‡°Denmark Uv516 Denmark

    I don't use Drush but Composer with -W

  • πŸ‡ΊπŸ‡ΈUnited States dave reid Nebraska USA

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

  • πŸ‡©πŸ‡°Denmark Uv516 Denmark

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

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

  • πŸ‡ΊπŸ‡ΈUnited States marysalome

    I also had this error but it didn't stop 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.

  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡¨πŸ‡¦Canada adriancid Montreal, Canada

    I'm not able to reproduce the problem.

Production build 0.71.5 2024