• I am using WordPress 5.9.1 in a multisite install, Graphene Theme version 2.8.6, PHP version 8.0.

    The following warning error is sometimes generated in the log:
    PHP Warning: Attempt to read property "display_name" on bool in /home/*****/***/blog/wp-content/themes/graphene/inc/comments.php on line 232

    I can see that it is generated if the previous line in comments.php does not get a valid WP User object and instead returns a boolean false.

    I suggest that this function graphene_comment_author_link( $user_id ) be updated to return $author_link = get_comment_author_link(); if the line $author = get_userdata( $user_id ); returns a boolean false.

    • This topic was modified 2 years, 8 months ago by Rhapsody348.
    • This topic was modified 2 years, 8 months ago by Rhapsody348.
  • The topic ‘PHP Warning: on comments.php’ is closed to new replies.