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 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.

Comments

ttesteve created an issue. See original summary.

abhishek_gupta1’s picture

Assigned: Unassigned » abhishek_gupta1
abhishek_gupta1’s picture

Assigned: abhishek_gupta1 » Unassigned
Status: Active » Needs review
StatusFileSize
new1.82 KB

@ttesteve, I have fixed the issue and created Patch.

ttesteve’s picture

Many thanks for the quick response, Abhishek! The patch has now resolved the errors.

Thanks again!

yogeshmpawar’s picture

Assigned: Unassigned » yogeshmpawar

yogeshmpawar’s picture

Assigned: yogeshmpawar » Unassigned
Status: Needs review » Fixed

Committed & Pushed to 2.0.x branch

yogeshmpawar’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.