I’ve got a pretty weird behavior on my site that I’d like to resolve.
I’m getting the error: ‘There has been a critical error on your website. Learn more about debugging in WordPress.‘.
I’ve finally managed to upgrade a WP site from v5.0 to v5.4. The only issue left is when I create an empty functions.php
file I get 500 error.
When a 404 error is encountered, a 404.php template file can be used to render a custom error message. This is documented in the Template Hierarchy article.