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.

CommentFileSizeAuthor
#2 undefined_in_adjs-2811435-2.patch408 bytesellioseven
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ellioseven created an issue. See original summary.

ellioseven’s picture

I am creating a patch that will check for Drupal.settings.ad before proceeding with code execution.

fizk’s picture

Thanks @ellioseven. Under what conditions does Drupal.settings.ad become undefined?

ellioseven’s picture

@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

Jeremy’s picture

Status: Active » Postponed (maintainer needs more info)