• Resolved mp3920014

    (@mp3920014)


    PHP Notice: Trying to get property of non-object in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/secondary-title/includes/functions.php on line 457

    I received this message at log

    /** Don't do anything if the post is not a valid, well, post */
          if(!$post->ID) {
             return false;
          }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mp3920014

    (@mp3920014)

    my page appears 500
    I am looking for errors

    Plugin Author thaikolja

    (@thaikolja)

    Change the code to the following:

    if(!isset($post->ID) || !$post->ID) {
             return false;
          }

    Found on line 457 in wp-content/plugins/secondary-title/includes/functions.php.

    If that works, I’ll implement it in the next version and update the plugin.

    • This reply was modified 5 years, 5 months ago by thaikolja.
    Thread Starter mp3920014

    (@mp3920014)

    Yes

    You solve this error

    thank you

    • This reply was modified 5 years, 5 months ago by mp3920014.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Notice: Trying to get property of non-object’ is closed to new replies.