Title: PHP Warning: on comments.php
Last modified: March 1, 2022

---

# PHP Warning: on comments.php

 *  [Rhapsody348](https://wordpress.org/support/users/rhapsody348/)
 * (@rhapsody348)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-warning-on-comments-php/)
 * 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 4 years, 3 months ago by [Rhapsody348](https://wordpress.org/support/users/rhapsody348/).
    -  This topic was modified 4 years, 3 months ago by [Rhapsody348](https://wordpress.org/support/users/rhapsody348/).

The topic ‘PHP Warning: on comments.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/graphene/2.9.4/screenshot.jpg)
 * Graphene
 * [Support Threads](https://wordpress.org/support/theme/graphene/)
 * [Active Topics](https://wordpress.org/support/theme/graphene/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/graphene/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/graphene/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Rhapsody348](https://wordpress.org/support/users/rhapsody348/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/php-warning-on-comments-php/)
 * Status: not resolved