With these updates for Drupal Core:

https://git.drupalcode.org/project/drupal/-/commit/98b6e3a9259ace81272e8...

Issue: https://www.drupal.org/project/drupal/issues/3483551

The sort_by field key changed.
From torder to thread_order

This change needs to be adopted here!

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

carsteng created an issue. See original summary.

carsteng’s picture

That's a first draft.... Probably needs some additional work in regards to Drupal version.

sandeshyadav’s picture

The given fix works for me.
Basically, what you have to do is replace all the occurrences of torder with thread_order in comments_order.module file.

  • lobodakyrylo committed 4ca64274 on 3.0.x
    Issue #3555270: Restrict the 3.x branch to Drupal versions before 11.2
    

  • lobodakyrylo committed ce1b51f6 on 4.0.x
    Issue #3555270: Update threaded comment ordering for Drupal 11.2
    
lobodakyrylo’s picture

Status: Active » Fixed

Thanks for the report.

Drupal 11.2 introduced incompatible internal changes to the comment query, so supporting both Drupal 11.2+ and older Drupal versions in the same codebase would require additional compatibility code.

To keep the implementation simple and maintainable, I created a new major branch:
- 3.x supports Drupal 9, 10, and Drupal 11.0–11.1.
- 4.x supports Drupal 11.2+.

The fix has been committed to the 4.x branch.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.