New install gives error on /admin/config/services/brevo/settings

Created on 11 September 2024, 3 months ago
Updated 13 September 2024, 3 months ago

Problem/Motivation

A new install of Drupal 11 and Brevo 1.0.0 gives an error on url following url: /admin/config/services/brevo/settings.
Error:

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /DOMAIN/web/modules/contrib/brevo/src/Form/BrevoAdminSettingsForm.php on line 58 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of core/lib/Drupal/Core/Form/ConfigFormBase.php).

Drupal\brevo\Form\BrevoAdminSettingsForm->__construct() (Line: 46)
Drupal\brevo\Form\BrevoAdminSettingsForm::create() (Line: 36)
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (Line: 48)
Drupal\Core\Controller\HtmlFormController->getFormObject() (Line: 58)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 593)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 709)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Steps to reproduce

Fresh install of:

  • Drupal 11.0.2
  • Drupal/mailsystem 4.5.0 module
  • Getbrevo/brevo-php 2.0.2 module
  • Drupal/breo 1.0.0 module

Activate modules and go to /admin/config/services/brevo/settings and there is the error.
I could not activate the Getbrevo/brevo-php module in /admin/modules because it is not in the list, so I suspect that it does not need to be activated that way. But maybe I am wrong?

Proposed resolution

I have no idea how to solve this, Drupal is all new to me.

Remaining tasks

User interface changes

API changes

Data model changes



I hope I have given you enough information. If not, please let me know!

🐛 Bug report
Status

Fixed

Version

1.0

Component

User interface

Created by

🇳🇱Netherlands keizerwilmer

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024