Unable to access the Devel Generate Content and Generate User Settings forms after enabling Faker module

Created on 30 January 2025, 3 months ago

Problem/Motivation

I tried installing and enabling this module to generate some more realistic fake data, however, whenever I go to configure and generate the fake content in the Devel Generate configuration, I got the following errors for the Generate Content and Generate Users options:

Fatal error: Declaration of Drupal\faker\Plugin\DevelGenerate\FakerUserDevelGenerate::settingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\devel_generate\Plugin\DevelGenerate\UserDevelGenerate::settingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state): array in /var/www/html/web/modules/contrib/faker/src/Plugin/DevelGenerate/FakerUserDevelGenerate.php on line 31

Fatal error: Declaration of Drupal\faker\Plugin\DevelGenerate\FakerContentDevelGenerate::settingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate::settingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state): array in /var/www/html/web/modules/contrib/faker/src/Plugin/DevelGenerate/FakerContentDevelGenerate.php on line 31

Steps to reproduce

  1. Install and Enable Faker module
  2. Add a Faker Profile
  3. Go to /admin/config/development/generate/content in order to generate some fake content

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇯🇲Jamaica axle_foley00

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024