admin_permission missing from Message annotation

Created on 23 September 2021, almost 3 years ago
Updated 4 April 2024, 3 months ago

Problem/Motivation

I actually want to delete one of my message templates but i can't as there are message entities which are using it.

I am not sure the built in Messages admin page supports any actions, but basing this on memory as when i go there now i get:

Error: Unsupported operand types in Drupal\message\Entity\Message->processTokens() (line 321 of modules/contrib/message/src/Entity/Message.php).
Drupal\message\Entity\Message->processTokens(Array, ) (Line: 255)
Drupal\message\Entity\Message->getText() (Line: 89)
Drupal\message\MessageListBuilder->buildRow(Object) (Line: 219)
Drupal\Core\Entity\EntityListBuilder->render() (Line: 23)
Drupal\Core\Entity\Controller\EntityListController->listing('message')
call_user_func_array(Array, Array) (Line: 123)

so i built a View to list messages and added a VBO field to it with delete entity action. I can now see all my messages but when i select the ones for the template and select all for deletion, the vbo action seems to run through all of them but doesn't do anything and i get:

Action processing results: Access denied (2).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: outdated

Version

1.2

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada liquidcms

Live updates comments and jobs are added and updated live.
Sign in to follow issues

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.69.0 2024