[wp-trac] [WordPress Trac] #61347: Swapping templates hangs site

WordPress Trac noreply at wordpress.org
Tue Jun 4 06:45:53 UTC 2024


#61347: Swapping templates hangs site
--------------------------+---------------------------------
 Reporter:  mattpettefer  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  6.5.3
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  template, rest-api
--------------------------+---------------------------------
Description changed by poena:

Old description:

> After selecting a different template, the entire site hangs for over a
> minute with disabled update button before "Updating..." begins.
>
> There are no errors other than some assets being served over http rather
> than https from plugins. On the occasion that a template had a block
> error, the behavior was exactly the same as when there are no errors in
> the template. Same whether there is a template part in the template or
> not.
>
> Template example:
>
> <!-- wp:template-part {"slug":"header","tagName":"header", "className":
> "site-header2020"} /-->
> <!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} --><main
> class="wp-block-group">
>
>     <!-- wp:post-content {"className":"legacy-post-padding"} /-->
>
> </main><!-- /wp:group -->
>
> Theme.json snippet:
>
> "customTemplates": [
>                 {
>                         "name": "page-no-title",
>                         "postTypes": ["page"],
>                         "title": "Page No Title"
>                 },
>                 {
>                         "name": "page-with-sidebar",
>                         "postTypes": ["page"],
>                         "title": "Page with Sidebar"
>                 },
>                 {
>                         "name": "page-wide",
>                         "postTypes": ["page"],
>                         "title": "Page with Wide Image"
>                 },
>                 {
>                         "name": "single-with-sidebar",
>                         "postTypes": ["post"],
>                         "title": "Single with Sidebar"
>                 },
>                 {
>                         "name": "single-academic-pages-legacy",
>                         "postTypes": ["academic-pages"],
>                         "title": "Academics Pages Legacy Padding"
>                 },
>                 {
>                         "name": "single-academic-pages-legacy-header",
>                         "postTypes": ["academic-pages"],
>                         "title": "Academics Pages Legacy Header"
>                 },
>                 {
>                         "name": "single-academic-pages-w-title",
>                         "postTypes": ["academic-pages"],
>                         "title": "Academics Pages with Title - M.S."
>                 }
>
>         ]

New description:

 After selecting a different template, the entire site hangs for over a
 minute with disabled update button before "Updating..." begins.

 There are no errors other than some assets being served over http rather
 than https from plugins. On the occasion that a template had a block
 error, the behavior was exactly the same as when there are no errors in
 the template. Same whether there is a template part in the template or
 not.

 Template example:


 {{{
 <!-- wp:template-part {"slug":"header","tagName":"header", "className":
 "site-header2020"} /-->
 <!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} --><main
 class="wp-block-group">

     <!-- wp:post-content {"className":"legacy-post-padding"} /-->

 </main><!-- /wp:group -->
 }}}


 Theme.json snippet:


 {{{
 "customTemplates": [
                 {
                         "name": "page-no-title",
                         "postTypes": ["page"],
                         "title": "Page No Title"
                 },
                 {
                         "name": "page-with-sidebar",
                         "postTypes": ["page"],
                         "title": "Page with Sidebar"
                 },
                 {
                         "name": "page-wide",
                         "postTypes": ["page"],
                         "title": "Page with Wide Image"
                 },
                 {
                         "name": "single-with-sidebar",
                         "postTypes": ["post"],
                         "title": "Single with Sidebar"
                 },
                 {
                         "name": "single-academic-pages-legacy",
                         "postTypes": ["academic-pages"],
                         "title": "Academics Pages Legacy Padding"
                 },
                 {
                         "name": "single-academic-pages-legacy-header",
                         "postTypes": ["academic-pages"],
                         "title": "Academics Pages Legacy Header"
                 },
                 {
                         "name": "single-academic-pages-w-title",
                         "postTypes": ["academic-pages"],
                         "title": "Academics Pages with Title - M.S."
                 }

         ]
 }}}

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61347#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list