Problem/Motivation

isMasterRequest method no longer exist : https://www.drupal.org/node/3212750
Using it breaks website.

Steps to reproduce

Update to D10 and open website

Proposed resolution

Use isMainRequest() instead

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

pasan.gamage created an issue. See original summary.

shreya_th’s picture

Assigned: Unassigned » shreya_th

shreya_th’s picture

Assigned: shreya_th » Unassigned
Status: Active » Needs review

Hi @pasan.gamage,
I have fixed this issue by changing isMasterRequest() to isMainRequest().Also created MR for this issue . kindly review the changes .

Thank you!

rdworianyn’s picture

Created patch for issue so this can be applied via composer.

davidiio’s picture

Patch applied and no more errors on drupal 10.1.8
Thanks

i-trokhanenko’s picture

Version: 8.x-2.x-dev » 3.0.x-dev

Created a 3.0.x-dev release for D10/Symfony 6 compatibility.

i-trokhanenko’s picture

Status: Needs review » Reviewed & tested by the community

i-trokhanenko’s picture

Status: Reviewed & tested by the community » Fixed

Fixed. Thanks!

Status: Fixed » Closed (fixed)

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