Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"The theme you are currently using is not compatible with the Site Editor" on hybrid themes #52847

Closed
MadtownLems opened this issue Jul 21, 2023 · 7 comments · Fixed by #52884
Assignees
Labels
[Feature] Template Editing Mode Related to the template editor available in the Block Editor [Status] In Progress Tracking issues with work in progress [Type] Regression Related to a regression in the latest release

Comments

@MadtownLems
Copy link

Description

We use a hybrid theme (use Block Editor for content, has a couple of Template Parts, but doesn't use FSE.)

When testing out 6.3-RC-1, I keep running into "The theme you are currently using is not compatible with the Site Editor".

Step-by-step reproduction instructions

Just one of may ways:

  1. Appearance -> Template Parts.
  2. Edit a template part.
  3. Use "<" to go 'back' to Patterns, and select Manage all of my Patterns.
  4. Hit my browser's back button, and voila.

Screenshots, screen recording, code snippet

2023-07-21 15_00_13-WordPress › Error

Environment info

WordPress 6.3-RC-1. Windows 10, Chrome. No Gutenberg plugin.

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

@Mamaduka Mamaduka added [Type] Bug An existing feature does not function as intended [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") labels Jul 24, 2023
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jul 24, 2023
@Mamaduka Mamaduka added [Type] Regression Related to a regression in the latest release [Feature] Template Editing Mode Related to the template editor available in the Block Editor and removed [Type] Bug An existing feature does not function as intended [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") labels Jul 24, 2023
@annezazu
Copy link
Contributor

Thanks so much for reporting this on!

@Mamaduka
Copy link
Member

@ndiego, any reason for re-opening this?

@MadtownLems
Copy link
Author

I'm exploring this again on the 6.3 actual release, and it does seem like it's harder to trigger the error, I'm still getting it a lot. Here's an easy way:

Appearance -> Template Parts
Ctrl-K to open the Command Palette
Manage all of my Patterns
Then use the Browser's Back Button

"The theme you are currently using is not compatible with the Site Editor."

I'm wondering if perhaps things are showing up in the Command Palette that I'm not supposed to be able to access, being a hybrid theme?

@Mamaduka
Copy link
Member

@MadtownLems, correct. Some of the commands shouldn't be available for hybrid themes. That's being tracked in #52154.

@t-hamano
Copy link
Contributor

Since #53718 has been merged, I believe all commands are now properly displayed in the search results on all themes in the latest trunk. I would like to close this issue, but if the issue remains, please comment.

@manspaniel
Copy link

For me, navigating to the Template Part editor worked fine, but refreshing triggered this error.

Simple fix that worked in my case:

add_theme_support('block-template-parts');

@t-hamano
Copy link
Contributor

t-hamano commented Oct 3, 2024

@manspaniel
If you are experiencing any issues, could you tell me the steps to reproduce the problem? Does this mean that classic themes that don't support template parts can unintentionally open the template part editor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Template Editing Mode Related to the template editor available in the Block Editor [Status] In Progress Tracking issues with work in progress [Type] Regression Related to a regression in the latest release
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

6 participants