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)
Comments
Comment #2
jons commented* 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?
Comment #3
jons commentedComment #4
jons commentedThere 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 4Working on this.
Comment #5
cilefen commentedUse https://www.drupal.org/project/jquery_4_migrate.
Comment #6
cilefen commentedIf it is https://www.drupal.org/project/bootstrap, there are specific jQuery 4 setup instructions and we can close this issue.
Comment #7
jons commented@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
Comment #8
jons commentedComment #10
cilefen commented