Adding fields in view is giving ajax error.

Created on 5 June 2025, 4 days ago

Problem/Motivation

An AJAX error occurs when attempting to add and configure a field (e.g., the Body field) in a View using the Views UI. This issue is reproducible only when the site is installed via the web-based UI setup.

Steps to reproduce

1. Clone the 11.2.x version -
git clone --branch '11.2.x' https://git.drupalcode.org/project/drupal.git
2. cd drupal
3. ddev config
4. ddev start
5. ddev composer require drush/drush
6. ddev composer install
7. ddev drush cr
8. Launch the site and Setup the site using UI
9. Navigate to Structure > Views, create a new view as a Page display.
10. Set display format to Unformatted list of Fields and save.
(issue is when field is selected)
11. Under the Fields section, click Add and choose the Body or any other field.
12. Now, when trying to click on the Add and configure fields, it is not getting saved and giving ajax error in console.
(see attached screenshot)

Note: This issue is only reproducible when the site is installed via the web-based UI installer. It does not occurs when the site is installed using the Drush command: `ddev drush si`

🐛 Bug report
Status

Active

Version

11.2 🔥

Component

views.module

Created by

🇮🇳India JatinGupta40

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

Comments & Activities

Production build 0.71.5 2024