Warning: Undefined array key "message"

Created on 18 January 2024, 5 months ago
Updated 19 January 2024, 5 months ago

Problem/Motivation

I'm getting spammed with this error message in my logs (which emails us).

Warning: Undefined array key "message" in Drupal\spamaway\Plugin\WebformHandler\AntiSpamHandler->validateFormWithSavedSubmissions() (line 388 of modules/contrib/spamaway/src/Plugin/WebformHandler/AntiSpamHandler.php) #0 core/includes/bootstrap.inc(164): _drupal_error_handler_real()
#1 modules/contrib/spamaway/src/Plugin/WebformHandler/AntiSpamHandler.php(388): _drupal_error_handler()
#2 modules/contrib/spamaway/src/Plugin/WebformHandler/AntiSpamHandler.php(305): Drupal\spamaway\Plugin\WebformHandler\AntiSpamHandler->validateFormWithSavedSubmissions()
#3 modules/contrib/webform/src/Entity/Webform.php(2765): Drupal\spamaway\Plugin\WebformHandler\AntiSpamHandler->validateForm()
#4 modules/contrib/webform/src/WebformSubmissionForm.php(1887): Drupal\webform\Entity\Webform->invokeHandlers()
#5 [internal function]: Drupal\webform\WebformSubmissionForm->validateForm()

Steps to reproduce

  1. Add the default settings to an existing webform (with a message field)
  2. Submit webform

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇦Canada joelpittet Vancouver

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024