Workflow history has disappeared after upgrading from 8.x-1.7 to 2.0.0

Created on 9 June 2025, 5 days ago

Problem/Motivation

Workflow history in Workflow tab of each content has disappeared after upgrading from 8.x-1.7 to 2.0.0
On the other hand, preview of Workflow history in /admin/structure/views/view/workflow_entity_history still appears.
Could you take a look at this?

- Drupal 10.4.6
- workflow: 2.0.0
- workflow_notification: 3.0.0-beta5 (not completely compatible with workflow 2.0.0)
- PHP: 8.3.21

workflow 2.0.0: HTML text around workflow history in Workflow tab (no table data)

<div class="views-element-container">
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'views_view' -->
<!-- BEGIN OUTPUT from 'themes/contrib/bartik/templates/classy/views/views-view.html.twig' -->
<div class="view view-workflow-entity-history view-id-workflow_entity_history view-display-id-workflow_history_tab js-view-dom-id-e357989d6958c2128d169399d2a5a819841a1fa530e68c93cddae97a7d84e3d3">
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'pager' -->
<!-- BEGIN OUTPUT from 'core/modules/system/templates/pager.html.twig' -->
<!-- END OUTPUT from 'core/modules/system/templates/pager.html.twig' -->
</div>
<!-- END OUTPUT from 'themes/contrib/bartik/templates/classy/views/views-view.html.twig' -->
</div>

workflow 8.x-1.7: HTML text around workflow history in Workflow tab (table data exist)

<div class="views-element-container">
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'views_view' -->
<!-- BEGIN OUTPUT from 'themes/contrib/bartik/templates/classy/views/views-view.html.twig' -->
<div class="view view-workflow-entity-history view-id-workflow_entity_history view-display-id-workflow_history_tab js-view-dom-id-a1eb1bf82531f9248327e572ababb967f81432def497f575d59147b3c5493e6c">
<div class="view-content">
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'views_view_table__workflow_entity_history' -->
<!-- FILE NAME SUGGESTIONS:
 - views-view-table--workflow-entity-history.html.twig
 - views-view-table--workflow-entity-history.html.twig
 v views-view-table.html.twig
-->
<!--  BEGIN CUSTOM TEMPLATE OUTPUT from 'themes/custom/bartik_custom/templates/views-view-table.html.twig' -->
<table class="views-table views-view-table cols-6">
<thead>
<tr>
<th id="view-timestamp-table-column" class="views-field views-field-timestamp" scope="col">Date</th>
<th id="view-from-sid-table-column" class="views-field views-field-from-sid" scope="col">From</th>
<th id="view-to-sid-table-column" class="views-field views-field-to-sid" scope="col">To</th>
<th id="view-uid-table-column" class="views-field views-field-uid" scope="col">Name</th>
<th id="view-comment-table-column" class="views-field views-field-comment" scope="col">Comment</th>
<th id="view-langcode-table-column" class="views-field views-field-langcode" scope="col">Lang</th>
</tr>
</thead>
<tbody>
...
</tbody>
</table>
<!-- END CUSTOM TEMPLATE OUTPUT from 'themes/custom/bartik_custom/templates/views-view-table.html.twig' -->
</div>
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'pager' -->
<!-- BEGIN OUTPUT from 'core/modules/system/templates/pager.html.twig' -->
<!-- END OUTPUT from 'core/modules/system/templates/pager.html.twig' -->
</div>
<!-- END OUTPUT from 'themes/contrib/bartik/templates/classy/views/views-view.html.twig' -->
</div>

Steps to reproduce

1. Upgrade from 8.x-1.7 to 2.0.0
composer require 'drupal/workflow:^2.0'
drush updb
drush cr
2. See Workflow tab of a content. Workflow history disappears.

Proposed resolution

Reverse to 8.x-1.7.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024