Undefined variable $extension_list_module error

Created on 7 February 2024, 10 months ago
Updated 26 February 2024, 9 months ago

I've installed the latest 2.0.1 version of the module on a site running Drupal 10.2.2 with PHP8.1.

Under the Entities tab, I selected the node option. Then under Settings, I've selected all the fields on a specific content type. The fields are 3 x Taxonomy Reference fields, 1 x body field and 1 x image field.

When I save the settings form, none of the fields have stayed selected. It sounds the same issue as https://www.drupal.org/project/better_field_descriptions/issues/3302649 🐛 Fields are not saved Fixed but that looks like it should have been fixed in the latest release, which is what I've got installed.

Not every time but on some occasions when I've tried to save the settings form, it's thrown up the following error on Save:
Warning: Undefined variable $extension_list_module in Drupal\better_field_descriptions\Form\BetterFieldDescriptionsFieldsForm->__construct() (line 46 of modules/contrib/better_field_descriptions/src/Form/BetterFieldDescriptionsFieldsForm.php).

I've tried selecting just one field at a time in case it's a particular field type that it's not liking but it won't save on any combination.

The Bundles tab is also showing an error when you try to load it:
Error: Call to a member function getPath() on null in Drupal\better_field_descriptions\Form\BetterFieldDescriptionsFieldsForm->buildForm() (line 90 of modules/contrib/better_field_descriptions/src/Form/BetterFieldDescriptionsFieldsForm.php).

I guess that's perhaps just because no fields have yet been selected on the Settings tab though?

This looks like a great module so any help to get it working on D10.2.2 would be much appreciated.

🐛 Bug report
Status

Fixed

Version

2.0

Component

User interface

Created by

🇬🇧United Kingdom ttesteve

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

Comments & Activities

Production build 0.71.5 2024