Error configuring on new install of Reroute Emails

Created on 30 July 2023, over 1 year ago
Updated 27 September 2023, over 1 year ago

Problem/Motivation

New installation
Drupal version: 9.2.21
Open Social Distribution: social-11.3.16
Mailer: Machine name: mailsystem
Version: 8.x-4.4
Requires: FilterUserSystem
Required by: Swift MailerSocial Swiftmailer

I have installed this with success on my development sites on the same servers, but when installing a cloned version of my production site and (seemingly) successfully installing Reroute Emails v. 2.2.0, I am receiving the following error (on all installations) when trying to configure the module!

The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal\Core\Extension\ModuleHandler::invokeAllWith() in Drupal\reroute_email\Form\SettingsForm->buildForm() (line 225 of modules/contrib/reroute_email/src/Form/SettingsForm.php).

Drupal\reroute_email\Form\SettingsForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 532)
Drupal\Core\Form\FormBuilder->retrieveForm('reroute_email_settings', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 578)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 717)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Any thoughts?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Fixed

Version

2.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bas123

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

Comments & Activities

  • Issue created by @bas123
  • πŸ‡ΊπŸ‡ΈUnited States bas123
  • πŸ‡ΊπŸ‡ΈUnited States bas123

    Would like to add that in lieu of being able to use the UI to configure Reroute Emails, per the readme file, I did add:

    /**
    * Set Reroute Email to send or not to Admin
    */
    $config['reroute_email.settings']['enable'] = TRUE;
    $config['reroute_email.settings']['address'] = 'administrator@website.com';

    to the settings.php file, and that does seem to be functioning so far via some tests!

    So the issue must be something to do with the form configuration in the UI for the module!

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

    Addnl note: I have now installed this module on 5 development versions of my Production site, all of which are running Drupal version 9.2.21
    with Open social version social-11.3.16.

    The module was installed using Composer using the require command and then updated with composer update -W, so there should be no conflicts beyond that!

    The error code is consistent as above!

  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡¦Ukraine bohart Lutsk, Ukraine

    The problem of this issue is fixed on #3364031.

    Once the new releases are posted, the module will support both <=D9.3 (branch/version 2.1.x) and ^D9.4 (branch/version 2.2.x) Drupal cores.

    Thanks @all!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024