[wp-trac] [WordPress Trac] #61681: PHP Fatal error: Uncaught Error: Object of class WP_Comment could not be converted to string

WordPress Trac noreply at wordpress.org
Wed Jul 17 21:24:35 UTC 2024


#61681: PHP Fatal error:  Uncaught Error: Object of class WP_Comment could not be
converted to string
--------------------------------------+---------------------
 Reporter:  ambrosiawt                |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.6.1
Component:  Comments                  |     Version:  6.6
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by ambrosiawt):

 For what it's worth, I did add some logging before submitting the ticket
 to validate that sometimes there is an object present, and in those
 situations you are correct, it did have an empty comment_ID in the object.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61681#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list