Error installing Honeypot

Created on 6 August 2023, over 1 year ago
Updated 28 September 2023, about 1 year ago

Problem/Motivation

Trying to install Honeypot in Drupal 10, I get this error

Message TypeError: Drupal\honeypot\Form\HoneypotSettingsForm::getFormSettingsValue(): Argument #1 ($form_settings) must be of type array, null given, called in /PATH/modules/contrib/honeypot/src/Form/HoneypotSettingsForm.php on line 177 in Drupal\honeypot\Form\HoneypotSettingsForm->getFormSettingsValue() (line 317 of /PATH/modules/contrib/honeypot/src/Form/HoneypotSettingsForm.php).

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.1

Component

Code

Created by

🇫🇷France andrimont

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

Comments & Activities

  • Issue created by @andrimont
  • Status changed to Postponed: needs info over 1 year ago
  • 🇺🇸United States tr Cascadia

    How did you install the module? Are you using the -dev or a tagged release? What version of PHP and Drupal core?

    Argument #1 ($form_settings) must be of type array, null given

    That argument is defined in honeypot.settings.yml, which is used on installation to build the settings object. These settings are always an array, and never null.

    The automated tests on drupal.org demonstrate that Honeypot can be installed on Drupal 10 without an error.

  • Status changed to Closed: cannot reproduce over 1 year ago
  • 🇮🇳India rushiraval

    I have manually tested. I have installed honeypot 2.1.x-dev using composer "composer require 'drupal/honeypot:2.1.x-dev@dev'" on drupal 10.1.2 (PHP 8.2). Working fine without any issue. Honeypot 2.1 also working fine on drupal 10.1.2.

  • Status changed to Needs review over 1 year ago
  • 🇫🇷France NuWans

    I got the same error when I installed the module via drush, But in a particular context (I had phpass installed on DB (Drupal 10.1.2) but I switched to Drupal 10.0.9 when I installed the honeypot).
    Once switch back to the correct Code / DB version. Its working fine.

  • Status changed to Postponed: needs info over 1 year ago
  • 🇺🇸United States tr Cascadia

    Still need a response from the OP to find out how to reproduce this.

  • Status changed to Closed: cannot reproduce about 1 year ago
  • 🇺🇸United States tr Cascadia

    If someone encounters this problem and can provide directions for reproducing the problem, feel free to reopen this issue.

  • 🇺🇸United States mike.roman Chicago

    I got this exact error after a deployment, and it was because I forgot to commit the honeypot.settings.yml file. I wonder if OP did the same thing.

Production build 0.71.5 2024