Error message in Block Template Editor
-
I’m getting the following warning when using the Block Template Editor:
Warning: Undefined array key “postId” in /var/www/html/wp-content/plugins/breadcrumb-navxt/includes/blocks/build/breadcrumb-trail/render.php on line 17
I think I’m getting it there rather than on the front end because of the debug settings I’ve set up on the back end. However, on the back-end Template Editor there will be no ‘real’ path to a post and so it may be that this is only a back-end problem.
To reproduces – use a Block Theme, edit a page Template, add the block to a header. Have the following settings set in your wp-config.php:
define( 'WP_DEBUG', true );define( 'WP_DEBUG_LOG', true );define( 'SCRIPT_DEBUG', true );define( 'SAVEQUERIES', true );(I have these set via the WP_Debug plugin)
The warning is displayed in-line before the output of the breadcrumb.
You must be logged in to reply to this topic.