Gutenberg: Block Classic and WP 5.0-beta3-43876 - can't insert gallery

Created on 7 Nov 2018  路  7Comments  路  Source: WordPress/gutenberg

Describe the bug
Gallery is not inserted into Block Classic

To Reproduce
Steps to reproduce the behavior:

  1. Install WordPress 5.0-beta3-43876
  2. Gutenberg (if installed) is deactivated now by default, you could also delete it
  3. Write a post, insert block classic, click on media icon, create a gallery und click on "insert gallery"
  4. Nothing happens in classic block

Expected behavior
The gallery should be in block classic

Desktop (please complete the following information):

  • OS: Windows 10 64bit, recent version
  • Browser Chrome, recent version
  • Version [e.g. 22]

Additional context

  • WordPress 5.0-beta3-43876
  • No extra Gutenberg plugin installed
[Block] Classic [Type] Bug

Most helpful comment

It's no problem! It's good to report issues and get a check on them! 馃槉

As I'm working through some of the latest reports, I'm finding that if you were testing 5.0 bleeding edge recently, there could have been a few things out of sync and even the next commit would make a big difference. Issues like this help bring that to the forefront and I appreciate all the reports because they're helping get some of those syncing issues worked out!

For this case, I wanted to get a check on it before closing too. I tested just now with WP 5.0-beta3-43878 and can confirm I was able to insert a gallery into a classic block as you've also noted. 馃憤

Thank you for your time and testing @La-Geek! I like seeing you here. I am happy to help test and sort out issues. There is also a group of testers in #core-test in WordPress Slack if you ever have testing topics you would like to discuss.

All 7 comments

As addition:
You have the option to activate/install Gutenberg 4.2.0 too in WP 5.0 beta 3.x. In this case inserting the gallery works without problems.

Good find! Testing note: if this is only happening in WP 5.0 betas, we will want to move the issue to https://core.trac.wordpress.org/ (I typically leave them open here for testing/verification first though!).

I can't reproduce this anymore. No idea what happened.
Please close issue here, thanks

I am sorry for wasting your time.

It's no problem! It's good to report issues and get a check on them! 馃槉

As I'm working through some of the latest reports, I'm finding that if you were testing 5.0 bleeding edge recently, there could have been a few things out of sync and even the next commit would make a big difference. Issues like this help bring that to the forefront and I appreciate all the reports because they're helping get some of those syncing issues worked out!

For this case, I wanted to get a check on it before closing too. I tested just now with WP 5.0-beta3-43878 and can confirm I was able to insert a gallery into a classic block as you've also noted. 馃憤

Thank you for your time and testing @La-Geek! I like seeing you here. I am happy to help test and sort out issues. There is also a group of testers in #core-test in WordPress Slack if you ever have testing topics you would like to discuss.

I am having this issue with Gutenburg plugin installed and WP version 4.9.8

Getting the following console error with the gallery is added to the classic block:

media-editor.min.js?ver=4.9.8:1 Uncaught TypeError: wp.shortcode is not a constructor
at Object.shortcode (media-editor.min.js?ver=4.9.8:1)
at Object. (media-editor.min.js?ver=4.9.8:1)
at _ (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:28)
at m (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:28)
at f (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:28)
at n.u.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:28)
at n.click (media-views.min.js?ver=4.9.8:2)
at n.click (media-views.min.js?ver=4.9.8:2)
at HTMLButtonElement.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:3)
at HTMLButtonElement.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:3)

Was this page helpful?
0 / 5 - 0 ratings