Trying to get property of non-object in header-overlay.php on line 53

5. joulukuuta 2017 klo 17.10
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: WordPress

With 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.

Vastaa viestiin sen kontekstissa (Github)