Title: Bug PHP and JS
Last modified: July 27, 2018

---

# Bug PHP and JS

 *  Resolved [fanny300](https://wordpress.org/support/users/fanny300/)
 * (@fanny300)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/bug-php-and-js/)
 * Hello,
 * I update in 2.5, when i go on medias, the medias not load.
 * The error js :
 * Uncaught TypeError: Cannot read property ‘length’ of undefined
    at eval (eval
   at m.template (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-
   ui-widget,jquery-ui-position,wp-pointer,underscore,wp-util,moxiejs,plupload,jquery-
   ui-co&load[]=re,jquery-ui-mouse,jquery-ui-sortable&ver=322bd79871dc03fd2f9fd96a8cc1aa2e:
   38), <anonymous>:17:46)
 * The error php :
 * in_array() expects parameter 2 to be array, null given 1
    wp-content/plugins/
   enhanced-media-library/core/taxonomies.php:415
 * in_array() expects parameter 2 to be array, null given 1
    wp-content/plugins/
   enhanced-media-library/enhanced-media-library.php:481
 * array_map(): Argument #2 should be an array 1
    wp-content/plugins/enhanced-media-
   library/enhanced-media-library.php:585
 * For solve this problem, i go on parameters -> Medias -> Media’s library
    And 
   check at least one boxes in Filters to show.
 * Can you add a default values in your script if no boxes if check ?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [webbistro](https://wordpress.org/support/users/webbistro/)
 * (@webbistro)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/bug-php-and-js/#post-10680040)
 * Hello [@fanny300](https://wordpress.org/support/users/fanny300/),
 * I am very sorry for not replying in due time!
 * The issue you experienced is most likely caused by some update glitch when the
   options weren’t saved in the database. To solve this it’s quite enough to re-
   save options. We improved the update mechanism since version 2.7.x. Please give
   it a try.
 * Best,
    -Nadia

Viewing 1 replies (of 1 total)

The topic ‘Bug PHP and JS’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [webbistro](https://wordpress.org/support/users/webbistro/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/bug-php-and-js/#post-10680040)
 * Status: resolved