Home Forums WordPress Themes – Premium Flat Responsive Trying to get property of non-object in…/header.php on line 73

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #47858
    Jason Vincik

    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' ); ?>
    Sushil Adhikari

    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.


Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.