• Hello,
    Since a few days i’ve got these error codes on the home page:

    Notice: Trying to get property 'ID' of non-object in /home/unieklivi/domains/uniek-living.nl/public_html/wp-includes/class-wp-query.php on line 4044
    
    Notice: Trying to get property 'post_title' of non-object in /home/unieklivi/domains/uniek-living.nl/public_html/wp-includes/class-wp-query.php on line 4046
    
    Notice: Trying to get property 'post_name' of non-object in /home/unieklivi/domains/uniek-living.nl/public_html/wp-includes/class-wp-query.php on line 4048

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Thanks for using Modern Store!

    I have a few ideas for fixing this error message. First, I would recommend giving the page assigned to the homepage a title. Then you can hide the title from the homepage using this CSS:

    .home .post-header {
      display: none;
    }

    Please copy and paste that code into the Additional CSS section in the Live Customizer (Appearance > Customize), and it will take effect right away. This should fix errors resulting from the page not having a title, and also keep the title hidden on the homepage.

    Additionally, you may want to check in your hosting dashboard for an option to disable “WP_DEBUG.” That will prevent these types of notices from showing up on your site. In general, the debugging messages are helpful for staging and development sites, but can potentially be a security concern when enabled on a live production website.

Viewing 1 replies (of 1 total)
  • The topic ‘Trying to get property ‘ID’ of non-object in’ is closed to new replies.