Call to a member function actionAccess() on null

Created on 24 October 2022, over 2 years ago
Updated 12 March 2025, 24 days ago

Problem/Motivation

There are several reports on #2893259: Flags problem with VBO module in views of error messages including Call to a member function actionAccess() on null .

Comment #36 on that issue:

I am facing an issue, when i use "User VBO(views bulk operation)" to update the notification interval with the help of Message Digest module.
When I try to submit the VBO form from front end it gives the below error

Error: Call to a member function actionAccess() on null in Drupal\message_digest_ui\Plugin\Action\DigestInterval->access()

Comment #37 from that issue:

I am getting also the same error as on #36. I am using VBO 2.x version, drupal 8.7.1.
In my view I use (views bulk operations) as field instead of "Node operations bulk form" field.
This field permit me to run the action in a batch set up in the view and in case of multiple rows the site will not crash.

Error: Call to a member function actionAccess() on null in \flag\Plugin\Action\FlagAction->access() (line 82 of

Steps to reproduce

Proposed resolution

There are patches proposed in the other issue. From #39 and #40:

I experienced same error than #36, #37, #38. Debugging a bit I found that is because FlagAction constructor doesn't get configuration from VBO operation. I tried to determine why but no luck, then I implemented a workaround/compatibility code parsing flag type and action from plugin id. Patch Attached

...

#39 but with better formatting.

I have attached the second patch to this issue.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

4.0

Component

Actions integration

Created by

🇺🇸United States benjifisher Boston area

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024