-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LocalGov Alert banners giving content moderation error when setting live #181
Comments
Thanks for the report @rowan-austin-investis. Was your issue a fresh install or an upgrade? Do you have scheduled transitions and localgov_workflow turned on? There is a known issue with including the moderation form it overrides the confirmations form, however the moderation field should still be included. If you go to /admin/structure/alert-banner-types/localgov_alert_banner_type/localgov_alert_banner/edit/form-display is there a content moderation field and under /admin/config/workflow/workflows is there a corresponding workflow? |
I was able to reproduce the error by deleting the alert banner workflow and I now get the same error message. You can install the workflow config that is in the module Then we need to check that the update hook is adding the correct workflow. |
Cheers for looking at this @andybroomfield. Much appreciated |
Thank you so much for looking at this @andybroomfield, I'll install the config and give it a test then report back! |
@andybroomfield After importing the config and doing a little playing my banners are now publishing again! Thank you for your help on this one, I can confirm that nothing is broken in the module itself and it was config that was the issue. |
Hello all,
I've been experiencing this issue on my site when trying to publish an alert banner.
InvalidArgumentException: Field moderation_state is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of /var/www/docroot/core/lib/Drupal/Core/Entity/ContentEntityBase.php).
This is happening on all alert banners on my site, I also have Workflows (Content Moderation) installed on my site.
All of my LocalGov modules are up to date aswell as Drupal. I've also uninstalled any custom modules when testing incase they were interfering.
Steps to reproduce:
If anyone has info or issues they've had similar it would be greatly appreciated!
Thank you
The text was updated successfully, but these errors were encountered: