Fatal Error After Installing Module

Created on 21 March 2024, 3 months ago

Problem/Motivation

I am encountering an issue after installing a module. Please refer to the attached screenshot for more details. Screenshot 2024-03-21 at 2.57.59 PM.png

Steps to reproduce

  1. Install the module using Composer command : composer require 'drupal/captchetat:^1.0'
  2. After enabling the module, Fatal error occurs, as detailed below.

Error Message:
Undefined array key "elements" in captchetat_form_alter() (line 27 of modules/contrib/captchetat/captchetat.module).
captchetat_form_alter(Array, Object, 'system_modules') (Line: 545)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'system_modules') (Line: 841)
Drupal\Core\Form\FormBuilder->prepareForm('system_modules', Array, Object) (Line: 284)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)

I've attached an image to illustrate my actions, including installing the module and searching within the extended panel.

Proposed resolution

I had attached a patch file for the fixes of these fatal errors, Please refer to the attached Patch File. captchetat-fatal-error-fixes.patch

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

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

Comments & Activities

Production build 0.69.0 2024