Created on 1 December 2020, over 3 years ago
Updated 20 October 2023, 8 months ago

Problem/Motivation

The 'Change State' form has an error: The website encountered an unexpected error. Please try again later.

Error Log
TypeError: Argument 1 passed to Drupal\content_moderation\Form\EntityModerationForm::__construct() must implement interface Drupal\content_moderation\ModerationInformationInterface, instance of Drupal\Core\Entity\EntityRepository given, called in /var/www/html/docroot/modules/contrib/content_moderation_info_block/src/Form/ContentModerationInfoBlockForm.php on line 45 in Drupal\content_moderation\Form\EntityModerationForm->__construct() (line 53 of /var/www/html/docroot/core/modules/content_moderation/src/Form/EntityModerationForm.php)

Steps to reproduce

Enable form
Change state

πŸ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States oktboy

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.

  • πŸ‡§πŸ‡ͺBelgium rp7

    Is this issue still present? Which Drupal version are you using? I'm afraid the module is incorrectly advertising compatibility with Drupal 8.

  • Status changed to Needs review 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States jstoller

    This is still an issue with Drupal 9.5.11 and Content Moderation Info Block 2.0.0-beta1. I've updated the patch from #8 so it applies to the latest version.

  • Status changed to RTBC 8 months ago
  • πŸ‡¬πŸ‡§United Kingdom jeni_dc

    Patch from #12 applied cleanly for me on 2.0.0-beta1 and the error is now gone. The block shows as expected.

Production build 0.69.0 2024