- πΊπΈUnited States studgate
Here is an update to the patch to work with the latest version... It was failing for me after the last release
With the Workbench Moderation module enabled you can no longer edit fieldable entities that don't have bundles.
You'll receive the standard "The website encountered an unexpected error. Please try again later." error and if you check in the logs you'll see an error that reads Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" entity type does not exist.
The code causing the problem is in src/Plugin/Field/FieldWidget/ModerationStateWidget.php. It's attempting to load the entity type from storage, but is assuming it has a bundle.
$bundle_entity = $this->entityTypeManager->getStorage($entity->getEntityType()->getBundleEntityType())->load($entity->bundle());
Since "$entity->getEntityType()->getBundleEntityType()" is empty, it generates the above error. Proposed resolution is to simply check if the bundle entity type is blank and use the entity type id function instead for that situation. That's what the attached patch does.
Active
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Here is an update to the patch to work with the latest version... It was failing for me after the last release