Closing as duplicate of #3269083 🐛 TypeError: Unsupported operand types: string - int in Drupal\views_ef_fieldset\Plugin\views\display_extender\ViewsEFFieldset->buildOptionsForm() Fixed which has a better merge request.
Hello,
I am using PHP 8.1 and I got the issue when I try within views to configure the exposed form.
I got the error
TypeError : Unsupported operand types: string - int dans Drupal\views_ef_fieldset\Plugin\views\display_extender\ViewsEFFieldset->buildOptionsForm() (/var/www/vhosts/mywebsite/drupal/modules/contrib/views_ef_fieldset/src/Plugin/views/display_extender/ViewsEFFieldset.php ligne 201)
I fixed it by changing line 201 from
'weight' => isset($field_options['weight']) ? $field_options['weight'] : (isset($field->weight) ? $field->weight : $index - count($exposed_fields)),
to
'weight' => isset($field_options['weight']) ? $field_options['weight'] : (isset($field->weight) ? $field->weight : intval($index) - count($exposed_fields)),
Closed: duplicate
1.5
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Closing as duplicate of #3269083 🐛 TypeError: Unsupported operand types: string - int in Drupal\views_ef_fieldset\Plugin\views\display_extender\ViewsEFFieldset->buildOptionsForm() Fixed which has a better merge request.