• Hi,
    I can’t add or change existed gallery in classic editor. I have this error in console:

    media-editor.min.js?ver=b2a8b21fb66cc0a42a70593c3aa69fbe:1 Uncaught TypeError: wp.shortcode is not a constructor
        at Object.shortcode (media-editor.min.js?ver=b2a8b21fb66cc0a42a70593c3aa69fbe:1)
        at n.<anonymous> (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,wp-autop,wp-blob,wp-block-serialization-default-parser,wp-shortcode,wp-blocks,quicktags,jquery-quer&load[]=y,admin-comments,postbox,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,editor-e&load[]=xpand,thickbox,mce-view,imgareaselect,image-edit,svg-painter,jquery-ui-resizable,jquery-ui-button,jquery-ui-dialog,wpdialogs,wp-&load[]=api,wp-annotations,media-upload,wp-fullscreen-stub,wp-embed&ver=b2a8b21fb66cc0a42a70593c3aa69fbe:402)
        at _ (backbone.min.js?ver=1.2.3:1)
        at m (backbone.min.js?ver=1.2.3:1)
        at f (backbone.min.js?ver=1.2.3:1)
        at n.u.trigger (backbone.min.js?ver=1.2.3:1)
        at n.click (media-views.min.js?ver=b2a8b21fb66cc0a42a70593c3aa69fbe:2)
        at n.click (media-views.min.js?ver=b2a8b21fb66cc0a42a70593c3aa69fbe:2)
        at HTMLButtonElement.dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=b2a8b21fb66cc0a42a70593c3aa69fbe:3)
        at HTMLButtonElement.r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=b2a8b21fb66cc0a42a70593c3aa69fbe:3)
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    It is also loading some of the Block Editor’s scripts when using the Classic Editor. This is causing it. Could be a plugin that is enqueuing these block editor scripts when it shouldn’t.

    • This reply was modified 5 years, 10 months ago by Andrew Ozz.
    • This reply was modified 5 years, 10 months ago by Andrew Ozz.
    Thread Starter sebastianmazur

    (@sebastianmazur)

    Can I disable Block Editor’s scripts somehow? Or completely remove Gutenberg from WordPress?

    Plugin Author Andrew Ozz

    (@azaozz)

    Can I disable Block Editor’s scripts somehow?

    This is now part of WordPress. The only way would be to find the plugin that (erroneously) enqueues these scripts. If you don’t want to use the new editor you probably don’t need that plugin anyway.

    • This reply was modified 5 years, 10 months ago by Andrew Ozz.
    Thread Starter sebastianmazur

    (@sebastianmazur)

    I can’t find which plugin is the problem. I found this line in the source of page:

    <script type='text/javascript' src='https://lifewelove.com/wp-admin/load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,wp-autop,wp-blob,wp-block-serialization-default-parser,wp-shortcode,wp-blocks,jquery-ui-position,wp&load%5B%5D=-pointer,quicktags,jquery-query,admin-comments,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,po&load%5B%5D=st,editor-expand,thickbox,mce-view,imgareaselect,image-edit,svg-painter,jquery-ui-resizable,jquery-ui-button,jquery-ui-dialog,wp&load%5B%5D=dialogs,wp-api,wp-annotations,media-upload,wp-fullscreen-stub,wp-embed&ver=b2a8b21fb66cc0a42a70593c3aa69fbe'></script>

    Is this

    wp-blocks

    script is the problem?
    So can I just use wp_dequeue_script function to stop loading it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t add /change gallery’ is closed to new replies.