Support » Plugin: BB Delete cache » Trying to get property of non-object in bb-delete-cache.php on line 98

  • Get following error message in my log:

    “Trying to get property of non-object in […]/bb-delete-cache.php on line 98”

    This is because the global variable $post is not always set. Add if( $post ) { … } around the code.

    For instance, change line 92 from if( !is_admin() ) { to if( $post && ! is_admin() ) {.

  • The topic ‘Trying to get property of non-object in bb-delete-cache.php on line 98’ is closed to new replies.