Problem/Motivation

After upgrade (on D11.4.4):
* When editing (for all content-types) when clicking a media field to add eg an image I get a dialog box with: 'An error occurred while attempting to process /node/403/edit?ajax_form=1&_wrapper_format=drupal_ajax: q.trim is not a function'. That all, the media page is not shown.

I use gin admin theme but same with claro
I use media_directories - but same after deinstalling this
(see where first reported: https://www.drupal.org/project/media_directories/issues/3613033)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Comments

jons created an issue. See original summary.

jons’s picture

* Changing image widget in Manage form display to Autocomplete allows an image to be seen.
If media_directories_browser installed - this widget also works
So a problem with Media widget (also Entity browser) - needs work

* Something changed the order of fields in Manage Display and the Format of the image to 'Label', and Label setting to Above (in all content types that have an image)! D11/media_directories upgrade?

jons’s picture

Component: field system » media system
jons’s picture

There were issues as a result of media_directory_editor being uninstalled (see https://www.drupal.org/project/media_directories/issues/3613033)

This was not related to the q.trim problem which is probably due to a Jquery version issue. Current Drupal 11 core is 4.0.0 (was 3.7.1 in D10). My theme with bootstrap complains: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4
Working on this.

cilefen’s picture

cilefen’s picture

If it is https://www.drupal.org/project/bootstrap, there are specific jQuery 4 setup instructions and we can close this issue.

jons’s picture

Issue summary: View changes

@cilefen - thanks - that worked!

BTW Might be worth mentioning on https://www.drupal.org/project/jquery_4_migrate how to download the script ie wget https://unpkg.com/jquery-migrate@4.0.2/dist/jquery-migrate.min.js (as in the project README)

I'll need to sort out our theme now.

I've removed the second point form the summary (as noted in #4) for clarity

jons’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

cilefen’s picture

Category: Bug report » Support request

Status: Fixed » Closed (fixed)

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