- π§πͺBelgium rp7
I'm a bit at a loss here, can I get some more info?
Starting with the beta3 release of this module, the ContentModerationInfoBlockForm's constructor contains a call to parent::__construct and its parameters are wrong, causing a fatal error.
This is the call to the parent constructor: https://git.drupalcode.org/project/content_moderation_info_block/-/blob/...
This is the parent constructor: https://git.drupalcode.org/project/drupal/-/blob/9.5.x/core/lib/Drupal/C...
Looks completely OK to me?Additionally, there are calls throughout the the form's class to ::setEntity and ::setOperation, which do not exist.
But they do exist on one of the parent classes?
::setEntity : https://git.drupalcode.org/project/drupal/-/blob/9.5.x/core/lib/Drupal/C...
::setOperation : https://git.drupalcode.org/project/drupal/-/blob/9.5.x/core/lib/Drupal/C...I'm not sure how this issue has not been previously uncovered, I do not see how this could have ever worked.
Which Drupal version are you using - is it Drupal 8? Perhaps this module is not compatible with Drupal 8 anymore.
- πΊπΈUnited States firewaller
Here's a version of the patch for D10 support against `2.0.0-beta1`
- Status changed to RTBC
about 1 month ago 1:44pm 10 October 2024 - πΊπΈUnited States kerasai
Revisiting this on a D9 to D10 upgrade--yes, I know, a bit late.
I updated to 2.0.0-beta1 and ran into the same issues. The patch from #5 β works for me.
Regarding the points in #4 β :
ContentModerationInfoBlockModerationForm extends EntityModerationForm, not ContentEntityForm as noted above. The constructor is totally broken and, along with the static create method, is unnecessary.
Same with
::setEntity
and::setOperation
. These do not exist and do not need to be called.