Title: header error
Last modified: March 13, 2020

---

# header error

 *  [Marcel Oerlemans](https://wordpress.org/support/users/marceloerlemans/)
 * (@marceloerlemans)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/header-error-26/)
 * Hello,
    I get the following error in the WP error log:
 * > PHP Notice: Trying to get property of non-object in /…/wp-content/themes/dazzling/
   > header.php on line 80
 * On line 80 in header.php is:
    if( get_post_meta($post->ID, ‘site_layout’, true)){
   $layout_class = get_post_meta($post->ID, ‘site_layout’, true); }
 * Does anyone know how I can resolve this?
    Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fheader-error-26%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘header error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/dazzling/2.1.3/screenshot.png)
 * Dazzling
 * [Support Threads](https://wordpress.org/support/theme/dazzling/)
 * [Active Topics](https://wordpress.org/support/theme/dazzling/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/dazzling/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/dazzling/reviews/)

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [log](https://wordpress.org/support/topic-tag/log/)
 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [Marcel Oerlemans](https://wordpress.org/support/users/marceloerlemans/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/header-error-26/)
 * Status: not resolved