I ran composer update today, which bumped this module to version 2.0.4. Now, when I want to edit a media entity, I'm getting this error:

RuntimeException: Callable "Drupal\expose_actions\Form\Confirm::checkAccess" requires a value for the "$action_id" argument. in Drupal\Component\Utility\ArgumentsResolver->handleUnresolvedArgument() (line 143 of core/lib/Drupal/Component/Utility/ArgumentsResolver.php).

I guess it's related to changes introduced in #3330189: Code style cleanup, where that checkAccess() method was changed.

I'm on Drupal 9.5.11.

Comments

mrshowerman created an issue. See original summary.

  • jurgenhaas committed 2e17c65f on 2.0.x
    Issue #3393626: RuntimeException when editing media
    
jurgenhaas’s picture

Version: 2.0.4 » 2.0.x-dev
Status: Active » Needs review

Sorry for the inconvenience @mrshowerman, that code cleanup was sitting there waiting for a review for almost a year and as nobody had time, I thought it should be save to merge it even without.

I've loosened the argument declaration in that method, please try with the 2.0.x release, if that fixes it for you.

mrshowerman’s picture

Status: Needs review » Reviewed & tested by the community

Switched to 2.0.x-dev
Rebuilt cache
Tried to edit a media entity: no errors.

Thanks for the quick response, @jurgenhaas!

  • jurgenhaas committed dbe9dbef on 2.1.x
    Issue #3393626: RuntimeException when editing media
    
jurgenhaas’s picture

Status: Reviewed & tested by the community » Fixed

Glad to hear, will tag a new 2.0.5 release in a minute.

Status: Fixed » Closed (fixed)

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