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

FSE: "home" template results in WSOD #30565

Closed
Sandstromer opened this issue Apr 7, 2021 · 2 comments · Fixed by #30599
Closed

FSE: "home" template results in WSOD #30565

Sandstromer opened this issue Apr 7, 2021 · 2 comments · Fixed by #30599
Assignees
Labels
[Feature] Themes Questions or issues with incorporating or styling blocks in a theme. [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@Sandstromer
Copy link

Description

In a FSE theme when making use of a "home.html" template, results in an empty page.

It looks like Gutenberg is trying to load the "header.php", "content.php", and "footer.php" templates which would previously have been included in a classic theme, or the corresponding fallback WP templates, when attempting to load the FSE "home.html" template.
As these old school templates don't exist in FSE, the result is a WSOD on the frontend.

Step-by-step reproduction instructions

  1. using TT1-Blocks theme, rename the "index.html" template to "home.html"
  2. view the site frontend and notice the empty blank page

Expected behaviour

The home.html template should be called and displayed as appropriate.

Actual behaviour

The home.html template does not display.

Screenshots or screen recording (optional)

Code snippet (optional)

WordPress information

  • WordPress version: 5.7
  • Gutenberg version: 10.3.1
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? TT1-Blocks

Device information

  • Device: Desktop
  • Operating system: W10
  • Browser: Firefox
@aristath
Copy link
Member

aristath commented Apr 7, 2021

Assigning to myself.
Also related to bobbingwide/fizzie#58
This seems to be coming from PR #29026

@aristath aristath added [Feature] Full Site Editing [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. [Type] Bug An existing feature does not function as intended labels Apr 7, 2021
@aristath aristath self-assigned this Apr 7, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Apr 8, 2021
@aristath
Copy link
Member

aristath commented Apr 8, 2021

This PR should fix the issue: #30599 👍

aristath added a commit that referenced this issue Apr 8, 2021
aristath added a commit that referenced this issue Apr 8, 2021
* fixes #30565

* don't use "we" in inline comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Themes Questions or issues with incorporating or styling blocks in a theme. [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants