Problem/Motivation

Uncaught PHP Exception ArgumentCountError: "Too few arguments to function Drupal\agreement\AgreementHandler::__construct(), 6 passed in core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and exactly 7 expected" at "modules/contrib/agreement/src/AgreementHandler.php line 96".

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

robertmartin1961 created an issue. See original summary.

robertmartin1961’s picture

Issue summary: View changes
robertmartin1961’s picture

Issue summary: View changes
mradcliffe’s picture

Title: Too Few Arguments » Too Few Arguments passed in AgreementHandler
Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)
Issue tags: -DependencyInjection AgreementHandler.php

Thank you for reporting an issue, Robert.

I am not able to reproduce this issue. There are the same number of arguments defined in the agreement.handler service as in the AgreementHandler class.

Did this this occur when updating from 3.0.1 to 3.0.2?

It is possible that Drupal’s composer autoload file has not been reloaded or cache needs to be cleared or flushed after the deployment.

q8tywolf’s picture

I am getting the same error when updating from 3.0.1 to 3.0.2

mradcliffe’s picture

I think this is a code caching issue with PHP.

Somethings to try based on Issue #3492523, comment #55:

Clear APCu cache by either restarting PHP-FPM or the Web server -or- if you do not have access, update settings['class_loader_auto_detect'] = FALSE; in settings.php, clear Drupal cache, and revert the setting

mradcliffe’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.