I expect to see an error log but do not block the editor or break the page if the custom layout has a syntax issue or throws an error.
Current Behavior
If I try to print an author object by mistake ({{ author }}, instead of a string the block editor doesn't load showing an error 500. The frontend that displays that layout (author box or shortcode) breaks as well.
Expected Behavior
I expect to see an error log but do not block the editor or break the page if the custom layout has a syntax issue or throws an error.
Current Behavior
If I try to print an author object by mistake (
{{ author }}
, instead of a string the block editor doesn't load showing an error 500. The frontend that displays that layout (author box or shortcode) breaks as well.Possible Solution
We need to catch errors in the layout processing and log them, but not break the output.
Steps to Reproduce (for bugs)
{{ author }}
Context
Your Environment