[wp-trac] [WordPress Trac] #55288: Site Editor on 5.9.1 fails to find homepage template for FSE themes, on WP subdirectory installation

WordPress Trac noreply at wordpress.org
Tue Mar 1 18:47:29 UTC 2022


#55288: Site Editor on 5.9.1 fails to find homepage template for FSE themes, on WP
subdirectory installation
--------------------------------------+-----------------------------
 Reporter:  andronocean               |      Owner:  (none)
     Type:  defect (bug)              |     Status:  new
 Priority:  normal                    |  Milestone:  Awaiting Review
Component:  Editor                    |    Version:  5.9.1
 Severity:  major                     |   Keywords:
  Focuses:  administration, template  |
--------------------------------------+-----------------------------
 I'm getting an error when launching the site editor on 5.9.1, stating “The
 editor is unable to find a block template for the homepage”. This happens
 on both Twenty-Twenty-Two and a custom FSE theme (otherwise functional,
 has templates/single.html and templates/index.html). **My WP installation
 is in a subdirectory**, using the
 [[https://github.com/roots/bedrock|Bedrock]] site structure, so the editor
 URL is `https://example.test/wp/wp-admin/themes.php?page=gutenberg-edit-
 site`

 I've tried it on PHP 7.4.25 and 8.0.14. I've confirmed it still happens
 with all plugins deactivated.

 Notably, activating the Gutenberg plugin version 12.6.1 eliminates the
 error and the editor loads correctly.

 There are several other reports of the same error in this Twenty-Twenty-
 Two forum thread: https://wordpress.org/support/topic/the-editor-is-
 unable-to-find-a-block-template-for-the-homepage/

 The error code output from the copy button is

 {{{
 Error: `getHomepageParams`: HTTP status error, 404
     at https://example.test/wp/wp-includes/js/dist/edit-
 site.js?ver=403e01f2b098b6a656118a51787581cb:8766:13
     at async getHomepageParams (https://example.test/wp/wp-
 includes/js/dist/edit-
 site.js?ver=403e01f2b098b6a656118a51787581cb:8762:20)
     at async redirectToHomepage (https://example.test/wp/wp-
 includes/js/dist/edit-
 site.js?ver=403e01f2b098b6a656118a51787581cb:8797:28)
     at async reinitializeEditor (https://example.test/wp/wp-
 includes/js/dist/edit-site.js?ver=403e01f2b098b6a656118a51787581cb:9067:5)
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55288>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list