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

Site Editor beta not loading template-parts for Wizzie child theme #3

Open
bobbingwide opened this issue Jun 10, 2021 · 0 comments
Open
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@bobbingwide
Copy link
Owner

While the Wizzie theme appears to work in the front end it's not possible to use the current version in the Site Editor.

REST requests to load the template parts are failing with 404s.

For the front-page.html file the failing requests are of the form:

GET /wp-json/wp/v2/template-parts/fizzie//page-content?context=edit&_locale=user HTTP/1.1

and the responses are:

{"code":"rest_template_not_found","message":"No templates exist with that id.","data":{"status":404}}

The source being used for this particular request was

<!-- wp:html -->
<div class="WP_DEBUG">front-page.html</div>
<!-- /wp:html -->

<!-- wp:template-part{ "slug":"issue-39", "theme":"fizzie" } /-->

<!-- wp:template-part {"slug":"header", "align":"full", "tagName":"header" } /-->

<!-- wp:template-part {"slug":"page-content","theme":"fizzie","align":"wide","layout":{"inherit":true} } /-->

<!-- wp:template-part {"slug":"search","theme":"fizzie","layout":{"inherit": true }} /-->

<!-- wp:template-part {"slug":"page-footer","theme":"fizzie", "tagName":"footer","layout":{"inherit": true }} /-->

<!-- wp:template-part {"slug":"footer","theme":"fizzie"} /-->

<!-- wp:template-part {"slug":"footer-menu","theme":"fizzie", "className": "footer-menu" } /-->

The screen capture reflects the "errors" that have occurred with rather useless empty blocks.

image

Workarounds

  1. Eliminate the "badly formed" block, such as the issue-39 template part, which produces the "this block has encountered..."
  2. Remove "theme":"fizzie" from the other template parts.
  3. The easiest way to do this would be to copy the template from Fizzie to Wizzie.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant