Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am getting errors in my browser console on pages such as the IMCE file browser:
Uncaught TypeError: Cannot read property 'UserID' of undefined
This is causing issues for other JS scripts being loaded and executed.
Comment | File | Size | Author |
---|---|---|---|
#2 | undefined_in_adjs-2811435-2.patch | 408 bytes | ellioseven |
Comments
Comment #2
ellioseven CreditAttribution: ellioseven as a volunteer commentedI am creating a patch that will check for
Drupal.settings.ad
before proceeding with code execution.Comment #3
fizk CreditAttribution: fizk commentedThanks @ellioseven. Under what conditions does
Drupal.settings.ad
become undefined?Comment #4
ellioseven CreditAttribution: ellioseven as a volunteer commented@fizk I am getting this error specifically when using the IMCE module https://www.drupal.org/project/imce, specifically this screen: https://www.drupal.org/files/images/imce-screenshot.jpg
Comment #5
Jeremy CreditAttribution: Jeremy at Tag1 Consulting commentedDoes #2677498: Causes a javascript error when working with IMCE fix this?