Closed (fixed)
Project:
Content Planner
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Oct 2022 at 15:06 UTC
Updated:
31 Oct 2022 at 14:04 UTC
Jump to comment: Most recent
Upon visiting /admin/content-planner/dashboard I get the following error: "Error: Call to undefined method Drupal\content_kanban\Plugin\DashboardBlock\RecentKanbanActivities::t() in Drupal\content_kanban\Plugin\DashboardBlock\RecentKanbanActivities->composeMessage() (line 196 of modules/contrib/content_planner/modules/content_kanban/src/Plugin/DashboardBlock/RecentKanbanActivities.php)."
The issue is caused by the use of "$this->t(" in RecentKanbanActivities class, because StringTranslationTrait isn't imported.
Similar to how a few other contrib modules solved this issue, I propose using StringTranslationTrait to avoid this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| fix-undefined-method-t.patch | 924 bytes | josip.rajkovic |
Comments
Comment #2
avpadernoComment #4
dieterholvoet commentedThanks!