[wp-trac] [WordPress Trac] #59318: Bloc Themes Fatal Error in PHP 8.1 When Referring To Missing Template Parts

WordPress Trac noreply at wordpress.org
Fri Sep 8 14:37:26 UTC 2023


#59318: Bloc Themes Fatal Error in PHP 8.1 When Referring To Missing Template Parts
--------------------------+------------------------------
 Reporter:  TJNowell      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  6.3.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by TJNowell):

 Investigating further, the templates in question had differing block
 markup:

 I found this on the templates that triggered the fatal error:
 {{{
 <!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
 }}}

 This however did not trigger the error:
 {{{
 <!-- wp:template-part {"slug":"footer","theme":"my-theme"} /-->
 }}}

 I do not know how this difference occurred

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


More information about the wp-trac mailing list