Title: Debug Error
Last modified: August 24, 2016

---

# Debug Error

 *  Resolved [SooBahkDo](https://wordpress.org/support/users/soobahkdo/)
 * (@soobahkdo)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/debug-error-17/)
 * Hello,
 * In the admin area we are encountering these errors:
 * Uncaught TypeError: Cannot read property ‘$el’ of undefined
 * load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-position,wp-
   pointer,shortcode,me…:197 Uncaught TypeError: Cannot read property ‘$el’ of undefined
 * Uncaught TypeError: Cannot read property ‘hasClass’ of undefined
 * load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-position,wp-
   pointer,shortcode,me…:441 Uncaught TypeError: Cannot read property ‘hasClass’
   of undefined
 * [https://wordpress.org/plugins/media-library-assistant/](https://wordpress.org/plugins/media-library-assistant/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/debug-error-17/#post-6159679)
 * Thank you for your report. I have not seen this issue before.
 * Do the errors occur on all admin screens, on a specific screen, or when you are
   using the Media Manager popup window (“Add Media…”?
 * Do the errors go away if you deactivate MLA? If so, you can also try the following
   steps to avoid the errors:
    1. Navigate to the Settings/Media Library Assistant General tab.
    2. Scroll down to the “Media Manager/Media Grid Enhancements” sections.
    3. Uncheck the “Enable Media Grid Enhancements” box and/or the “Enable Media Manager
       Enhancements” box.
    4. Scroll to the bottom of the page and click “Save Changes”.
 * If disabling the plugin or the enhancements solves the problem, let me know. 
   I will leave this topic unresolved until I hear form you.
 *  Thread Starter [SooBahkDo](https://wordpress.org/support/users/soobahkdo/)
 * (@soobahkdo)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/debug-error-17/#post-6159681)
 * Hi David,
 * They occur on the Media Library Matrix view.
 * The Media Library list view does not display the errors nor does it display the
   additional search features of Media Library assistant. Is that the anticipated
   behavior on Media Library list view?
 * I followed your instructions and found that checking or unchecking Enable Media
   Grid Enhancements made the errors appear or disappear.
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/debug-error-17/#post-6159693)
 * Thank you for the additional details and for taking the time to work through 
   the settings changes I suggested.
 * I did fix some JavaScript problems with the Media Grid (Matrix) view a few days
   ago and I uploaded a Development Version of the plugin that might resolve your
   problem as well. You can find step-by-step instructions for using the Development
   Version in this earlier topic:
 * [MLA errors when using plugin](https://wordpress.org/support/topic/mla-errors-when-using-plugin)
 * If you get a chance to try the Development Version, let me know if it solves 
   your problems. Thanks for bringing this issue to my attention and for your interest
   in the plugin.
 *  Thread Starter [SooBahkDo](https://wordpress.org/support/users/soobahkdo/)
 * (@soobahkdo)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/debug-error-17/#post-6159707)
 * Hi David,
 * I installed the Development version, but alas the same errors persist.
 * Thank you for your responsiveness and please let me know if you want me to try
   anything else.
 * Thanks!
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/debug-error-17/#post-6159843)
 * Thank you for taking the time to try the Development Version. I have done more
   testing and the error messages listed in your first post seem to be related to
   the script errors I fixed in the Development Version dated 20150518 (or 20150519).
   I have three suggestions:
    1. Make sure you are running the Development Version. You can go to the Plugins/
       Installed Plugins screen and look for the date in the Description field. You
       can also go to the Settings/Media Library Assistant General tab and look for
       the date in the screen title.
    2. **Make sure you have “refreshed” the Media/Library grid screen**. Unless you
       click the browser’s “refresh page” button you will not get the corrected copy
       of the MLA scripts.
    3. If the problem persists, reproduce it with uncompressed scripts and post the
       updated error messages to this topic.
 * I hope suggestion 2. will resolve your issue. I do not change the version number
   of my Development Versions so the WordPress update process will work when the
   next official MLA version is released. I frequently forget to completely refresh
   the browser page when I make JavaScript changes, and I also forgot to alert you
   to this possibility as well. I regret the oversight.
 * If refreshing your browser page does not cure the problem, you can try suggestion
   3. Edit your WordPress wp-config.php file and look for a line that defines the`
   SCRIPT_DEBUG` constant. If you find it, set the value to `true`. If you do not
   find it, add something like this to your `wp-config.php` file:
 *     ```
       /**
        * Several constants are used to manage the loading, concatenating and compression of scripts and CSS:
        * define('SCRIPT_DEBUG', true); loads the development (non-minified) versions of all scripts and CSS,
        *   and disables compression and concatenation,
        * define('CONCATENATE_SCRIPTS', false); disables compression and concatenation of scripts and CSS,
        * define('COMPRESS_SCRIPTS', false); disables compression of scripts,
        * define('COMPRESS_CSS', false); disables compression of CSS,
        * define('ENFORCE_GZIP', true); forces gzip for compression (default is deflate).
        */
       define('SCRIPT_DEBUG', true); // true
       ```
   
 * This should go just above the `/* That's all, stop editing! Happy blogging. */`
   line in the file.
 * I hope these suggestions either resolve the issue or give us more information
   to investigate. Thanks for your patience and your help.
 *  Thread Starter [SooBahkDo](https://wordpress.org/support/users/soobahkdo/)
 * (@soobahkdo)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/debug-error-17/#post-6159859)
 * Hi David,
 * I double checked that I have the Development version (20150519).
 * I cleared all caches and refreshed the page as you indicated.
 * I previously had the plugin network activated and I deactivated it.
 * Then I reactivated it only on the one site I was testing.
 * No errors appeared.
 * So then I network activated the plugin again to see if the errors returned and
   they did not. I tried this on two different installations.
 * It appears the errors are gone. 🙂
 * Thank you for your help!
 * Sincerely,
    Phil D
 * P.S. Sidebar question, in the bulk select drop down for dates, is it possible
   for that list to sort with newest at the top and oldest at the bottom? I did 
   not see an option for that bu thought I may have overlooked it.
 * Also it would be great if the drop down also presented years as selections choices
   like this plugin provides in the admin posts list
    [https://wordpress.org/plugins/admin-filter-posts-by-year/](https://wordpress.org/plugins/admin-filter-posts-by-year/)
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/debug-error-17/#post-6159886)
 * I’m very happy to hear that refreshing the browser cache resolved the problem,
   and that your symptoms were caused by the Media Grid issue I had already discovered.
   I will mark this topic resolved when the next MLA version goes out.
 * Regarding your sidebar question about the “Filter by year/month” dropdown, the
   current MLA version uses a WordPress function to populate this control and does
   not offer the additional features you suggest. I will consider adding the new
   features to a future MLA version. Thanks for posting a link to the “Admin filter
   posts by year” plugin as an example of what might be done.
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/debug-error-17/#post-6159956)
 * I have released MLA version 2.11. It contains the Media Grid fix that resolves
   the issue you raised in this topic.
 * I am marking this topic resolved, but please update it if you have any problems
   with JavaScript errors in the new version. Thanks for your interest in the plugin.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Debug Error’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

## Tags

 * [debug errors](https://wordpress.org/support/topic-tag/debug-errors/)

 * 8 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/debug-error-17/#post-6159956)
 * Status: resolved