Ajax operations trigger 500 error of The state '' does not exist in workflow

Created on 24 October 2022, about 2 years ago
Updated 1 August 2023, over 1 year ago

Scenario 1: When I create a node, upload an image to the image field, then click on its "Remove" button, it cannot be removed, there is also an error in the browser console.

Scenario 2: When I edit a new node, click on the "remove" button of an image field, then re-upload another image, now, the new image cannot be uploaded and the thumbnail cannot show up.

Both scenarios have the same error in the browser console as the screenshot below:

Both scenarios have the same log recorded as below:

Location	https://***.com/node/67/edit?_wrapper_format=drupal_ajax&ajax_form=1&element_parents=field_headimg%2Fwidget%2F0
Referrer	https://***.com/node/67/edit
Message	InvalidArgumentException: The state '' does not exist in workflow. in Drupal\workflows\Plugin\WorkflowTypeBase->getState() (line 155 of /var/www/***/web/core/modules/workflows/src/Plugin/WorkflowTypeBase.php).

I also tried media field with the media library widget, the same error.

πŸ› Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡³China fishfree

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024