Too few arguments to function Drupal\linkchecker\Commands\LinkCheckerCommands::__construct()

Created on 29 May 2019, over 5 years ago
Updated 19 September 2024, 3 months ago

Using drupal-8.7.2, linkchecker-8.x-1.x-dev (29 May 2019), dynamic_entity_reference-8.x-1.7.

After install, Status Report shows:

LinkChecker link type

    The LinkChecker link type entity type needs to be installed.

1. Running cron from Status Report page generates dblog error:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal.linkchecker_link' doesn't exist: SELECT linkchecker_link.urlhash AS urlhash, MIN(linkchecker_link.lid) AS lid_min FROM {linkchecker_link} base_table LEFT JOIN {linkchecker_link} linkchecker_link ON linkchecker_link.lid = base_table.lid INNER JOIN {linkchecker_link} linkchecker_link_2 ON linkchecker_link_2.lid = base_table.lid WHERE linkchecker_link_2.last_check <= :db_condition_placeholder_0 GROUP BY linkchecker_link.urlhash; Array ( [:db_condition_placeholder_0] => 1559138248 ) in Drupal\linkchecker\LinkCheckerService->queueLinks() (line 109 of /var/www/html/drupal/web/modules/contrib/linkchecker/src/LinkCheckerService.php).

2. Running cron from drush (9.6.2) generates following error:

ArgumentCountError: Too few arguments to function Drupal\linkchecker\Commands\LinkCheckerCommands::__construct(), 4 passed in /var/www/html/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 281 and exactly 5 expected in Drupal\linkchecker\Commands\LinkCheckerCommands->__construct() (line 58 of /var/www/html/drupal/web/modules/contrib/linkchecker/src/Commands/LinkCheckerCommands.php).

3. Running update from Extend (/admin/modules) page returns no pending updates and generates no dblog errors.

4. Running update from drush generates the following error:

ArgumentCountError: Too few arguments to function Drupal\linkchecker\Commands\LinkCheckerCommands::__construct(), 4 passed and exactly 5 expected in Drupal\linkchecker\Commands\LinkCheckerCommands->__construct() (line 58 of /var/www/html/drupal/web/modules/contrib/linkchecker/src/Commands/LinkCheckerCommands.php).

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada waverate

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

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

    I am having the same issues described above. I am running Drupal 10.2.6 and I am trying to install version 2.0.0 of the module. I used the SQL scripts provided comment #3. I can uninstall the module but when I try to reinstall, I get the same results; "The LinkChecker link type entity needs to be installed" in the status report. Any advice on how debug this?

Production build 0.71.5 2024