1. create a view display
2. select RSS feed as the format
3. select field as the style setting
4. add fields to the field portion of the view config
5. When you click on "save" there is a Js console error
6. in the log:
https://mysite/admin/structure/views/ajax/handler/upcoming_events/feed_1...|
https://mysite/admin/structure/views/view/upcoming_events/edit/feed_1|1||Error: Unsupported operand types in Drupal\views\Plugin\views\field\FieldPluginBase->getElements() (line 322 of drupal8.6/html/core/modules/views/src/Plugin/views/field/FieldPluginBase.php)
It does not matter which field that I add, the JS error always happens.
Comments
Comment #6
finneI tried to reproduce the steps by installing a clean D9.4.x-dev and doing
1. create a view display (of the feed type)
2. select field as the style setting
3. add fields to the field portion of the view config
4. click on "save"
I don't see any error in the log or the JS console.
Looking at line 323 of FieldPluginBase.php I can see why this error might occur:
$elements += \Drupal::config('views.settings')->get('field_rewrite_elements');If the field_rewrite_elements config item does not return an array. That should always be the case, unless an invalid config is somehow loaded.
If you can still reproduce this on a clean D9 install please feel free to reopen this issue.
Comment #7
finne