Closed DhrRob closed 2 weeks ago
In the code base I can see a difference between 6.6 and trunk. In 6.6 we don't avoid rendering the ExperimentalEditorProvider
component if the post
prop is not loaded yet. But in think, we do have a protection so this bug is most likely fixed in trunk but not in 6.6
That said, I'm not able to reproduce yet in the 6.6 branch. Some extra information might be needed: do you have a static page as a front page, which theme are you using...
That said, I'm not able to reproduce yet in the 6.6 branch. Some extra information might be needed: do you have a static page as a front page, which theme are you using... I am using a custom made theme, based off the fullsiteediting.com block theme generator.
I indeed have a static page as front page. Templates present in my parent and/or child theme are:
Ok I'm able to reproduce. You need to have a theme with a "front-page.html" template and set a static page as home page.
Description
This happens in 6.6-beta4, reverted to 6.5.5 on the same site, same settings, error was vanished.
When I open the site editor (http://localhost:8881/wp-admin/site-editor.php) the Editor has ran into an unexpected error. Seems to be related to post.id missing as it refers to this line in editor.js:21230 (
}, [shouldRenderTemplate, post.id, post.type, rootLevelPost.type, rootLevelPost.slug]);
).Whenever I use the Site Editor from a page (e.g. http://localhost:8881/wp-admin/site-editor.php?postType=wp_template&postId=vb-theme//page&canvas=edit) I don't get any errors, presumely because postId is present.
Hope that is a clear description! I don't submit bugs/errors often. I haven't tried switching themes, but did disable all plugins.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Copied error from the modal (The editor has encountered an unexpected error):
Full console log from page load:
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes