Trying to get property of non-object in header-overlay.php on line 53
WP_DEBUG enabled, a non-existing page (404) logs the following PHP error:
Trying to get property of non-object in wp-content/themes/cover2/components/header/header-overlay.php on line 53
I believe this is caused by the
$post reference on that line, as
$post has not been populated on a 404 page.