Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#51957 closed defect (bug) (duplicate)

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

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

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
4 years ago

Can you provide more details?

#2 @SergeyBiryukov
4 years ago

  • Component changed from General to Comments
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Summary changed from while using wordpress i encounter problem which seems to be a bug to "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.