• [09-Nov-2020 18:09:41 UTC] PHP Notice: Trying to get property 'post_title' of non-object in /nas/content/live/site01/wp-content/plugins/hide-page-and-post-title/hide-page-and-post-title.php on line 90

    While using version 1.5.5, my debug log captures many errors similar to this one.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Corey Salzano

    (@salzano)

    Here’s a solution. Change line 90 from…

    $this->title = $post->post_title;

    to…

    $this->title = empty( $post->post_title ) ? '' : $post->post_title;

    • This reply was modified 5 years, 3 months ago by Corey Salzano.

    Thank you for posting a solution to the problem on line 90.
    I am very happy to find this page.
    When I updated WordPress from 5.6 to 5.6.1, I got the error.
    I changed the line and was able to solve it.
    Thank you very much. 🙂

    • This reply was modified 4 years, 12 months ago by jasmihalu.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug report, creates PHP Notices in debug.log’ is closed to new replies.