Problem/Motivation

I'm on a codebase running an older version of Drupal 9 (9.1.x) and the current version (1.4) of access unpublished has refactored some of its logic to use newer versions of symfony to replace the isMasterRequest method with the inMainRequest method.

Obviously this method changes upstream in symfony somewhere, so I think that access_unpublished should have something in its composer.json that keeps it inline with the symfony changes. Otherwise, my entire site fatal errs with:

Error: Call to undefined method Symfony\Component\HttpKernel\Event\ResponseEvent::inMainRequest() in Drupal\access_unpublished\EventSubscriber\AddHttpHeaders->onResponse() (line 50 of modules/contrib/access_unpublished/src/EventSubscriber/AddHttpHeaders.php).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

mikemadison’s picture

Title: Unmarked Incompatibility » Unmarked Incompatibility with Symfony ResponseEvent
generalredneck’s picture

Status: Active » Fixed

I unfortunately can't go back and edit older versions, but I can however mark incompatibility going forward. The newer versions require Drupal 9.2 because of other changes as well.

I think this is the best I can do to resolve this issue. If you have better thoughts, feel free to reopen.

generalredneck’s picture

Status: Fixed » Closed (fixed)

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