Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#51957 closed defect (bug) (duplicate)

"argument must be passed by reference, value given" in WP_Comment_Query::get_comments()

Reported by: vanshuk Owned by:
Priority: normal Milestone:
Component: Comments Version:
Severity: normal Keywords:
Cc: Focuses:

Description

Warning: get_comment(): Argument #1 ($comment) must be passed by reference, value given in C:\xampp\htdocs\wordpress\wp-includes\class-wp-comment-query.php on line 484

Change History (2)

#1 @iandunn
6 years ago

Can you provide more details?

#2 @SergeyBiryukov
6 years ago

  • Component General → Comments
  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed
  • Summary while using wordpress i encounter problem which seems to be a bug → "argument must be passed by reference, value given" in WP_Comment_Query::get_comments()

Hi there, welcome to WordPress Trac! Thanks for the report.

Are you using PHP 8? This exact issue was fixed in [48838] and [48961] / #50913 for WordPress 5.6.

For some context, ​WordPress 5.5 was released in August, and ​PHP 8.0 only less than two weeks ago.

WordPress 5.6 (coming up later today) is the first version that ​aims for (beta) compatibility with PHP 8.0.

Note: See TracTickets for help on using tickets.