Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Jetpack nova_menu_item theme support does not work with the block editor #30851

Closed iamgabrielma closed 4 years ago

iamgabrielma commented 5 years ago

Reported in 1811329-zen , the food menus added by Jetpack's nova_menu_items seem to return a blank screen if using the block editor, while using the classic editor still works fine.

This only seems to happen on non-atomic-wpcom sites, as I've been unable to reproduce it on Atomic and self-hosted.

Steps to reproduce

  1. Starting at URL: http://wordpress.com/ > My Sites . Select any non-atomic site.
  2. Select the Canape theme or any other theme that has nova_menu_item support
  3. Go to http://wordpress.com/ > My Sites > your_site > Food Menus and Add menu item, the URL will be similar to https://wordpress.com/types/nova_menu_item/$your_domain , when creating a new menu the URL will be https://wordpress.com/block-editor/edit/nova_menu_item/$your_domain
  4. See how the screen becomes blank and cannot be created:
screen shot 2019-02-18 at 21 14 04

If we go through wp-admin, or we switch to using the classic editor, this becomes usable again:

1) Go to https://example.wordpress.com/wp-admin/edit.php?post_type=nova_menu_item 2) Click on Create one item, you'll be redirected to https://your_domain.wordpress.com/wp-admin/post-new.php?post_type=nova_menu_item 3) See the nova_menu_item working fine:

screen shot 2019-02-18 at 21 17 23

What I expected

That the menu creation post type shows up and can be created.

fernmed commented 5 years ago

Just had this same issue with another user. The workaround with going through WP-Admin seems to work so that was good. Also Classic editor works as well. Block editor on it's own and going through Calypso seems to break it. User was on the Restaurant theme.

8885090-hc

cecoates commented 5 years ago

Got another one, this time with the Aperitive theme.

2042243-zen

I've recommended the user stick with WP Admin for now.

Interestingly, the message asking folks to try Gutenberg seems to pick up on the use of the word "menu":

2019-05-19_12-20

Although in this case it's not accurate. It's obviously referring to a site menu while these specific themes are about Food Menus.

stale[bot] commented 4 years ago

This issue has been marked as stale and will be closed in seven days. This happened because:

You can keep the issue open by adding a comment. If you do, please provide additional context and explain why you’d like it to remain open. You can also close the issue yourself — if you do, please add a brief explanation.