[wp-trac] [WordPress Trac] #65213: Uncaught exception 'Error' with message 'Call to undefined function get_the_block_template_html()

WordPress Trac noreply at wordpress.org
Sat May 9 20:14:26 UTC 2026


#65213: Uncaught exception 'Error' with message 'Call to undefined function
get_the_block_template_html()
-----------------------------+------------------------
 Reporter:  harishtewari     |       Owner:  (none)
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  General          |     Version:  trunk
 Severity:  normal           |  Resolution:  duplicate
 Keywords:  has-patch close  |     Focuses:
-----------------------------+------------------------
Changes (by westonruter):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Ah, well the issue is probably that someone is making a direct request to
 `/wp-includes/template-canvas.php`. Since this doesn't load WordPress, it
 doesn't require any other files that have this function defined. This is
 hardly unique to `template-canvas.php`, however. The same thing happens
 when attempting to access `/wp-includes/template-canvas.php` or many other
 PHP files in WordPress core. This has previously been reported. I'm
 closing this as a duplicate of #62722.

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


More information about the wp-trac mailing list