- This topic has 1 reply, 2 voices, and was last updated 6 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › WordPress Themes – Premium › Flat Responsive › Trying to get property of non-object in…/header.php on line 73
Tagged: child theme, header, php error
My website keeps timing out and returning a Page Not Found error when attempting to edit pages. I also can’t seem to save my Woocommerce product variations – after hitting Save, it just spins forever, and never actually saves. I increased memory limits, but this doesn’t fix the problem.
I noticed this error in the debug log:
“PHP Notice: Trying to get property of non-object in /home/jasonvincik/magicprintbox.net/wp-content/themes/child-flat-responsive/header.php on line 73”
This is what’s on lines 73-77 in the header.php file:
<aside id="fr-banner" class="fr_responsive_banner" style="background-color: <?php echo get_theme_mod( 'banner_bg', '#fff' ); ?>; <?php if ( get_header_image() ) : ?>background-image: url(<?php header_image(); ?>);<?php endif; ?><?php if( get_post_meta($post->ID, 'header_background', true) ) { ?> background-image: url(<?php echo esc_url (the_field('header_background')); ?>); <?php } ?> color: <?php echo get_theme_mod( 'banner_text_colour', '#ffffff' ); ?>;">
<?php get_sidebar( 'banner' ); ?>
</aside>
Hello Jason Vincik,
The issue is probably unrelated to the theme.
You can debug the issue, for instance;
1. Try switching to WordPress standard theme like 2017, consult the host if error occurs.
2. The next thing you can do is deactivate every plugins and reactivating them one by one to check if error exists or not.
The notice error you are getting however doesnot affect anything .You can ignore it for now. We shall fix it in our further updates.
Let us know if it works or not.
Regards,
Sushil
With our premium themes, we offer access to site documentation, video tutorials and timely support. Even if you have just started on WordPress, our support staff have the patience to help you create appealing sites gracefully.
Company
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.To find out more, including how to control cookies, see here: Privacy Policy
© Copyright © 2023 Styled Themes. All Right Reserved.