After upgrading to 8.x-1.x-dev due to #2675292: Unable to publish nodes I encountered a Fatal error on the node add and view pages.

When adding a node with workflow enabled, and the content workflow field added to the form display using the Workflow transition form widget, the following fatal error occurs:

https://www.drupal.org/files/issues/node%20add%20general.png

The issue occurs from a recursive buildForm call at:

Drupal\workflowfield\Plugin\Field\FieldWidget\WorkflowDefaultWidget->formElement WidgetBase.php 329

Subsequently, viewing a node also gives a similar error:

https://www.drupal.org/files/issues/view%20node.png

CommentFileSizeAuthor
view node.png462.02 KBacbramley
node add general.png11.33 MBacbramley
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

acbramley created an issue. See original summary.

johnv’s picture

Status: Active » Postponed (maintainer needs more info)

Please give me the setup of your content type. Is the workflow field added directly to the main Node? Or to some subnode using inline_entity_form?

acbramley’s picture

Status: Postponed (maintainer needs more info) » Active

To the main node, we weren't using anything like inline_entity_form. There were entity reference fields on the content type though if that makes a difference.

johnv’s picture

Title: Workflow transition form in node form display causes Fatal error » Fatal error: Maximum function nesting level of 1000 reached' in ConfigEntityType.php on line 91 with Workflow transition form in node form

The error in the png is "Fatal error: Maximum function nesting level of 1000 reached' in ConfigEntityType.php on line 91.

johnv’s picture

Status: Active » Fixed

Please try latest Dev or beta-6 version.

Status: Fixed » Closed (fixed)

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

RaisinBranCrunch’s picture

This is happening to me, too, on the latest beta-6. Did the creator of this issue ever get this solved?