Title: Uncaught TypeError: Class constructor cannot be invoked without &#8216;new&#8217;
Last modified: November 28, 2019

---

# Uncaught TypeError: Class constructor cannot be invoked without ‘new’

 *  [FonzieTheDog](https://wordpress.org/support/users/delbono72/)
 * (@delbono72)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-class-constructor-cannot-be-invoked-without-new/)
 * Hi
    opening WordPress Media library (WP MEDIA FOLDER installed) no library folder
   structure is shown.
 * I get the error:
 *     ```
       Uncaught TypeError: Class constructor  cannot be invoked without 'new'
           at N.d [as constructor] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.4:12)
           at N.d [as constructor] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.4:12)
           at N.d [as constructor] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.4:12)
           at N.d [as constructor] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.4:12)
           at N.d [as constructor] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.4:12)
           at new N.d (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.4:12)
           at wp.media.wp.media.view.wp.media.view.MediaFrame.wp.media.view.MediaFrame.Manage.wp.media.view.MediaFrame.Manage.browseContent (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,media-audiovideo,mce-view,imgareaselect,image-edit,wp-sanitize,wp-a11y,wplink,media-grid,media,svg-&load[]=painter&ver=5.2.4:11)
           at wp.media.wp.media.view.wp.media.view.MediaFrame.wp.media.view.MediaFrame.Manage.wp.media.view.MediaFrame.Manage.browseContent (media-library.js?ver=1573654244:1)
           at s (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.4:12)
           at r (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.4:12)
       ```
   
 * No idea about how to fix
    The library folder structure is regularly shown whene
   selecting media from posts.
 * Did any holy soul have the same problem and could help me fix it?
    Thanks!!
    -  This topic was modified 6 years, 6 months ago by [FonzieTheDog](https://wordpress.org/support/users/delbono72/).
    -  This topic was modified 6 years, 6 months ago by [FonzieTheDog](https://wordpress.org/support/users/delbono72/).

The topic ‘Uncaught TypeError: Class constructor cannot be invoked without ‘new’’
is closed to new replies.

 * ![](https://ps.w.org/wp-media-folders/assets/icon-256x256.png?rev=1899022)
 * [WP Media folders](https://wordpress.org/plugins/wp-media-folders/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-media-folders/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-media-folders/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-media-folders/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-media-folders/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [FonzieTheDog](https://wordpress.org/support/users/delbono72/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-class-constructor-cannot-be-invoked-without-new/)
 * Status: not resolved