When editing a node with a workflow I found the following warning in the logs:

[07-Sep-2018 08:15:44 Europe/Zurich] InvalidArgumentException: A content entity object must be supplied. in /.../web/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php on line 307 #0 /.../web/modules/contrib/workflow_participants/src/StateTransitionValidation.php(89): Drupal\content_moderation\Plugin\WorkflowType\ContentModeration->getInitialState()

Here is the method called and you can see the exact same message in the exception: https://api.drupal.org/api/drupal/core%21modules%21content_moderation%21...

Patch following

CommentFileSizeAuthor
#2 invalid_argument_exception-2998023-2.patch1006 bytesidflood

Comments

idflood created an issue. See original summary.

idflood’s picture

Status: Active » Needs review
StatusFileSize
new1006 bytes

  • jhedstrom committed df1e6b5 on 8.x-2.x authored by idflood
    Issue #2998023 by idflood: InvalidArgumentException: A content entity...
jhedstrom’s picture

Status: Needs review » Fixed

Makes sense to me. Weird that they even allow null there and then just throw an exception. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.