Having the workbench moderation module enabled causes an error which prevents the viewing of webform revisions

Created on 31 January 2023, about 1 year ago
Updated 12 February 2024, 12 days ago


When the workbench_moderation module is enabled and you have a webform revisions workflow configured you can't see the workflow state buttons and transition information (change form to publish or draft) on top of this if you then try to visit the Revisions tab on a webform the following error appears in dblog

InvalidArgumentException: $string ("") must be a string. in Drupal\Core\StringTranslation\TranslatableMarkup->__construct() (line 132 of /var/www/html/web/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php).

no error appears if you simply create a revision but you aren't able to see the created revisions

Steps to reproduce

To reproduce this error:
1. Install and enable the following modules:

  • config_entity_revisions (2.0.1)
  • webform_revisions
  • content_moderation
  • workbench (1.4.0)
  • workbench_moderation (1.7.0)

2. Create a new workflow and configure it to use the Webform Revisions Config Entity Revisions types
3. Create an example webform with some fields (note the transition buttons are not visible) and then try to visit the Revisions tab and the error will appear

🐛 Bug report






Created by

🇬🇧United Kingdom Lincoln-Batsirayi

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

Comments & Activities

Production build https://api.contrib.social 0.61.6-2-g546bc20