{"id":18996273,"date":"2026-08-18T10:27:30","date_gmt":"2026-08-18T10:27:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-message-in-block-template-editor\/"},"modified":"2026-08-18T10:27:30","modified_gmt":"2026-08-18T10:27:30","slug":"error-message-in-block-template-editor","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-message-in-block-template-editor\/","title":{"rendered":"Error message in Block Template Editor"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;m getting the following warning when using the Block Template Editor:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Warning: Undefined array key &#8220;postId&#8221; in \/var\/www\/html\/wp-content\/plugins\/breadcrumb-navxt\/includes\/blocks\/build\/breadcrumb-trail\/render.php on line 17<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I think I&#8217;m getting it there rather than on the front end because of the debug settings I&#8217;ve set up on the back end.  However, on the back-end Template Editor there will be no &#8216;real&#8217; path to a post and so it may be that this is only a back-end problem.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To reproduces &#8211; use a Block Theme, edit a page Template, add the block to a header.   Have the following settings set in your wp-config.php:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>define( 'WP_DEBUG', true );<\/code><br \/><code>define( 'WP_DEBUG_LOG', true );<\/code><br \/><code>define( 'SCRIPT_DEBUG', true );<\/code><br \/><code>define( 'SAVEQUERIES', true );<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(I have these set via the WP_Debug plugin)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The warning is displayed in-line before the output of the breadcrumb.<\/p>\n","protected":false},"template":"","class_list":["post-18996273","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18996273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18996273\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18996273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}